Patch: FYI: gcj3.1 status update
Andrew Haley
aph@cambridge.redhat.com
Fri Apr 5 10:19:00 GMT 2002
Jeff Sturm writes:
> On Fri, 5 Apr 2002, Andrew Haley wrote:
> > I'm pretty sure that it is an issue, because the Linux kernel
> > engineers told me that they'd had to increase the number of available
> > file handles "because of Java servers." Now, I'm guessing that this
> > is the cause, but it looks like a good candidate.
>
> They must be talking about per-process, not system-wide handles.
Right.
> It just so happens that few people attempted to run multithreaded servers
> on Linux before java came along. And then there are artificial benchmarks
> like VolanoMark.
>
> We've had to run our servers with "ulimit -n 1024". Empirically, that
> seems to be plenty for us, even with high transaction volumes.
Okay, but not all unices support this.
> Come to think of it... why couldn't the FileDescriptor::open code
> in libgcj attempt to call setrlimit as well as run finalizers
> before it gives up?
I don't suppose it would hurt, but it's not portable.
Andrew.
More information about the Java
mailing list