You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anuroop <an...@galaxyintelligentia.com> on 2012/11/19 12:52:21 UTC

My app stop respoding after 3 to 5 days in my Redhat server

Hi,

 

I am new for tomcat and linux.

 

I have hosted my application on my redhat server, from last 1 week I am
observing that its suddenly stops working after continuously running after 2
to 3days.

 

Observation:

 

Whenever my app stops responding I use to check port running or not using
fuser 80/tcp command. I see that tomcat 80 port will be running fine.

 

If I kill this port fuser 80/tcp -k and run tomcat once again my web app
start working properly for again 2 to 3 days.

 

I wanted to know whether is there any configuration issue in my tomcat,
because of more request coming from the client machine it is stop working?

 

 

Thanks and Regards,

Anuroop

 


Re: My app stop respoding after 3 to 5 days in my Redhat server

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 11/19/12 9:13 AM, Caldarale, Charles R wrote:
>> From: Daniel Mikusa [mailto:dmikusa@vmware.com] Subject: Re: My
>> app stop respoding after 3 to 5 days in my Redhat server
> 
>>> I wanted to know whether is there any configuration issue in my
>>> tomcat, because of more request coming from the client machine
>>> it is stop working?
> 
>> Take some thread dumps when the application is no longer
>> responding. 
>> https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F
>
>> 
> I would also recommend enabling GC logging or monitoring via JMX,
> since the symptoms are typical of heap exhaustion.  For
> simplicity's sake, setting -verbose:gc is likely the easiest thing
> to do for those unfamiliar with Java.  This link provides a
> reasonable description of how:
> 
> http://freddyandersen.wordpress.com/2009/07/14/how-to-enable-verbose-gc-in-tomcat/
>
>  JMX monitoring via VisualVM or JConsole will also provide a lot of
> information in a more palatable format, but can be trickier to set
> up.

Also, anything suspicious in logs/* is a good place to start.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlCqkp8ACgkQ9CaO5/Lv0PBHrwCfei7y6lk7ynpRtKYAaNkeCo2L
/lcAoKDBwsKwCa9C0rkVDQJx36A+VFZd
=AOnl
-----END PGP SIGNATURE-----

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


RE: My app stop respoding after 3 to 5 days in my Redhat server

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Daniel Mikusa [mailto:dmikusa@vmware.com] 
> Subject: Re: My app stop respoding after 3 to 5 days in my Redhat server

> > I wanted to know whether is there any configuration issue in my tomcat,
> > because of more request coming from the client machine it is stop working?

> Take some thread dumps when the application is no longer responding.
> https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

I would also recommend enabling GC logging or monitoring via JMX, since the symptoms are typical of heap exhaustion.  For simplicity's sake, setting -verbose:gc is likely the easiest thing to do for those unfamiliar with Java.  This link provides a reasonable description of how:

http://freddyandersen.wordpress.com/2009/07/14/how-to-enable-verbose-gc-in-tomcat/

JMX monitoring via VisualVM or JConsole will also provide a lot of information in a more palatable format, but can be trickier to set up.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: My app stop respoding after 3 to 5 days in my Redhat server

Posted by Daniel Mikusa <dm...@vmware.com>.
On Nov 19, 2012, at 6:52 AM, Anuroop wrote:

> Hi,
> 
> 
> 
> I am new for tomcat and linux.
> 
> 
> 
> I have hosted my application on my redhat server, from last 1 week I am
> observing that its suddenly stops working after continuously running after 2
> to 3days.
> 
> 
> 
> Observation:
> 
> 
> 
> Whenever my app stops responding I use to check port running or not using
> fuser 80/tcp command. I see that tomcat 80 port will be running fine.
> 
> 
> 
> If I kill this port fuser 80/tcp -k and run tomcat once again my web app
> start working properly for again 2 to 3 days.
> 
> 
> 
> I wanted to know whether is there any configuration issue in my tomcat,
> because of more request coming from the client machine it is stop working?
> 

Take some thread dumps when the application is no longer responding.  This will tell you what is happening in the application once it has stopped responding to requests.  Ideally you'd want three or more thread dumps, spread out with 15 - 20 seconds in between each thread dump.

  https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

Dan

> 
> 
> 
> 
> Thanks and Regards,
> 
> Anuroop
> 
> 
> 


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