tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peng Tuck Kwok" <>
Subject Re: jstack and Tomcat 6 on Windows
Date Tue, 23 Sep 2008 09:08:04 GMT
Hmm if you have a memory leak in the application perhaps you can profile it
using a profiler. Try the one in eclipse and attach as a remote client to
the vm running tomcat.

On Sat, Sep 20, 2008 at 6:58 AM, Brian Clark <> wrote:

> Thanks everyone for their suggestions.
> Unfortunately, that doesn't help me with my particular issue. I have a
> memory leak in one of my apps, and when the system runs out of memory, it
> stops responding to new requests. I have a script that will detect this
> condition and automatically restart Tomcat. I was hoping to add a jstack
> command to this script to give me a thread dump prior to restarting Tomcat
> to give me better troubleshooting information. Your solution would work
> under normal circumstances, but I don't know how to script a ctrl+break.
>  ;-)
> ----- Original Message ----
> From: Johnny Kewl <>
> If you need thread dumps....
> Start TC from the BAT file.....
> When you need a dump... press ctrl + break from term window... easier than
> Jstack...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message