> I thought of that, but it's rather a solution, not an explanation :-).
> Maybe anyone has an explanation ?
>> I thought of that, but it's rather a solution, not an explanation :-).
>> Maybe anyone has an explanation ?
>
> Might be the number of open file descriptors. Is it running on UNIX?
Even if it was running on UNIX I don't see how there could be enough
files in the JARs(if all the files in each JAR was being opened all at
once), let alone just the JARs themselves that would cause the OS to run
out of file descriptors. The various UNIX flavors should have a minimum
of around 32768 file descriptors, if not more. That may not be the exact
number but I just know that it shouldn't be a couple hundred file
descriptors like your question alludes to. I've seen Windows XP have
over 700,000 file handles open and it didn't even phase it.
jmcgill - 10 Aug 2006 02:26 GMT
> The various UNIX flavors should have a minimum
> of around 32768 file descriptors, if not more. That may not be the exact
> number but I just know that it shouldn't be a couple hundred file
> descriptors like your question alludes to.
I've seen this limit at 256 (per process) on different systems, but not
lately. It can be ulimit-ed for the user.
jgrabell@gmail.com - 10 Aug 2006 16:09 GMT
> > The various UNIX flavors should have a minimum
> > of around 32768 file descriptors, if not more. That may not be the exact
[quoted text clipped - 3 lines]
> I've seen this limit at 256 (per process) on different systems, but not
> lately. It can be ulimit-ed for the user.
File descriptors include sockets, open libraries etc, maybe some other
touch points into kernel resources. In my Solaris experience, and I
think 4096 was the default hard limit on Solaris, but as you say, the
soft limit can be lower. If 256 were the maximum, it could be very
easy to exceed the limit.
A search of the jboss site for file descriptors or MAX_FD turns up
several results.
jgrabell@gmail.com - 10 Aug 2006 16:12 GMT
> Even if it was running on UNIX I don't see how there could be enough
> files in the JARs(if all the files in each JAR was being opened all at
> once), let alone just the JARs themselves that would cause the OS to run
> out of file descriptors.
You don't need a file descriptor for each file in a jar file; one for
each jar.
> The various UNIX flavors should have a minimum
> of around 32768 file descriptors, if not more.
Typically the per process file descriptor limit is not set to be the
system maximum.
> That may not be the exact
> number but I just know that it shouldn't be a couple hundred file
> descriptors like your question alludes to. I've seen Windows XP have
> over 700,000 file handles open and it didn't even phase it.
Windows files objects are not the same as UNIX file descriptors except
that they both point to filenames.
Thanks for the insightful feedback.