You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luca Gervasi <to...@ashetic.net> on 2010/11/11 12:56:54 UTC

How to reload Tomcat Engine with jconsole? (or any other similar tools)

Hello,

i'm using jconsole to reload single contextes when i need it (i don't
deploy manager).

Is there a way to reload tomcat engine in a similar way?

It happens "Exception in thread TP-Processor16
java.lang.OutOfMemoryError: PermGen space", which leads to a tomcat
reload. 

I'm sure there is a leak in some webapp, but i'm not a developer, so my
need is to reload it fast when it happens (maybe using nagios
handlers...).

Thanks for your time.

Bye

Luca


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


Re: How to reload Tomcat Engine with jconsole? (or any other similar tools)

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

Luca,

On 11/11/2010 6:56 AM, Luca Gervasi wrote:
> i'm using jconsole to reload single contextes when i need it (i don't
> deploy manager).
> 
> Is there a way to reload tomcat engine in a similar way?

I'm not entirely sure, but I don't believe a standard Tomcat environment
expects to have Tomcat itself reloaded. If you were to wrap an embedded
wrapper (actually, TC is embedded) around Tomcat, you could expose some
way for JConsole to dump and re-start Tomcat.

But you'd have to do that entirely on your own.

See the other thread from this week titled "Any tools to detect tomcat
services failure, and start it again automatically?" for some other
possibilities that don't involve JMX.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzcJnQACgkQ9CaO5/Lv0PCRUQCgmbebsRKE1CE8RJH7+baQAnvU
YYcAmwdKpaTtgCluoktZPtJNWA9d0cEv
=WAo2
-----END PGP SIGNATURE-----

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