PDA

View Full Version : Too many open files)


phily
21-04-2011, 02:27
http://java-monitor.com/postedimages/b40d13b1-86d1-4d7b-9d7d-5bdaedf3ea39.png

hi,
I have a problem with a recently newly deployed jboss server.

It keeps crashing overnight with a (Too many open files) error in the log.

According to the graph above its no where near too nmany at any point.

Anyone got any ideas??

Thanks

kjkoster
21-04-2011, 07:45
Dear phily,

The simplest way to check this is to raise the file descriptor limit.

Hoe you raise that limit depends on your operating system. For example, on a FreeBSD system, you might use "ulimit -n 20480" to raise the fd limit to about 20k fd's.

It is quite safe to pick high limits, because historically fd's were expensive. Fd's are represented in kernel memory and that used to be quite a precious resource, back when 64MB was a lot. On modern systems, with the massive RAM sizes that are standard today, fd's are no longer regarded as very expensive. The standard limits of 1k on Linux are still low, though. FreeBSD default to 10k and Solaris to 60k (I think).

Also, check out this thread: http://java-monitor.com/forum/showthread.php?t=130 It gives a bit more background and some pointers to tutorials.

Kees Jan

kjkoster
21-04-2011, 07:47
Dear Phily,

As for why you don't see it: what I expect happens is that there is a big jump all of a sudden. 512 fd's in use is quite a lot already. Try raising the limit and post the graph you get after a few days.

Kees Jan