Re: Apache Tomcat8 blocked once reached max thread(s) count

2016-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 5/2/16 7:29 AM, David kerber wrote:
> On 5/2/2016 3:33 AM, Kapilan A wrote:
>> Hi Folks
>> 
>> I am facing one issue with Apache Tomcat 8.
>> 
>> 
>> 
>> In 32 GB machine, four instances of tomcat is running and every
>> tomcat has memory as 512-1024.
>> 
>> 
>> 
>> In the SQl server, a particular table called "MetaData".
>> 
>> 
>> 
>> Third party engine will post a http request through tomcat. it
>> accepts max thread as 150. Savings will happen in MetaData table
>> which is around 8 million records.
>> 
>> 
>> 
>> After 12 hours continuously posting, then one of the tomcat is
>> freeze. Its not accepting any more connections from third party
> 
> Without knowing anything about your app, I'd guess you have a
> statement or connection leak, causing the db to not accept any more
> connections.

+1

Enable "abandoned connection logging" and see what comes out.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlcqPrEACgkQ9CaO5/Lv0PBJNwCdGnwRkp+4jAMrnv/3ItqFEdKg
Bq4An0IBinbq1gTUZfCXpu1GmrwcWmj1
=gBKf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Tomcat8 blocked once reached max thread(s) count

2016-05-02 Thread David kerber

On 5/2/2016 3:33 AM, Kapilan A wrote:

Hi Folks

I am facing one issue with Apache Tomcat 8.



In 32 GB machine, four instances of tomcat is running and every tomcat has
memory as 512-1024.



In the SQl server, a particular table called "MetaData".



Third party engine will post a http request through tomcat. it accepts max
thread as 150. Savings will happen in MetaData table which is around 8
million records.



After 12 hours continuously posting, then one of the tomcat is freeze. Its
not accepting any more connections from third party


Without knowing anything about your app, I'd guess you have a statement 
or connection leak, causing the db to not accept any more connections.





and not creating sql connections too.



What kind of optimum configurations should i follow up in production machine
?



Please guide me to solve this problem soon.





Thanks & Regards



Kapilan A





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Tomcat8 blocked once reached max thread(s) count

2016-05-02 Thread Mark Thomas
On 02/05/2016 08:33, Kapilan A wrote:
> I am facing one issue with Apache Tomcat 8.

Which version?



> After 12 hours continuously posting, then one of the tomcat is freeze. Its
> not accepting any more connections from third party 

What do the logs show?

What about a thread dump? Ideally, you should take 3 thread dumps ~15s
apart and compare them.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Apache Tomcat8 blocked once reached max thread(s) count

2016-05-02 Thread Kapilan A
Hi Folks

I am facing one issue with Apache Tomcat 8.



In 32 GB machine, four instances of tomcat is running and every tomcat has
memory as 512-1024.

 

In the SQl server, a particular table called "MetaData".

 

Third party engine will post a http request through tomcat. it accepts max
thread as 150. Savings will happen in MetaData table which is around 8
million records.

 

After 12 hours continuously posting, then one of the tomcat is freeze. Its
not accepting any more connections from third party 

and not creating sql connections too.

 

What kind of optimum configurations should i follow up in production machine
?

 

Please guide me to solve this problem soon.

 

 

Thanks & Regards

 

Kapilan A