kern.maxfiles limit exceeded... what to do?

2009-04-14 Thread VeeJay
Hi there

I am keep getting this error on the screen. I have tried to solve this
problem by myself but still no luck. Could anyone guide what to do to
increase the limit and avoid this error?

kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
files open in the system
Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
files open in the system
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)

Then I am unable to login on the server by consol or ssh. what to do?
-- 
Thanks!

BR / vj
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: kern.maxfiles limit exceeded... what to do?

2009-04-14 Thread Wojciech Puchar

increase kern.maxfiles :)

in sysctl.conf

On Tue, 14 Apr 2009, VeeJay wrote:


Hi there

I am keep getting this error on the screen. I have tried to solve this
problem by myself but still no luck. Could anyone guide what to do to
increase the limit and avoid this error?

kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
files open in the system
Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
files open in the system
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
kern.maxfiles limit exceeded by uid 1003, please see tuning(7)

Then I am unable to login on the server by consol or ssh. what to do?
--
Thanks!

BR / vj


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded by uid 1003? what to do?

2009-04-14 Thread Frederique Rijsdijk
VeeJay wrote:
 Hi there
 
 I am keep getting this error on the screen. I have tried to solve this
 problem by myself but still no luck. Could anyone guide what to do to
 increase the limit and avoid this error?
 
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
 files open in the system
 Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
 files open in the system
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 
 When this happens, I am unable to login on the server by consol or ssh. what
 to do? And I have to restart the server manually by on/off switch...


If it's not a very busy machine, something must be wrong with postfix to
cause this error.

If it is a busy machine, you can increase the kern.maxfiles.

sysctl kern.maxfiles=number

You can set it in /etc/sysctl.conf to set it at boot time.



-- Frederique


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded by uid 1003? what to do?

2009-04-14 Thread till plewe
On Tue, Apr 14, 2009 at 9:11 PM, VeeJay maan...@gmail.com wrote:
 Hi there

 I am keep getting this error on the screen. I have tried to solve this
 problem by myself but still no luck. Could anyone guide what to do to
 increase the limit and avoid this error?


sysctl -a | grep kern.maxfiles

and then

sysctl kern.maxfiles=123456789 (or some other BIG number)



 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
 files open in the system
 Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
 files open in the system
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)

 When this happens, I am unable to login on the server by consol or ssh. what
 to do? And I have to restart the server manually by on/off switch...
 --
 Thanks!

 BR / vj
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded by uid 1003? what to do?

2009-04-14 Thread Peter
Hello,

Check your HHD. Last time I hit this on a not busy machine it was the
RAID card. Do you use RAID on it ?

Peter

Frederique Rijsdijk wrote:
sysctl kern.maxfiles=number
 
 You can set it in /etc/sysctl.conf to set it at boot time.
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded by uid 1003? what to do?

2009-04-14 Thread Pieter de Goeje
On Tuesday 14 April 2009 14:11:02 VeeJay wrote:
 Hi there
 
 I am keep getting this error on the screen. I have tried to solve this
 problem by myself but still no luck. Could anyone guide what to do to
 increase the limit and avoid this error?
 
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
 files open in the system
 Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
 files open in the system
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 
 When this happens, I am unable to login on the server by consol or ssh. what
 to do? And I have to restart the server manually by on/off switch...

Check kern.openfiles sysctl to see if it is close to kern.maxfiles. Tune 
kern.maxfiles and kern.maxfilesperproc (use bigger numbers).

kern.maxfiles: Maximum number of files
kern.maxfilesperproc: Maximum files allowed open per process
kern.openfiles: System-wide number of open files

HTH,
Pieter de Goeje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded by uid 1003? what to do?

2009-04-14 Thread Mel Flynn
On Tuesday 14 April 2009 14:11:02 VeeJay wrote:

 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)

From man 7 tuning:
 The kern.maxfiles sysctl determines how many open files the system sup-
 ports.  The default is typically a few thousand but you may need to bump
 this up to ten or twenty thousand if you are running databases or large
 descriptor-heavy daemons.   The read-only kern.openfiles sysctl may be
 interrogated to determine the current number of open files on the system.

-- 
Mel who wubs self-answering questions.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


kern.maxfiles limit exceeded... what to do?

2009-04-14 Thread Jason Garrett
On Tue, Apr 14, 2009 at 07:41, Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:

 increase kern.maxfiles :)

 in sysctl.conf


Pretty sure he got his answer over on @hackers. The need to cross post never
ceases to amaze me.



 On Tue, 14 Apr 2009, VeeJay wrote:

  Hi there

 I am keep getting this error on the screen. I have tried to solve this
 problem by myself but still no luck. Could anyone guide what to do to
 increase the limit and avoid this error?

 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many
 files open in the system
 Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many
 files open in the system
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)
 kern.maxfiles limit exceeded by uid 1003, please see tuning(7)

 Then I am unable to login on the server by consol or ssh. what to do?
 --
 Thanks!

 BR / vj

  ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kern.maxfiles limit exceeded... what to do?

2009-04-14 Thread Eitan Adler
VeeJay wrote:
 Hi there
 
 I am keep getting this error on the screen. I have tried to solve this
 problem by myself but still no luck. Could anyone guide what to do to
 increase the limit and avoid this error?

