This looks to be a feature of Java HotSpot, and available since v1.4:

On Tue, Apr 13, 2010 at 4:19 PM, Gregor Schneider <>wrote:

> On Tue, Apr 13, 2010 at 7:46 PM, Jon Brisbin
> <> wrote:
> > We use automatic restarts on OutOfMemory errors and it works
> fantastically. I don't do it the way described here, though. I use the JVM's
> -XX:OnOutOfMemoryError option. I add the following to CATALINA_OPTS:
> >
> > -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?
> Cheers
> Gregor

"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, 'Doctor Faustus' (v, 121-24)

Reply via email to