Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mark Eggers
> From: Jakub Królikowski > To: Tomcat Users List > Cc: > Sent: Thursday, May 5, 2011 5:34 PM > Subject: Re: Tomcat 6 crash, no log, no hs_err_pid file > > On Thu, May 5, 2011 at 3:03 AM, Caldarale, Charles R > wrote: >>> From: Jakub Królikowski [mailto:ja

Re: [slightly OT] Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 06 May 2011 11:50:54 +0200, André Warnier wrote: My question is more at the intellectual curiosity level than for practical reasons,since I am not using Hibernate. But to insist, is this then a Hibernate "bug", or is it "normal" that restarting an application would lead to (what I see a

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 9:45 AM, Mikolaj Rydzewski wrote: > On Fri, 6 May 2011 02:38:39 +0200, Jakub Królikowski wrote: > >> Well, my app is under intensive development now and I need to reload >> context quite often. >> I know it's a big numbers, but without that after few reloads I'm >> getting a

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 10:10 AM, Mark Thomas wrote: > On 06/05/2011 08:41, Mikolaj Rydzewski wrote: >> On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: >> My $0.02: do not run tomcat as root. >>> >>> Why? >> >> For security purposes. One should run processes/services with lowest >>

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 9:47 AM, Mikolaj Rydzewski wrote: > On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: > >> Naive question : and is this a normal thing to happen, or does it >> indicate a problem ? > > Unfortunately it's a normal thing when redeploying hibernate webapps. > > -- > Miko

Re: [slightly OT] Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread André Warnier
Mikolaj Rydzewski wrote: On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: Naive question : and is this a normal thing to happen, or does it indicate a problem ? Unfortunately it's a normal thing when redeploying hibernate webapps. My question is more at the intellectual curiosity lev

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mark Thomas
On 06/05/2011 08:41, Mikolaj Rydzewski wrote: > On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: > >>> My $0.02: do not run tomcat as root. >> >> Why? > > For security purposes. One should run processes/services with lowest > privileges possible. +1 > Is there any reason you have to

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: Naive question : and is this a normal thing to happen, or does it indicate a problem ? Unfortunately it's a normal thing when redeploying hibernate webapps. -- Mikolaj Rydzewski

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 6 May 2011 02:38:39 +0200, Jakub Królikowski wrote: Well, my app is under intensive development now and I need to reload context quite often. I know it's a big numbers, but without that after few reloads I'm getting a memory exception. Tomcat starts up quickly enough (IMO) on modern ma

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread André Warnier
Thomas Freitag wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jakub, On 05/06/2011 02:38 AM, Jakub Królikowski wrote: VM arguments: -Djava.util.logging.config.file=/usr/lib/tomcat/conf/logging.properties -Xmx3000m -Xms1500m -Xmn700m -XX:PermSize=768m -XX:MaxPermSize=1000m -XX:+UseConc

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: My $0.02: do not run tomcat as root. Why? For security purposes. One should run processes/services with lowest privileges possible. Is there any reason you have to run it as root? If so, implement a lightweight daemon that will

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-05 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jakub, On 05/06/2011 02:38 AM, Jakub Królikowski wrote: VM arguments: -Djava.util.logging.config.file=/usr/lib/tomcat/conf/logging.properties -Xmx3000m -Xms1500m -Xmn700m -XX:PermSize=768m -XX:MaxPermSize=1000m -XX:+UseConcMarkS

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-05 Thread Jakub Królikowski
On Thu, May 5, 2011 at 3:03 PM, Thomas Freitag wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Jakub, > > On 05/05/2011 02:19 AM, Jakub Królikowski wrote: >> I made an Tomcat and JVM upgrade few weeks ago (to Tomcat 6.0.32 and >> jdk 1.6.0.24), and since that time I can notice a ve

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-05 Thread Jakub Królikowski
On Thu, May 5, 2011 at 8:54 AM, Mikolaj Rydzewski wrote: > On Thu, 5 May 2011 02:19:59 +0200, Jakub Królikowski wrote: > >> Before upgrade, if jvm crashed, the hs_err_pid*.log file was always in >> root home directory. > > My $0.02: do not run tomcat as root. Why? > > You can try to log GC ou

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-05 Thread Jakub Królikowski
On Thu, May 5, 2011 at 3:03 AM, Caldarale, Charles R wrote: >> From: Jakub Królikowski [mailto:ja...@pakamera.com.pl] >> Subject: Tomcat 6 crash, no log, no hs_err_pid file > >> sometimes, even once a day, Tomcat stops suddenly. There is no java >> process any

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-05 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jakub, On 05/05/2011 02:19 AM, Jakub Królikowski wrote: > I made an Tomcat and JVM upgrade few weeks ago (to Tomcat 6.0.32 and > jdk 1.6.0.24), and since that time I can notice a very strange > behavior: > sometimes, even once a day, Tomcat stops s

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-04 Thread Mikolaj Rydzewski
On Thu, 5 May 2011 02:19:59 +0200, Jakub Królikowski wrote: Before upgrade, if jvm crashed, the hs_err_pid*.log file was always in root home directory. My $0.02: do not run tomcat as root. You can try to log GC output to diagnose OOM errors. -- Mikolaj Rydzewski --

RE: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-04 Thread Caldarale, Charles R
> From: Jakub Królikowski [mailto:ja...@pakamera.com.pl] > Subject: Tomcat 6 crash, no log, no hs_err_pid file > sometimes, even once a day, Tomcat stops suddenly. There is no java > process anymore, there is no errors in catalina.out log file, > and, what is the most confusi

Tomcat 6 crash, no log, no hs_err_pid file

2011-05-04 Thread Jakub Królikowski
Hi, I made an Tomcat and JVM upgrade few weeks ago (to Tomcat 6.0.32 and jdk 1.6.0.24), and since that time I can notice a very strange behavior: sometimes, even once a day, Tomcat stops suddenly. There is no java process anymore, there is no errors in catalina.out log file, and, what is the most