please see tuning(7)




-- 
Eitan Adler
Security is increased by designing for the way humans actually behave.
-Jakob Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


kern.maxfiles limit exceeded

2008-04-09 Thread Rafael Barrera Oro
Hello, i have a modest FreeBSD that's constantly giving me the message
kern.maxfiles limit exceeded by 0 (or 53) (on the main console). And if i
attempt to log in another console i get an error similar to
/libexec/ld-elf.so.1 not found or error reading /libexec/ld-elf.so.1
something like that... i cant describe better because it wont let me switch
back to the console which gave the error and the other consoles just freeze
if i log in :D

I am really out of ideas so any help will be greatly appreciated, in the
meantime, ill keep looking, if i find a solution ill mail it

Anyway, thanks in advance!

Rafael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kern.maxfiles limit exceeded

2008-04-09 Thread Pieter de Goeje
On Wednesday 09 April 2008, Rafael Barrera Oro wrote:
 Hello, i have a modest FreeBSD that's constantly giving me the message
 kern.maxfiles limit exceeded by 0 (or 53) (on the main console). And if i
 attempt to log in another console i get an error similar to
 /libexec/ld-elf.so.1 not found or error reading /libexec/ld-elf.so.1
 something like that... i cant describe better because it wont let me switch
 back to the console which gave the error and the other consoles just freeze
 if i log in :D

 I am really out of ideas so any help will be greatly appreciated, in the
 meantime, ill keep looking, if i find a solution ill mail it

 Anyway, thanks in advance!

 Rafael

Check out tuning(7), specifically the section about kern.maxfiles.

-- 
Pieter de Goeje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


kernel: kern.maxfiles limit exceeded

2006-12-07 Thread Coen Watstaatervoor

Just got a busy machine with the following errors in the messages log:

kernel: kern.maxfiles limit exceeded by uid 80, please see tuning(7).
Default FreeBSD 6.1 / AMP set-up. Thought 6.1 would handle this stuff
automaticly just like the mbufs. Anyone knows how the raise those limits?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel: kern.maxfiles limit exceeded

2006-12-07 Thread Drew Sanford

Coen Watstaatervoor wrote:

Just got a busy machine with the following errors in the messages log:

kernel: kern.maxfiles limit exceeded by uid 80, please see tuning(7).
Default FreeBSD 6.1 / AMP set-up. Thought 6.1 would handle this stuff
automaticly just like the mbufs. Anyone knows how the raise those limits?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


You need to put an entry in /boot/loader.conf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel: kern.maxfiles limit exceeded

2006-12-07 Thread Garrett Cooper

Drew Sanford wrote:

Coen Watstaatervoor wrote:

Just got a busy machine with the following errors in the messages log:

kernel: kern.maxfiles limit exceeded by uid 80, please see tuning(7).
Default FreeBSD 6.1 / AMP set-up. Thought 6.1 would handle this stuff
automaticly just like the mbufs. Anyone knows how the raise those limits?


You need to put an entry in /boot/loader.conf

Simple answer: read the manpage-tuning(7)!
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kern.maxfiles limit exceeded: what to investigate?

2003-12-23 Thread Lowell Gilbert
paul beard [EMAIL PROTECTED] writes:

 Since UID 80 would be the httpd process, I suppose looking into
 process-specific resource issues is next. I am running Apache 1.3.29.

Not necessarily.  TCP port 80 is held by httpd, but it isn't
necessarily user ID 80.  Look at the passwd file to figure out
who IS UID 80.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password public
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


kern.maxfiles limit exceeded: what to investigate?

2003-12-21 Thread paul beard
I upgraded my webserver hardware from a old Pii 233 to an AMD Athlon 
700 a few weeks back and seem to be having some teething troubles with 
it. I have hit the kern.maxfiles limits twice recently, having run for 
a couple of years without even knowing there was one.

I found 420 of these in messages: Dec 21 13:39:30 red /kernel: 
kern.maxfiles limit exceeded by uid 80, please see tuning(7). and I 
could only login on console.

I read thru tuning(7) and the best I could figure is that my best 
option was to let the system work its limits based on hardware: 
accordingly, I set maxusers in my config to 0. I didn't understand the 
rest of it and I'm not sure much of it applies, since it's not exactly 
loaded (less than 1 hits/day).

This is what I see now. It looks like a lot of headroom, I think.

kern.maxfiles: 4040
kern.maxfilesperproc: 3636
kern.openfiles: 300
Since UID 80 would be the httpd process, I suppose looking into 
process-specific resource issues is next. I am running Apache 1.3.29.

One thing I noticed that seemed a little odd was the snmpd seemed to 
behaving strangely. I did an snmpwalk to see if I could monitor these 
kernel values that way (there is so much useful stuff exposed thru 
snmp), but I found that I couldn't run it more than once, and that 
snmpd was running at 97% or so of CPU. I have deinstalled and rebuilt 
it, and now it seems to be behaving properly, but I wonder if every 5 
minute snmp requests, in and outbound, with a flaky binary were slowly 
eating up file descriptors.



--
Paul Beard
www.paulbeard.org/
paulbeard [at] mac.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]