Re: The question of automatic restart Tomcat

2010-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eugene, On 4/13/2010 7:18 AM, Mirgorodskiy Eugene wrote: I apologise if this theme described in documentation Tomcat, I badly understand English language. Whether you could not answer me is in tomcat 6.0.X Service which automatically would start

Re: The question of automatic restart Tomcat

2010-04-13 Thread David kerber
On 4/13/2010 7:18 AM, Mirgorodskiy Eugene wrote: Good afternoon. I apologise if this theme described in documentation Tomcat, I badly understand English language. Whether you could not answer me is in tomcat 6.0.X Service which automatically would start Tomcat, at end of its work as a result

Re: The question of automatic restart Tomcat

2010-04-13 Thread Jon Brisbin
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 ...which restarts tcServer whenever

Re: The question of automatic restart Tomcat

2010-04-13 Thread Gregor Schneider
On Tue, Apr 13, 2010 at 7:46 PM, Jon Brisbin jon.bris...@npcinternational.com 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:

Re: The question of automatic restart Tomcat

2010-04-13 Thread Bob Hall
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

Re: The question of automatic restart Tomcat

2010-04-13 Thread Thad Humphries
This looks to be a feature of Java HotSpot, and available since v1.4: http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp On Tue, Apr 13, 2010 at 4:19 PM, Gregor Schneider rc4...@googlemail.comwrote: On Tue, Apr 13, 2010 at 7:46 PM, Jon Brisbin jon.bris...@npcinternational.com wrote:

Re: The question of automatic restart Tomcat

2010-04-13 Thread Jon Brisbin
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