You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ramesh B R <ra...@gmail.com> on 2024/12/17 11:36:45 UTC

Tomcat9 - unresponsive

Hello team,

Need your help to resolve the unresponsive behaviour of tomcat9 very
frequently which made us to restart the server to fix the issue which is
not a right thing.

Tomcat 9
Java8
Linux 8

Please let me know if you need any other details.

Regards,
Ramesh

Re: Tomcat9 - unresponsive

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Ramesh,

On 12/17/24 7:58 AM, Ramesh B R wrote:
> Have few more questions.
 >
> 1.  What would be the idle heap memory  in production, we have 32 GB RAM

This is affected by MANY factors and would be impossible for us to predict.

A Tomcat with no applications deployed on it takes only a few MB of heap 
space. Everything else will be your application.

> 2.  Calling system very frequently see this error "Connect to
> gte-onesource.wip.its.hpecorp.net:8080 failed: NIECONN_REFUSED(-10)", how
> to fix this one?

That depends entirely on the reason the connections are being refused.

Follow Mark's recommendations for determining what the server is 
actually doing when it becomes unresponsive. Only then would we be able 
to suggest some action steps.

> 3. How to restart the server without impacting current transactions.

This depends upon how your transactions are structured. My guess is that 
this is impossible unless you have made specific arrangements to allow 
"transactions" (by whatever definition) to continue while Tomcat (really 
your application) is not running.

-chris

> On Tue, Dec 17, 2024 at 6:06 PM Mark Thomas <ma...@apache.org> wrote:
> 
>> On 17/12/2024 11:36, Ramesh B R wrote:
>>> Hello team,
>>>
>>> Need your help to resolve the unresponsive behaviour of tomcat9 very
>>> frequently which made us to restart the server to fix the issue which is
>>> not a right thing.
>>>
>>> Tomcat 9
>>> Java8
>>> Linux 8
>>>
>>> Please let me know if you need any other details.
>>
>> Next time it happens take 3 thread dumps each ~5 seconds apart. A 3-way
>> diff between those thread dumps is likely to show you where/why things
>> are backed up. If you need help interpreting that data, post the thread
>> dumps somewhere we can download them and send the links to this list.
>>
>> Mark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


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


Re: Tomcat9 - unresponsive

Posted by Ramesh B R <ra...@gmail.com>.
Hi Mark,

Thank you for your response.

Have few more questions.
1.  What would be the idle heap memory  in production, we have 32 GB RAM
2.  Calling system very frequently see this error "Connect to
gte-onesource.wip.its.hpecorp.net:8080 failed: NIECONN_REFUSED(-10)", how
to fix this one?
3. How to restart the server without impacting current transactions.

Regards,
Ramesh





Regards,
Ramesh

On Tue, Dec 17, 2024 at 6:06 PM Mark Thomas <ma...@apache.org> wrote:

> On 17/12/2024 11:36, Ramesh B R wrote:
> > Hello team,
> >
> > Need your help to resolve the unresponsive behaviour of tomcat9 very
> > frequently which made us to restart the server to fix the issue which is
> > not a right thing.
> >
> > Tomcat 9
> > Java8
> > Linux 8
> >
> > Please let me know if you need any other details.
>
> Next time it happens take 3 thread dumps each ~5 seconds apart. A 3-way
> diff between those thread dumps is likely to show you where/why things
> are backed up. If you need help interpreting that data, post the thread
> dumps somewhere we can download them and send the links to this list.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat9 - unresponsive

Posted by Mark Thomas <ma...@apache.org>.
On 17/12/2024 11:36, Ramesh B R wrote:
> Hello team,
> 
> Need your help to resolve the unresponsive behaviour of tomcat9 very
> frequently which made us to restart the server to fix the issue which is
> not a right thing.
> 
> Tomcat 9
> Java8
> Linux 8
> 
> Please let me know if you need any other details.

Next time it happens take 3 thread dumps each ~5 seconds apart. A 3-way 
diff between those thread dumps is likely to show you where/why things 
are backed up. If you need help interpreting that data, post the thread 
dumps somewhere we can download them and send the links to this list.

Mark


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