Re: Too many open files error

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lance, On 8/24/2011 11:21 AM, Campbell, Lance wrote: > Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit > /proc/sys/fs/file-max = 3233344 > > We experienced an issue where we were getting the error "too many > open files" in tomcat. The serv

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
On Wed, Aug 24, 2011 at 17:33, Campbell, Lance wrote: > The file /etc/security/limits.d is empty.  What would be an example of > something you would expect to see in there that would relate to changing the > RMILIT_NFILE value? > It's a directory, not a file. Create a file named tomcat in it (o

RE: Too many open files error

2011-08-24 Thread Campbell, Lance
10:24 AM To: Tomcat Users List Subject: Re: Too many open files error On Wed, Aug 24, 2011 at 17:21, Campbell, Lance wrote: > Tomcat 6.0.32 > Java 1.6.27 > Apache 2.0 > RedHat 6.x 64 bit > /proc/sys/fs/file-max = 3233344 > > We experienced an issue where we were getting the

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
On Wed, Aug 24, 2011 at 17:21, Campbell, Lance wrote: > Tomcat 6.0.32 > Java 1.6.27 > Apache 2.0 > RedHat 6.x 64 bit > /proc/sys/fs/file-max = 3233344 > > We experienced an issue where we were getting the error "too many open files" > in tomcat.  The server manager increase the amount of open fil

Re: too many open files issue in tomcat

2011-06-27 Thread Jason Viloria
On Mon, Jun 27, 2011 at 12:30 PM, Mark Thomas wrote: > On 27/06/2011 11:21, dasari@wipro.com wrote: > > Hi, > > > > Tomcat version is 6.0.29 > > OS is RHEL5.5-1 > > -Xms256m -Xmx768m" > > No explicit file descriptor configuration its default of OS > > Not observed the out of memory error but

Re: too many open files issue in tomcat

2011-06-27 Thread Mark Thomas
, June 27, 2011 3:38 PM > To: users@tomcat.apache.org > Subject: RE: too many open files issue in tomcat > > I think you will get better help by providing the following: > -Which tomcat version are you using? > -Which OS are you deploying on? > -What is your memory setting for t

RE: too many open files issue in tomcat

2011-06-27 Thread dasari.rao
gards Dayakar -Original Message- From: Guy Katz [mailto:gk...@allot.com] Sent: Monday, June 27, 2011 3:38 PM To: users@tomcat.apache.org Subject: RE: too many open files issue in tomcat I think you will get better help by providing the following: -Which tomcat version are you using? -Which O

RE: too many open files issue in tomcat

2011-06-27 Thread Guy Katz
I think you will get better help by providing the following: -Which tomcat version are you using? -Which OS are you deploying on? -What is your memory setting for tomcat (if explicitly set)? -What's your file descriptor configuration in the OS (if explicitly set)? -does the problem arrive alongsid

Re: Too many open files

2010-05-25 Thread Rainer Jung
On 25.05.2010 11:54, André Warnier wrote: pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97) sun.nio.ch.SocketChannelImpl.(

RE: too many open files

2010-05-25 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: too many open files > > > I had a look at my servlet, but it closes the connection after > > doing a request. > > Does it close the connection if the request throws an error? And as previously suggested, use netsta

Re: too many open files

2010-05-25 Thread Pid
On 25/05/2010 11:38, pri...@samea.de wrote: > Hello, > > I had a look at my servlet, but it closes the connection after > doing a request. Does it close the connection if the request throws an error? p > Further it crashes by opening the nameserver. > > Thanks for your help. > > br, > > Mar

RE: too many open files

2010-05-25 Thread privat
Hello, I had a look at my servlet, but it closes the connection after doing a request. Further it crashes by opening the nameserver. Thanks for your help. br, Markus >pri...@samea.de wrote: >> Hello, >> >> I have a problem with my little CORBA-Servlet. >> Allways I get this error: >> >> ja

Re: Too many open files

2010-05-25 Thread Pid
On 25/05/2010 10:26, pri...@samea.de wrote: > Hello, > > I have a problem with my little CORBA-Servlet. > Allways I get this error: > > java.net.SocketException: Too many open files > sun.nio.ch.Net.socket0(Native Method) > sun.nio.ch.Net.socket(Net.java:97) > sun.nio.ch.SocketChannel

Re: Too many open files

2010-05-25 Thread André Warnier
pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97) sun.nio.ch.SocketChannelImpl.(SocketChannelImpl.java:84)

Re: Too many open files

