Re: Tomcat crash @ midnight - but why?

2007-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabe, Gabe Wong wrote: Sounds very much like a memory issue as echoed by others on the list. I'm not so sure: he's getting what looks like a clean shutdown, not a VM crash or OOME or anything like that. If it were on Linux and he were running out

Re: Tomcat crash @ midnight - but why?

2007-09-28 Thread Martin Cavanagh
Darek Czarkowski wrote: Martin Cavanagh wrote: Caldarale, Charles R wrote: From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh
My logs are being being redirected to other directorys, where log levels are being applied. This are just the tomcat logs, since its tomcat which is crashing. The logs from stdout are just cases where things are still (or also) being written to Std out -which is the exception rather than the

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Franck Borel
PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh
Caldarale, Charles R wrote: From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call? Heres trouble...the System does call

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Mark Thomas
Martin Cavanagh wrote: Heres trouble...the System does call System.exit(), when it can't create the directory... - so I understand why my application would stop- but why would tomcat shutdown? And there is the problem. System.exit() will kill the JVM (unless you are running under a

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Pid
Martin Cavanagh wrote: Caldarale, Charles R wrote: From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call? Heres trouble

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Andrew Miehs
Are you using Log4j in your application? It has the option to do daily (midnight) rotates on log files... Oh - and you may want to have a serious talk with the cleaning lady, not that she unplugs the server for the vacuum cleaner.. ^^ Cheers Andrew On 26/09/2007, at 6:11 PM, Christopher

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh
Mark Thomas wrote: Martin Cavanagh wrote: Heres trouble...the System does call System.exit(), when it can't create the directory... - so I understand why my application would stop- but why would tomcat shutdown? And there is the problem. System.exit() will kill the JVM (unless

[OT] RE: Tomcat crash @ midnight - but why?

