This content has been marked as final.
Show 10 replies
-
-
2. Re: AW: "Too many open files" error in Linux
boraldo Jun 3, 2010 11:07 AM (in response to 392 Guest)No. It is a usual machine with Linux OS. -
3. RE: Re: AW: "Too many open files" error in Linux
392 Guest Jun 3, 2010 1:46 PM (in response to boraldo)Plz increase the file limit on linux box using ulimit i guess. Brij -----Original Message----- From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org] Sent: Thursday, June 03, 2010 2:37 PM To: users@glassfish.dev.java.net Subject: Re: AW: "Too many open files" error in Linux No. It is a usual machine with Linux OS. [Message sent by forum member 'boraldo'] http://forums.java.net/jive/thread.jspa?messageID=472524 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net -
4. Re: "Too many open files" error in Linux
hammoud Jun 3, 2010 2:39 PM (in response to boraldo)On OpenSuse system fixed the "Too many open files" problem by increasing the limits in "/etc/security/limits.conf": http://www.i-coding.de/www/en/glassfish/configuration/too-many-open-files.html This did not work on Debian5 (think was a bug) Set ulimit in /root/bashrc additionally. -
5. Re: "Too many open files" error in Linux
392 Guest Jun 3, 2010 3:03 PM (in response to boraldo)On Thu, 2010-06-03 at 01:18 -0700, glassfish@javadesktop.org wrote: > My Glassfish works on Linux. > I have 3 simultaneous domains. > > Often when I start domain it throws > >> java.io.IOException: Too many open files > > What should I do to get rid of it ? This is what we did (assuming GlassFish runs as user "glassfish"): Add the following lines to /etc/security/limits.conf to increase the maximum number of open files for the user that Glassfish runs as: glassfish soft nofile 32768 glassfish hard nofile 65536 You will also need to add this line in /etc/pam.d/su: session required pam_limits.so -- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Software Engineer phone: 414-908-1809 Weyco Group, Inc. fax: 414-908-1601 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net -
6. Re: AW: "Too many open files" error in Linux
392 Guest Jun 3, 2010 3:47 PM (in response to boraldo) -
7. Re: AW: "Too many open files" error in Linux
boraldo Jun 4, 2010 12:05 PM (in response to 392 Guest)How can I ensure that at this moment number of opened files is less than I set up though etc/security/limit ? -
8. Re: "Too many open files" error in Linux
boraldo Jun 7, 2010 9:13 AM (in response to boraldo)How can I ensure that at this moment number of opened files is less than I set up though etc/security/limit or etc/profile ? -
9. Re: "Too many open files" error in Linux
rjdkolb-JavaNet Jun 7, 2010 3:20 PM (in response to boraldo)> What should I do to get rid of it ? Perhaps you should check what is causing it. Do a lsof (ls open files) My GlassFish is installed in a directory glassfishv3 So I : lsof |grep glassfishv3 | wc -l My output is 563, so GlassFish 3 has opened 563 files for a newly started GlassFish. Perhaps you can monitor this value and see if GlassFish is gradually leaking file descriptors. (Which is possible even in Java) If you could prove this, and if I ever meet you, I will buy you a cold beer :) regards Richard. -
10. Re: "Too many open files" error in Linux
boraldo Jun 7, 2010 7:08 PM (in response to rjdkolb-JavaNet)Sometimes when I meet this problem I do even [b]lsof | wc -l[/b]. It shows much less than [b]ulimit -n[/b]. How could error happen?