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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
>
> 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...
>
>
>
>

Reply via email to