RE: [JBoss-dev] too many open files on Linux
Hi, You can try the ulimit command. Laurent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bill Burke Sent: mercredi 22 octobre 2003 01:58 To: Jboss-Dev Cc: [EMAIL PROTECTED] Subject: [JBoss-dev] too many open files on Linux I'm on RH 8.0. I'm getting java.net.SocketException: Too many open files To get over this problem do I just expand via /proc/sys/fs/file-max? Or is there a different way? Thanks, Bill -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] too many open files on Linux
That is not going to help as that is the max for all users. It should be the user limits that are restricting this, my default is: [EMAIL PROTECTED] tmp]$ ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 1024 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited However, I cannot up this using ulimit -n: [EMAIL PROTECTED] starksm]$ ulimit -n 4096 -bash: ulimit: open files: cannot modify limit: Operation not permitted I had to sudo to root, up it, and then su back to raise the user limits: [EMAIL PROTECTED] starksm]$ sudo bash [EMAIL PROTECTED] starksm]# ulimit -n 4096 [EMAIL PROTECTED] starksm]# ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 4096 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited [EMAIL PROTECTED] starksm]# su - starksm [EMAIL PROTECTED] starksm]$ ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files(-n) 4096 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 7168 virtual memory(kbytes, -v) unlimited -- Scott Stark Chief Technology Officer JBoss Group, LLC Bill Burke wrote: I'm on RH 8.0. I'm getting java.net.SocketException: Too many open files To get over this problem do I just expand via /proc/sys/fs/file-max? Or is there a different way? Thanks, Bill --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] too many open files on Linux
Use ulimit -n, AND MAKE SURE that it is set globally (for all shells) OR put it in the run.sh file otherwise the risk is that: - you set it in your current shell - you launch run.sh - run.sh overrides your ulimit value (see run.sh file) Cheers, Sacha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Burke Sent: mercredi, 22. octobre 2003 01:58 To: Jboss-Dev Cc: [EMAIL PROTECTED] Subject: [JBoss-dev] too many open files on Linux I'm on RH 8.0. I'm getting java.net.SocketException: Too many open files To get over this problem do I just expand via /proc/sys/fs/file-max? Or is there a different way? Thanks, Bill -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development