2008-10-10 Thread Mohit Anchlia
I am using tomcat to apache (for load balancing) On Fri, Oct 10, 2008 at 12:23 PM, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Johnny, > > Johnny Kewl wrote: >> PS: I see you have a Apache in front... >> Try this... setup the 8080 connector

Re: Too many open files

2008-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: > PS: I see you have a Apache in front... > Try this... setup the 8080 connector if you havnt already got it working > in TC... and go into TC direct... then check file handles > If no problem, you know its Apache or the

Re: Too many open files

2008-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, Mohit Anchlia wrote: > So I tried all the options. I also changed the code to use connection > pooling with only 2 connections but still there are bunch of > CLOSE_WAITS. As soon as I stop tomcat all of them go away. I am not > able to figure o

Re: Too many open files

2008-10-08 Thread Mohit Anchlia
I don't know how that will help in lowering down the CLOSE_WAITS from tomcat to apache. I'll look at it though. On Wed, Oct 8, 2008 at 3:07 PM, Serge Fonville <[EMAIL PROTECTED]> wrote: > I'm recently new to tomcat, but still I hope I am able to help a little.On > one end, any connection object sh

Re: Too many open files

2008-10-08 Thread Serge Fonville
I'm recently new to tomcat, but still I hope I am able to help a little.On one end, any connection object should be nulled so the garbage collector can pick it up. On the other end, in server.xml define an executor and refer it in the connector, that way, you can specify the idle time and the maxim

Re: Too many open files

2008-10-08 Thread Mohit Anchlia
So I tried all the options. I also changed the code to use connection pooling with only 2 connections but still there are bunch of CLOSE_WAITS. As soon as I stop tomcat all of them go away. I am not able to figure out why there are so many CLOSE_WAITS hanging around when I just have 2 connections i

Re: Too many open files

2008-10-08 Thread Konstantin Kolinko
2008/10/8 Mohit Anchlia <[EMAIL PROTECTED]>: > I can see you can't wait to hear the debate. Anyhow, I am using > HttpClient from apache commons and I do have .getReleaseConnection(). > See comment #22 here: https://issues.apache.org/bugzilla/show_bug.cgi?id=28727#c22 and the message thread that it

Re: Too many open files

2008-10-07 Thread Johnny Kewl
- Original Message - From: "Mohit Anchlia" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, October 08, 2008 2:11 AM Subject: Re: Too many open files I can see you can't wait to hear the debate. Anyhow, I am using HttpClient fr

Re: Too many open files

2008-10-07 Thread Johnny Kewl
- Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, October 08, 2008 1:56 AM Subject: Re: Too many open files - Original Message - From: "Mohit Anchlia" <[EMAIL PROTECTED]> To: &

Re: Too many open files

2008-10-07 Thread Mohit Anchlia
I can see you can't wait to hear the debate. Anyhow, I am using HttpClient from apache commons and I do have .getReleaseConnection(). On Tue, Oct 7, 2008 at 4:56 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message - From: "Mohit Anchlia" <[EMAIL PROTECTED]> > To: "Tomcat User

Re: Too many open files

2008-10-07 Thread Johnny Kewl
- Original Message - From: "Mohit Anchlia" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, October 07, 2008 11:44 PM Subject: Too many open files Tomcat throws too many open files and when I do lsof I get bunch of: java14130 root 935u IPv4 30842592 TC

Re: Too many open files exception under heavy load - need help!

2008-01-25 Thread Rainer Jung
Tobias Schulz-Hess wrote: Hi Rainer, Rainer Jung schrieb: Hi, 1) How many fds does the process have, so is the question "why can't we use all those 4096 fds configured", or is it "Where do those 4096 fdsused by my process come from"? The latter. We can actually see the 4096 fds are used (by p

Re: Too many open files exception under heavy load - need help!

2008-01-25 Thread Tobias Schulz-Hess
Hi Rainer, Rainer Jung schrieb: > Hi, > > 1) How many fds does the process have, so is the question "why can't > we use all those 4096 fds configured", or is it "Where do those 4096 > fdsused by my process come from"? The latter. We can actually see the 4096 fds are used (by port 8080 in CLOSE_WAI

Re: Too many open files exception under heavy load - need help!

2008-01-25 Thread Rainer Jung
Hi, 1) How many fds does the process have, so is the question "why can't we use all those 4096 fds configured", or is it "Where do those 4096 fdsused by my process come from"? 2) CLOSE_WAIT means the remote side closed the connection and the local side didn't yet close it. What's you remote

Re: Too many open files exception under heavy load - need help!

