Re: How can i configure tomcat to avoid threads error in tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 3:25 PM, Prashant Thakkar wrote: I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Hi Prashant, You may want to increase your 'maxThreads' setting in conf/server.xml Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / You may also want to look at why you have 250 connections open at once Based on the question, It sounds like you have an infinite loop somewhere in your application rather than a lot of traffic, causing the threads to lock up... Cheers Andrew -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFGd9u0W126qUNSzvURAiDKAJ4ujmWo8Mnd8jHGQdZnEqBCcuIaGQCfVD30 oa6A6IWqNscwAtejrIvf0tM= =VNFN -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can i configure tomcat to avoid threads error in tomcat
Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Prashant Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 7:25 AM To: users@tomcat.apache.org Subject: How can i configure tomcat to avoid threads error in tomcat Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Thanks in advance - Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i configure tomcat to avoid threads error in tomcat
Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 Below is the connector which we are using: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=250 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- Thanks and Regards, - Prashant Thakkar On 6/19/07, Robert Harper [EMAIL PROTECTED] wrote: Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Prashant Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 7:25 AM To: users@tomcat.apache.org Subject: How can i configure tomcat to avoid threads error in tomcat Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Thanks in advance - Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Prashant Thakkar
Re: How can i configure tomcat to avoid threads error in tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 4:45 PM, Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Is the server running a lot of traffic? Then you may want to increase this even further. Is the CPU load of the server at 100%? If so, the clients software probably has an infinite loop - and no amount of config 'tuning' will fix this. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 What do you mean exactly by thread pooling? Andrew -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFGd+3OW126qUNSzvURAnt7AJ9ciXedLgRkgMSiEELTcfalAaPFOwCfR81w /N4rNbJfMiZ1FKJLIGILbxI= =6+1V -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i configure tomcat to avoid threads error in tomcat
Prashant, Unless I'm load-testing, the only time I've seen thread counts that high is when something is wrong with the app, and it's usually a database connection that hasn't been closed. Check the number of database connections in use out of the pool (this is typically something that you'd do on the database server itself; I don't know of any mechanism in Tomcat to get that measurement). If that is also an extraordinarily large number, then you might consider checking for database connections that haven't been closed. For typical sites, you really don't usually need a database connection pool any larger than a few tens of connections. What happens is that the database connection pool (or the database server itself) exhausts its supply of connections, and new requests that come in to Tomcat queue until more connections come open or the connection requests time out. Good luck. B. Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 Below is the connector which we are using: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=250 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- Thanks and Regards, - Prashant Thakkar On 6/19/07, Robert Harper [EMAIL PROTECTED] wrote: Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Prashant Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 7:25 AM To: users@tomcat.apache.org Subject: How can i configure tomcat to avoid threads error in tomcat Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Thanks in advance - Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i configure tomcat to avoid threads error in tomcat
Hi, I read an abt thread pooling on below url: http://www.hp.com/products1/unix/webservers/apache/techtips/tomcat.html Thanks and Regards, -Prashant Thakkar On 6/19/07, Andrew Miehs [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 4:45 PM, Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Is the server running a lot of traffic? Then you may want to increase this even further. Is the CPU load of the server at 100%? If so, the clients software probably has an infinite loop - and no amount of config 'tuning' will fix this. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 What do you mean exactly by thread pooling? Andrew -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFGd+3OW126qUNSzvURAnt7AJ9ciXedLgRkgMSiEELTcfalAaPFOwCfR81w /N4rNbJfMiZ1FKJLIGILbxI= =6+1V -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Prashant Thakkar
Re: How can i configure tomcat to avoid threads error in tomcat
Hi, The application does not make database connection. Instead makes and http request to web server to fetch content. This web server is heavily loaded with traffic. The high end web server configuration and optimization handles all the request quite efficiently. (No doubt on the web server processing speed) Thanks and Regards, -Prashant Thakkar. On 6/19/07, Brantley Hobbs [EMAIL PROTECTED] wrote: Prashant, Unless I'm load-testing, the only time I've seen thread counts that high is when something is wrong with the app, and it's usually a database connection that hasn't been closed. Check the number of database connections in use out of the pool (this is typically something that you'd do on the database server itself; I don't know of any mechanism in Tomcat to get that measurement). If that is also an extraordinarily large number, then you might consider checking for database connections that haven't been closed. For typical sites, you really don't usually need a database connection pool any larger than a few tens of connections. What happens is that the database connection pool (or the database server itself) exhausts its supply of connections, and new requests that come in to Tomcat queue until more connections come open or the connection requests time out. Good luck. B. Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 Below is the connector which we are using: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=250 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- Thanks and Regards, - Prashant Thakkar On 6/19/07, Robert Harper [EMAIL PROTECTED] wrote: Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Prashant Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 7:25 AM To: users@tomcat.apache.org Subject: How can i configure tomcat to avoid threads error in tomcat Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Thanks in advance - Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i configure tomcat to avoid threads error in tomcat
Prashant Thakkar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 Below is the connector which we are using: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=250 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 disableUploadTimeout=true / You almost certainly don't want connectionTimeout=0. That will tie up threads until the browser decides to drop the connection. !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- Thanks and Regards, - Prashant Thakkar On 6/19/07, Robert Harper [EMAIL PROTECTED] wrote: Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for the addressee and may contain confidential and/or privileged information. Any review, retransmission, or action taken upon this information by persons other than the intended recipient is prohibited by law. If you received this communication in error, please contact us immediately at 801-265-8800. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that anything received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: Prashant Thakkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 19, 2007 7:25 AM To: users@tomcat.apache.org Subject: How can i configure tomcat to avoid threads error in tomcat Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status Thanks in advance - Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Prashant Thakkar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]