Sunday, July 8, 2001 07:41 PM
No, there is no limit imposed by the JVM. There are
however limits imposed by your OS. This is typically
configurable in your OS in a manner dependent on your OS.
The reason you may be seeing a different limit with a Java
program than with a C program may have to do with
garbage collection. In particular, a file descriptor isn't released until
the file stream object is garbage collected, unless you
explicitly invoke close()
on that object (and I suspect
from your problem you aren't doing this).
for a detailed
description of how garbage collection affects available resources.