2007-09-27 Thread Peter Crowther
From: Andrew Miehs [mailto:[EMAIL PROTECTED] Oh - and you may want to have a serious talk with the cleaning lady, not that she unplugs the server for the vacuum cleaner.. ^^ Don't joke, it happened repeatedly to a box I used to manage in a hospital. Even after we taped over the plug, writing

RE: Tomcat crash @ midnight - but why?

2007-09-27 Thread Peter Crowther
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Now before I execute the System.exit I do a dump. Are you sure shutting down the entire Tomcat instance is the appropriate thing to do if you can't create the log directory? As opposed to, say, logging the problem and returning an appropriate

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Peter Stavrinides
Because tomcat is running as a service, permissions may be an issue for creating/writing to the directory in question, most likely this is why the task fails... unless the Timer task is a critical process don't use System.exit(0), just check the if the task runs or not and if not log the

RE: Tomcat crash @ midnight - but why?

2007-09-27 Thread Caldarale, Charles R
From: Franck Borel [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? one problem could be insufficient RAM you assigned to Tomcat. How much RAM have you set to your Tomcat? Don't confuse physical RAM with the virtual memory sizing of the Java heap. Having

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Franck Borel
Charles, one problem could be insufficient RAM you assigned to Tomcat. How much RAM have you set to your Tomcat? Don't confuse physical RAM with the virtual memory sizing of the Java heap. Having insufficient RAM on the system will only result in excessive paging, not process termination.

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Darek Czarkowski
Martin Cavanagh wrote: Caldarale, Charles R wrote: From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call? Heres trouble

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I didn't shut it down, I was sleeping, as I assume

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
for the exact port number) Martin-- - Original Message - From: Pid [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. Strange. What is the uptime of your operating system? Perhaps it's being rebooted every

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Franck Borel
Hi Martin, Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? What kind of network connection are you using? NAT or Bridge? I have a firewall on the machine with only the HTTPS port open.

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmm maybe this little bit of extra info helps Not really, but answering Pid's question below might, as would following David's suggestions. 656MB RAM That's an awfully small amount of memory

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? 656MB RAM That's an awfully small amount of memory for a modern system, but is probably not pertinent

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Christopher Schultz wrote: Chuck, Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? 656MB RAM That's an awfully small amount of memory for a modern system, but is probably not pertinent. Especially when you're

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks for your answers Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. Strange. What is the uptime of

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hi Frank Franck Borel wrote: Hi Martin, Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? What kind of network connection are you using? NAT or Bridge? not sure and I don't have direct

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hi Charles Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmm maybe this little bit of extra info helps Not really, but answering Pid's question below might, as would following David's suggestions

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? 656MB RAM That's an awfully small amount of memory for a modern system, but is probably not pertinent. Especially when you're running VMWare server on it, ostensibly

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I didn't shut it down, I was sleeping, as I assume everyone else was who had access

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Sorry everyone - no the the Virtual Machine has 656 MB RAM. The Host has something 656MB Ram (1GB?) Martin Peter Crowther wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Physical Hardware: 656MB RAM 2.4 Ghz Xeon Processor Crikey. And a host OS (what host?), VMware on top of

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
the JVM is using the default parameters. I installed JRE 1.5.0_11 (which was upto date at the time...) Should I be using custom parameters? VMWare means the the host machine, doesn't know that there is no real hardware beneath it Martin I'm not overly familiar with VMWare, but is that

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Alexey Solofnenko
-- - Original Message - From: Pid [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I didn't

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread David kerber
Is your tomcat set to roll the log files at midnight? Maybe there's something going on related to that? Pid wrote: Martin Cavanagh wrote: just to to check - there is no hidden setting in Tomcat which says - shut me down at midnight sometimes for an inexplainable reason? Oh yeah,

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Gabe Wong [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Sounds very much like a memory issue as echoed by others on the list. I don't think so. Lack of RAM might cause performance problems due to excessive paging, but it's not going to cause a shutdown

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? There is no \bin\shutdown.bat file - so this isn't being directly triggered. That just means you installed from the .exe rather than the .zip distribution. Something could still be running

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks Pid - some good tips Pid wrote: Martin Cavanagh wrote: just to to check - there is no hidden setting in Tomcat which says - shut me down at midnight sometimes for an inexplainable reason? Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of humour - they're

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
David kerber wrote: Is your tomcat set to roll the log files at midnight? Maybe there's something going on related to that? no i don't think so - (but how do I control that - It would be cool to use that). Its pretty much a standard Tomcat installation - with HTTPS turned on and HTTP turned

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmmm - how houw I change the JVM into a Server JVM? Server vs client JVM is likely to be totally irrelevant, but in any event, run the tomcat6w.exe program, go to the Java tab, and see what

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? There is no \bin\shutdown.bat file - so this isn't being directly triggered. That just means you installed from the .exe rather than the .zip distribution

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote: Thanks Pid - some good tips Hmmm - how houw I change the JVM into a Server JVM? (google is your friend). -server will do it, if it's not autoselected. - To start a new topic, e-mail:

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? The Server is started with \Tomcat\bin\tomcat5.exe //RS//Tomcat5 - is that normal? Yes, that's fine. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Pid [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? -server will do it, if it's not autoselected. Tomcat is running a Windows service, so command line options cannot be used. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Jim Cox
snippet Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create directory

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Tim Funk
To test the TimerTask theory - I'd suggest changing the TimerTask to run at 12:30 and see the next crash -Tim Pid wrote: Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007.

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Darek Czarkowski
Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call? Doesn't quite fit the symptoms. When a webapp calls System.exit(), the following

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread David Delbecq
According to your log it did not crash. It did shutdown following the shutdown procedure (which can be executed by bin\shutdown.bat). I suggest you investigate possibilities that a local service is setup to shutdown tomcat at midnight on the server. The tomcat shutdown procedure is started when

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Cavanagh
Why would windows report it as crashing then? I know I didn't shut it down, I was sleeping, as I assume everyone else was who had access to the system.. Thanks Martin David Delbecq wrote: According to your log it did not crash. It did shutdown following the shutdown procedure (which

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Pid
What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I didn't shut it down, I was sleeping, as I assume everyone else was who had access to the system.. Thanks Martin David Delbecq wrote:

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Cavanagh
Well nothing really. But (assuming attachements are allowed), I've attached them all (except Std-Out - thats just junk from my program) Martin Pid wrote: What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Markus Schönhaber
Martin Cavanagh wrote: Why would windows report it as crashing then? It didn't - as the excerpt from the Windows service log you posted clearly shows. There is nothing to be read there about Tomcat crashing but just about Tomcat being stopped unexpectedly (unerwartet). This means nothing more

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Gainty
: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs? p Martin Cavanagh wrote: Why would windows report it as crashing then? I know I didn't shut it down, I was sleeping, as I assume everyone else was who had access to the system

Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread David Smith
for the exact port number) Martin-- - Original Message - From: Pid [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 21, 2007 7:19 AM Subject: Re: Tomcat crash @ midnight - but why? What's immediately before the shutdown description in the logs