[jboss-dev-forums] [JBoss Web Development] - Re: java.net.SocketException: Too many open files
Vítor Corrêa
do-not-reply at jboss.com
Thu Oct 13 15:31:00 EDT 2011
Vítor Corrêa [http://community.jboss.org/people/vcorrea] created the discussion
"Re: java.net.SocketException: Too many open files"
To view the discussion, visit: http://community.jboss.org/message/631672#631672
--------------------------------------------------------------
Hi,
It happens when the OS can't handlle with many files. Each socket has it owns descriptor, and JBoss has other descriptor files.
I use fedora so with >> ulimit -n << i can see how many files my user is allowed to open. You can increase it with >> ulimit -n 4096 <<
*Remember this is how many files descriptors your user session can open.
You also should check /proc/sys/fs/file-max you can check how many file descriptors your OS can handle ( you can increase that too )
on /etc/security/limits.conf you can set the start descriptors for your use. Its the definitly configuration.
Make those changes and try a restart.
Good Lucky
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/631672#631672]
Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111013/5ba19b41/attachment.html
More information about the jboss-dev-forums
mailing list