comments below... On Apr 13, 2010, at 3:40 PM, Bob Hall wrote:
> Gregor, > > --- On Tue, 4/13/10 at 1:19 PM, Gregor Schneider <rc4...@googlemail.com> > wrote: > >>> >>> -XX:OnOutOfMemoryError=/usr/sbin/restart_tcserver >>> >> I'm not aware of that option within my standard sun jdk >> 1.6.x - what >> Java-version are you running offering this really useful >> feature? >> > > I wasn't aware of it either. > > From http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp > > -XX:OnOutOfMemoryError="<cmd args>;<cmd args>" > > Run user-defined commands when an OutOfMemoryError is first thrown. > (Introduced in 1.4.2 update 12, 6) There's also: -XX:OnError="<cmd args>;<cmd args>" Run user-defined commands on fatal error. (Introduced in 1.4.2 update 9.) Jon Brisbin Portal Webmaster NPC International, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org