You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kranti™ K K Parisa <kr...@gmail.com> on 2008/12/04 05:11:11 UTC

Need help : Tomcat Stuck up

We are facing very serious issues of tomcat getting stuck after using it for
some time.

I am getting scared that allocating 1.5GB of RAM for java in tomcat is
causing any problem??

There is no exception/error in log files.

I am using the following on windows 2003 std edition.

Tomcat 5.5.25
PostgreSQL 8.3.5
JVM version : 1.5.0_16-b02

TOTAL RAM : 4GB

please suggest me something.

Thanks a ton in advance.

Re: Need help : Tomcat Stuck up

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

To whom it may concern,

Kranti™ K K Parisa wrote:
> Could you please help me with the commands that i need to run to watch the
> thread dump.

Are you running Tomcat as a service, or are you starting it manually
from the command line? If you start it manually and have a terminal
open, press CTRL-\ which will cause the JVM to emit a thread dump to the
console.

If you're running Tomcat as a service, you'll need to try some other
techniques. Google for something like "tomcat windows service thread
dump" to find out how to get a thread dump.

> and when i run java -verbose:gc its asking for options, what
> can i select along with that ?

You need to change the options that Tomcat uses to start the JVM. If you
aren't running as a service, you can set the JAVA_OPTS environment
variable to "-verbose:gc" before starting Tomcat using startup.bat. If
you are running a service, I think you have to run "tomcat5w.exe" in the
bin directory and edit the options from the "Java" tab.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk4VlUACgkQ9CaO5/Lv0PA/QQCfQVyR0HbU43430ozjaCXL2hGJ
jAAAn0tZ5cUWe8GBeDy5ercgo6S03Y6e
=Z7lN
-----END PGP SIGNATURE-----

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


Re: Need help : Tomcat Stuck up

Posted by Kranti™ K K Parisa <kr...@gmail.com>.
Hi,

Thanks for the quick reply.
Could you please help me with the commands that i need to run to watch the
thread dump. and when i run java -verbose:gc its asking for options, what
can i select along with that ?

Sorry to ask you this, but all these are new things for me. So please
suggest

On Thu, Dec 4, 2008 at 9:55 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Kranti(tm) K K Parisa [mailto:kranti.parisa@gmail.com]
> > Subject: Need help : Tomcat Stuck up
> >
> > We are facing very serious issues of tomcat getting stuck
> > after using it for some time.
>
> What does a thread dump show?  What does running with -verbose:gc show?
>
> Try connecting to the stuck JVM with JConsole and see what it shows about
> memory and threads.  (Better yet, connect before it gets stuck so you can
> observe what normal operation looks like, and then compare that with what's
> shown when it does hang.)
>
>  - 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: Need help : Tomcat Stuck up

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Kranti(tm) K K Parisa [mailto:kranti.parisa@gmail.com]
> Subject: Need help : Tomcat Stuck up
>
> We are facing very serious issues of tomcat getting stuck
> after using it for some time.

What does a thread dump show?  What does running with -verbose:gc show?

Try connecting to the stuck JVM with JConsole and see what it shows about memory and threads.  (Better yet, connect before it gets stuck so you can observe what normal operation looks like, and then compare that with what's shown when it does hang.)

 - 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