2008-01-25 Thread Rainer Traut
Tobias Schulz-Hess schrieb: For Linux, this can be done dynamically by launching (fron the OS prompt): echo "16384" >/proc/sys/fs/file-max When I do ~# cat /proc/sys/fs/file-max 203065 This setting is a kernel limit. This tells me, that (at least this specific setting) is already suf

Re: Too many open files exception under heavy load - need help!

2008-01-24 Thread Tobias Schulz-Hess
Hi Bruno, thanks for your quick reply. Bruno Vilardo schrieb: > What Does "uname -a" say? :~# uname -a Linux bruder 2.6.18-5-amd64 #1 SMP Thu May 31 23:51:05 UTC 2007 x86_64 GNU/Linux You are probably more interested in: ~# cat /proc/version Linux version 2.6.18-5-amd64 (Debian 2.6.18.dfsg.1-13)

Re: Too many open files exception under heavy load - need help!

2008-01-24 Thread Bruno Vilardo
Tobias, You probably need to tune some kernel paramerters. I had some issues with our application get "stuck" at some point that we needed to restart everything. And since you said it is a brend new server, you might have the defalt values set in there. What Does "uname -a" say? The kernel param

Re: Too many open files exception under heavy load - need help!

2008-01-24 Thread David Brown
IMHO, try jakarta.apache.org JMeter. Take a close look at the very rigorous load/stress testing so-called Test Plan that is a distributed load test. HTH. Tobias Schulz-Hess wrote .. > Hi there, > > we use the current Tomcat 6.0 on 2 machines. The hardware is brand new and is > really > fast. We

Re: Too many open files error -- using tomcat 6.0.14 on RHEL 4

2007-11-16 Thread Filip Hanik - Dev Lists
Since you are on a Linux system, use a little utility called "lsof" This one will list all the file descriptor associated with your process. When you get the output, it will point you to where you are using up all your file descriptors. Also, check your "ulimit -n" setting for the user running

Re: Too Many Open Files error

2007-10-20 Thread Filip Hanik - Dev Lists
ubject: Re: Too Many Open Files error Thanks Jim, It was previously set to 1024, and I quadrupled it. When you say ulimit is persistent will it persist across a reboot? I don't seem to have the command lsof, I'll try and apt-get it. Cheers Dan Jim Cox wrote: On 10/19/07, Daniel M

Re: Too Many Open Files error

2007-10-19 Thread Nix Hanwei
Hi Dan, You can try sysctrl.conf file. Add in the ulimit -n for open files. - Original Message From: Daniel M Garland <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, 19 October 2007 9:43:00 Subject: Re: Too Many Open Files error Thanks Jim, It was previously set to 102

Re: Too Many Open Files error

2007-10-19 Thread Jim Cox
On 10/19/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Thanks Jim, > > It was previously set to 1024, and I quadrupled it. When you say ulimit > is persistent will it persist across a reboot? > > I don't seem to have the command lsof, I'll try and apt-get it. > > Cheers > Dan The settings shou

Re: Too Many Open Files error

2007-10-19 Thread Daniel M Garland
Thanks Jim, It was previously set to 1024, and I quadrupled it. When you say ulimit is persistent will it persist across a reboot? I don't seem to have the command lsof, I'll try and apt-get it. Cheers Dan Jim Cox wrote: On 10/19/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: Should I the

Re: Too Many Open Files error

2007-10-19 Thread Jim Cox
On 10/19/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Should I then place ulimit -n in the catalina startup scripts? Setting a limit with ulimit is "sticky" (i.e. persistent), so there's no need to stick it in the startup script. However, you didn't answer the previous two questions abo

Re: Too Many Open Files error

2007-10-19 Thread Daniel M Garland
Should I then place ulimit -n in the catalina startup scripts? Jim Cox wrote: On 10/18/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: Hi all I'm seeing a problem on a Tomcat instance: 18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor run SEVERE: Socket accept failed o

Re: Too Many Open Files error

2007-10-18 Thread Jim Cox
On 10/18/07, Daniel M Garland <[EMAIL PROTECTED]> wrote: > Hi all > > I'm seeing a problem on a Tomcat instance: > > 18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor run > SEVERE: Socket accept failed > org.apache.tomcat.jni.Error: Too many open files > at org.apache.to

Re: Too Many Open Files error

2007-10-18 Thread Peter Bauer
Am Donnerstag 18 Oktober 2007 schrieb Daniel M Garland: > Hi all > > I'm seeing a problem on a Tomcat instance: > > 18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor run > SEVERE: Socket accept failed > org.apache.tomcat.jni.Error: Too many open files > at org.apache.tom