Hi Ivan,

        What platform are you using ?

        If you're using Linux and have a recent kernel, you can check the
        file and inode limits like this:

        $> cat /proc/sys/fs/file-max
        $> cat /proc/sys/fs/inode-max

        and can change them similarly (as root) with

        $> echo "8192" > /proc/sys/fs/file-max
        $> echo "24576" > /proc/sys/fs/inode-max

        (this info came from the linux kernel mailing list archives, they note
        there that the inode number should be 3 times the file numder)

        Under other Unix's there should be something similar.

        HTH,

        Cheers,

        Marcus

On Wed, 6 Dec 2000, Ivan E. Markovic wrote:

> I am running a stress test on my Servlet based system; there are 
> about 30 users being tested simultaneously. It works well for about 5 
> 10 mins or so and then I get the error listed below and then after 
> about another minute the whole system locks up! I cannot hit any of 
> the servlets. Apache is still running but Tomcat is hung.
> 
> I have checked my code and I don't leave any files open. Am I 
> restricted as to the number of users that I have on the system? Can I 
> increase the no. of open files? How can I check the number of open 
> files that I have?
> 
> Thank you for your time.
> 
> 
> java.net.SocketException: Too many open files
>       at java.net.PlainSocketImpl.accept(Compiled Code)
>       at java.net.ServerSocket.implAccept(Compiled Code)
>       at java.net.ServerSocket.accept(Compiled Code)
>       at 
> org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(Compiled Code)
>       at org.apache.tomcat.service.TcpWorkerThread.run(Compiled Code)
>       at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
>       at java.lang.Thread.run(Compiled Code)
> Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] 
> shutdown due to exception: java.net.SocketException: Too many open 
> files
> 
> 
> I v a n ...
> Ivan Markovic
> SculptLight
> http://www.sculptlight.com
> (+353) 87 2939256
> (+353) 1 2982205
> 
> 114 Lower Churchtown Rd,
> Dublin 14,
> Ireland.
> 
> 

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : [EMAIL PROTECTED]
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750

Reply via email to