RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: Tomcat unexpectedly shuts down
 
 I'm using Tomcat version 5.5.30, and I'm having a serious issue:
 Tomcat unexpectedly shuts down

Often caused by a webapp calling System.exit().

 -Xms5000m
 -Xmx5000m

Do you have enough RAM + swap space to support that large a heap, along with 
the other memory requirements of the Tomcat process and all other processes on 
the system?  If not, you may well be getting hit by the Linux OOM-killer, which 
leaves few traces.

 However Tomcat fails quite often, no trace information can be 
 found in logs, neither my app logs nor tomcat logs.

What about a core file, or a JVM crash file?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Gerardo Corro


Hi,

Thanks for your email


 
 Do you have enough RAM + swap space to support that large a heap, along with 
 the other memory requirements of the Tomcat process and all other processes 
 on the system?  If not, you may well be getting hit by the Linux OOM-killer, 
 which leaves few traces.

Yes we do, we have 6GB total memory

 
  However Tomcat fails quite often, no trace information can be 
  found in logs, neither my app logs nor tomcat logs.
 
 What about a core file, or a JVM crash file?
 

No core files neither jvm crash files :(

Best regards
  

RE: Tomcat unexpectedly shuts down

2010-08-09 Thread B. Balakrishna Rao
Hi,

We have enabled the GC logs on our production and our tomcat server crashed 
too!!
Apparently, GC logs takes high CPU and eventually, tomcat server crashes due to 
high CPU utilization of GC logs. Remove them, your problem will be solved.
What I believe is, enabling GC logs are not suggestible for long run. They are 
for observation the system and for short duration only.

Balakrishna Rao | Senior Software Engineer | Persistent Systems
balakrishna_...@persistent.co.in  | Cell: +91 9704373579 | Tel: +91 (40) 
30875030
Innovation in software product design, development and delivery- 
www.persistentsys.com


-Original Message-
From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
Sent: Monday, August 09, 2010 7:00 PM
To: users@tomcat.apache.org
Subject: RE: Tomcat unexpectedly shuts down



Hi,

Thanks for your email



 Do you have enough RAM + swap space to support that large a heap, along with 
 the other memory requirements of the Tomcat process and all other processes 
 on the system?  If not, you may well be getting hit by the Linux OOM-killer, 
 which leaves few traces.

Yes we do, we have 6GB total memory


  However Tomcat fails quite often, no trace information can be
  found in logs, neither my app logs nor tomcat logs.

 What about a core file, or a JVM crash file?


No core files neither jvm crash files :(

Best regards


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: RE: Tomcat unexpectedly shuts down
 
 Yes we do, we have 6GB total memory

That might not be enough.  Besides the Java heap, there's a ton of other stuff 
that has to fit in the process space and overall RAM.  Try shrinking your heap 
to 4 GB and see if it avoids the shutdown.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: B. Balakrishna Rao [mailto:balakrishna_...@persistent.co.in]
 Subject: RE: Tomcat unexpectedly shuts down

 Apparently, GC logs takes high CPU and eventually, tomcat server
 crashes due to high CPU utilization of GC logs.

Your analysis is seriously flawed.  High CPU utilization will not cause a 
crash.  (It can cause other problems, but not that.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Gerardo Corro

What would be the minimum memory needed by OS in order to have jvm/tomcat 
running properly?

Our system will grow five times more and we were thinking to get a total of 
20GB ram memory, we were planning to assign 18GB to jvm/tomcat and leave 2Gb to 
the OS.

Is there a kind of rule for jvm-tomcat/os memory proportions needed?

Thanks



 From: chuck.caldar...@unisys.com
 To: users@tomcat.apache.org
 Date: Mon, 9 Aug 2010 09:13:53 -0500
 Subject: RE: Tomcat unexpectedly shuts down
 
  From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
  Subject: RE: Tomcat unexpectedly shuts down
  
  Yes we do, we have 6GB total memory
 
 That might not be enough.  Besides the Java heap, there's a ton of other 
 stuff that has to fit in the process space and overall RAM.  Try shrinking 
 your heap to 4 GB and see if it avoids the shutdown.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  

RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: RE: Tomcat unexpectedly shuts down
 
 What would be the minimum memory needed by OS in order to have
 jvm/tomcat running properly?

There's no general answer to that.  It depends entirely on what you're running 
in your environment.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gerardo,

On 8/9/2010 10:26 AM, Gerardo Corro wrote:
 What would be the minimum memory needed by OS in order to have
 jvm/tomcat running properly?

I have had Tomcat 5.5.x running with my own webapp in as little as 32MiB
of allocated (-Xmx) heap on a 32-bit JVM.

YMMV, especially when running under 64-bit, which will inflate your
memory footprint a bit.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxgHL4ACgkQ9CaO5/Lv0PBNqACeNWbGDrxcYLsVwVT10fcXxhHQ
Ck4An1aUkZVsMq30eqKjCP2aTw+dfJ1D
=40TO
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2010-08-09 Thread André Warnier

Gerardo Corro wrote:

What would be the minimum memory needed by OS in order to have jvm/tomcat 
running properly?

Our system will grow five times more and we were thinking to get a total of 
20GB ram memory, we were planning to assign 18GB to jvm/tomcat and leave 2Gb to 
the OS.

Is there a kind of rule for jvm-tomcat/os memory proportions needed?

There is no rule, but there was an earlier thread on this list with the message I quote 
below, which provides an idea of how many distinct instances of Tomcat one /can/ run in 
one machine with 32 GB of RAM. Divide by 164 to figure out how much memory one Tomcat 
/might/ need.  You may want to read the whole thread in the list archives there is 
probably some information for you there.



Apart from that, I run a number of Linux servers with Tomcat (mostly 5.5 right now) and 
the following top display if fairly typical.


top - 00:11:51 up 223 days, 13:58,  2 users,  load average: 0.07, 0.02, 0.00
Tasks: 133 total,   1 running, 132 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.0%sy,  0.0%ni, 99.5%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2054392k total,  1986820k used,67572k free,   114660k buffers
Swap:  1951888k total,58548k used,  1893340k free,  1027228k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 3030 tomcat55  20   0  420m 162m 9168 S0  8.1  73:22.22 java

The (32-bit) JVM of this particular Tomcat is configured with options -Xms128M -Xmx128M 
in other words with a fixed size Heap of 128 MB.  This is on a not-so-fast machine with 2 
GB RAM in total, which runs plenty of other things.


I must say that your 3000 MB of Heap kind of makes my head spin.  What kind of application 
are you running that you would think you need as much ?




 Original Message 
Subject: RE: Tomcat Shutting Down by Itself?
Date: Mon, 26 Jul 2010 21:35:03 -0700
From: Robinson, Eric eric.robin...@psmnv.com
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org

 What kind of machine are you running these 163/164
 instances of Tomcat on, and when you are running them,
 what /does/ free say ?

I have two different servers with 164 instances of tomcat. Both servers
have 2x quad-core 2.8Ghz Xeon processors with 32GB RAM. On the first
server (app03), most instances of tomcat are configured with 64MB of
Java heap. About 20% of them have 96-256MB. I almost never reboot this
server (current uptime 61 days). Here's 'free' from app03.


[r...@app03 ~]# free
 total   used   free sharedbuffers
cached
Mem:  33265832   305702602695572  0 296976
4562784
-/+ buffers/cache:   257105007555332
Swap:  2031608  02031608


On the other server (app04), all instances of tomcat are configured with
512MB Java heap (-ms512M -mx512M). After 4 or 5 days of uptime, the
server starts to swap a little. Then I reboot it and it is fine for
several more days. As you can see from the following, it is about time
for a reboot. If I do not reboot it tonight, by tomorrow or the next day
it may be up to 1-2GB of swap. (It actually doesn't slow the server down
much though. sar shows that it runs about 90% idle anyway, including
iowait.

[r...@app03 ~]# ssh app04 free
 total   used   free sharedbuffers
cached
Mem:  33265832   32965812 300020  0 191248
3842092
-/+ buffers/cache:   28932472460
Swap:  2031608   42882027320


--
Eric Robinson


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-13 Thread Juha Laiho
Adlane ACHAB wrote:
 hi, below is my tomcat config
 
 Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache
 Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386
 
 
 Essentially what happens is this:
 
 The server is running along fine, and then all of a sudden, for no apparent
 reason that we can find, the server shuts down. The timing does not seem to
 coincide with any stack trace.
 
 Just Tomcat service terminated unexpectedly.

I did see something like this, quite some time ago. Details differ a lot;
the env was Tomcat 4.something, running on Solaris. However the symptoms
did match: the Tomcat process just disappeared.

What did help in our case was to wrap the startup in another layer of scripts
which did redirect all the standard file descriptors to/from specified files
(or /dev/null in case of standard input), and additionally start tomcat under
nohup (protected from session hangup signal).

What we suppose did happen:
- admin started the tomcat (on a shell session)
- the shell session was forgotten open, and the corresponding TCP
  connection later timed out at firewall
- at some point some piece of code attempted to write to System.out
  or System.err, or read from System.in
- this activity caused the machine TCP layer to notice that the TCP
  connection was not valid any longer, and so the shell from which
  Tomcat was started (and the Tomcat process, too) did get a hangup
  signal, causing both the shell and Tomcat to just stop and exit

We could never positively prove the above, but that would suit the symptoms,
and also the above would be something for which our cure would be effective.
-- 
..Juha

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Mark Thomas
Adlane ACHAB wrote:
 hi, below is my tomcat config
 
 Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache
 Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386
 
 
 Essentially what happens is this:
 
 The server is running along fine, and then all of a sudden, for no apparent
 reason that we can find, the server shuts down. The timing does not seem to
 coincide with any stack trace.
 
 Just Tomcat service terminated unexpectedly.
 
 please help
 

Linux OOM killer?

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, idon't find any exception on logs

2009/2/12 Mark Thomas ma...@apache.org

 Adlane ACHAB wrote:
  hi, below is my tomcat config
 
  Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache
  Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386
 
 
  Essentially what happens is this:
 
  The server is running along fine, and then all of a sudden, for no
 apparent
  reason that we can find, the server shuts down. The timing does not seem
 to
  coincide with any stack trace.
 
  Just Tomcat service terminated unexpectedly.
 
  please help
 

 Linux OOM killer?

 Mark


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Peter Crowther
 From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
 Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS
 ArchitectureApache
 Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386


 Essentially what happens is this:

 The server is running along fine, and then all of a sudden,
 for no apparent
 reason that we can find, the server shuts down. The timing
 does not seem to
 coincide with any stack trace.

 Just Tomcat service terminated unexpectedly.

http://linux-mm.org/OOM_Killer ?  The JVM is often the largest user of memory 
on the system, and hence the first victim when the killer has to run.

Note the line in there Finally the accumulated score is bitshifted by the 
user-settable value of /proc/pid/oomadj - if it *is* the OOM killer, you can 
at least cause it not to kill Tomcat but to choose some other victim :-).

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
 From: Mark Thomas [mailto:ma...@apache.org]
 Subject: Re: Tomcat unexpectedly shuts down

  The server is running along fine, and then all of
  a sudden, for no apparent reason that we can find,
  the server shuts down.

 Linux OOM killer?

Or perhaps code in one of your webapps calling System.exit()?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
 From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
 Subject: Re: Tomcat unexpectedly shuts down

 no, idon't find any exception on logs

There won't be any messages in the Tomcat logs, since the kernel just 
terminates the entire selected process without warning when the OOM killer 
fires up.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, i grep System.exit and no result found

2009/2/12 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Mark Thomas [mailto:ma...@apache.org]
  Subject: Re: Tomcat unexpectedly shuts down
 
   The server is running along fine, and then all of
   a sudden, for no apparent reason that we can find,
   the server shuts down.
 
  Linux OOM killer?

 Or perhaps code in one of your webapps calling System.exit()?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Gregor Schneider
What's Linux /var/log/syslog saying? Anything in there?

@Chuck: never heard about the OOM-killer. But what I almost can't
believe is that if such a thing exists, that it doesn't carve it's
footprints into syslog...

Puzzled...

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
 From: Gregor Schneider [mailto:rc4...@googlemail.com]
 Subject: Re: Tomcat unexpectedly shuts down

 @Chuck: never heard about the OOM-killer.

GIYF.  A nasty beast, at best.

 But what I almost can't believe is that if such a
 thing exists, that it doesn't carve it's footprints
 into syslog...

Likely, but since the OP used the term exception, I expect he was referring 
to the Tomcat, not system, logs.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
I don't think that's a memory problem

[image: daily graph]

2009/2/12 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
  Subject: Re: Tomcat unexpectedly shuts down
 
  no, idon't find any exception on logs

 There won't be any messages in the Tomcat logs, since the kernel just
 terminates the entire selected process without warning when the OOM killer
 fires up.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
 From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
 Subject: Re: Tomcat unexpectedly shuts down

 no, i grep System.exit and no result found

And did you look inside all jars that your webapps might be using as libraries? 
 You can disable System.exit() with a SecurityManager, if desired.

Do the Tomcat logs show a normal shutdown sequence, or do they just abruptly 
stop?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, nothing about shutdown in tomcat logs, it just abruptly stop

I will check for jar files

2009/2/12 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
  Subject: Re: Tomcat unexpectedly shuts down
 
  no, i grep System.exit and no result found

 And did you look inside all jars that your webapps might be using as
 libraries?  You can disable System.exit() with a SecurityManager, if
 desired.

 Do the Tomcat logs show a normal shutdown sequence, or do they just
 abruptly stop?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
 From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
 Subject: Re: Tomcat unexpectedly shuts down

 no, nothing about shutdown in tomcat logs, it just abruptly stop

Then it is almost definitely the Linux OOM killer.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
but I think that we have enough memory,so the Linux OOM killer will not act.
will do?

2009/2/12 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Adlane ACHAB [mailto:adlane.ac...@gmail.com]
  Subject: Re: Tomcat unexpectedly shuts down
 
  no, nothing about shutdown in tomcat logs, it just abruptly stop

 Then it is almost definitely the Linux OOM killer.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Gregor Schneider
Again:

Anything in /var/log/syslog?

If OOMKiller was invoked, there should be somehhing like

Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer:
gfp_mask=0x1201d2, order=0, oomkilladj=0

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread André Warnier

Gregor Schneider wrote:


@Chuck: never heard about the OOM-killer. 


The Tomcat security team have been trying to find this guy for several 
years now, but they're being very discreet about it.
One of the difficulties is that he cleans up after himself by wiping out 
any memory of its intervention.
You have probably heard many times about him in the past, you just have 
forgotten.  That's a sure sign.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, I check the var/log/syslog, no trace of oom killer

2009/2/12 Gregor Schneider rc4...@googlemail.com

 Again:

 Anything in /var/log/syslog?

 If OOMKiller was invoked, there should be somehhing like

 Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer:
 gfp_mask=0x1201d2, order=0, oomkilladj=0

 Rgds

 Gregor
 --
 just because your paranoid, doesn't mean they're not after you...
 gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Pieter Temmerman
What about attaching strace to the tomcat process?
Try executing strace ./bin/catalina.sh run

On Thu, 2009-02-12 at 18:01 +0100, Adlane ACHAB wrote:
 no, I check the var/log/syslog, no trace of oom killer
 
 2009/2/12 Gregor Schneider rc4...@googlemail.com
 
  Again:
 
  Anything in /var/log/syslog?
 
  If OOMKiller was invoked, there should be somehhing like
 
  Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer:
  gfp_mask=0x1201d2, order=0, oomkilladj=0
 
  Rgds
 
  Gregor
  --
  just because your paranoid, doesn't mean they're not after you...
  gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
  gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
-- 
Pieter Temmerman
email: ptemmerman@sadiel.es
skype: ptemmerman.sadiel

SADIEL TECNOLOGÍAS DE LA INFORMACIÓN, S.A. http://www.sadiel.es.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
I think that will produce a hugh log file,The problem is that, tomcat didn't
shutdown directly after start, it can run for one or two days and stop
unexpectedly

2009/2/12 Pieter Temmerman ptemmerman@sadiel.es

 What about attaching strace to the tomcat process?
 Try executing strace ./bin/catalina.sh run

 On Thu, 2009-02-12 at 18:01 +0100, Adlane ACHAB wrote:
  no, I check the var/log/syslog, no trace of oom killer
 
  2009/2/12 Gregor Schneider rc4...@googlemail.com
 
   Again:
  
   Anything in /var/log/syslog?
  
   If OOMKiller was invoked, there should be somehhing like
  
   Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer:
   gfp_mask=0x1201d2, order=0, oomkilladj=0
  
   Rgds
  
   Gregor
   --
   just because your paranoid, doesn't mean they're not after you...
   gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
   gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  
 
 
 --
 Pieter Temmerman
 email: ptemmerman@sadiel.es
 skype: ptemmerman.sadiel

 SADIEL TECNOLOGÍAS DE LA INFORMACIÓN, S.A. http://www.sadiel.es.




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 

= = = = = = = = = = = = =
Adlane ACHAB
Tél : 06 13 46 66 21
adlane.ac...@gmail.com


Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 2/12/2009 10:30 AM, Caldarale, Charles R wrote:
 From: Gregor Schneider [mailto:rc4...@googlemail.com]
 Subject: Re: Tomcat unexpectedly shuts down

 @Chuck: never heard about the OOM-killer.
 
 GIYF.  A nasty beast, at best.

Even better, MIYF (man is your friend). The man page for malloc on Linux
talks about the OOM killer, and even tells you how to disable it. (!)

 But what I almost can't believe is that if such a
 thing exists, that it doesn't carve it's footprints
 into syslog...
 
 Likely, but since the OP used the term exception, I expect he was
 referring to the Tomcat, not system, logs.

Syslog should contain something like:

Out of Memory: Killed process [PID] [process name]

if the kernel murdered your process to reclaim memory.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmU5sAACgkQ9CaO5/Lv0PAKzwCfQ/k4xY3pznuFhKo/Xu5YA1+Q
O2gAoLQMoSt4seY+yzfesRUNqpZVFAXy
=M5+d
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Adlane,

On 2/12/2009 12:38 PM, Adlane ACHAB wrote:
 I think that will produce a hugh log file,The problem is that, tomcat didn't
 shutdown directly after start, it can run for one or two days and stop
 unexpectedly

... then look at the *end* of the file when it *does* go down.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmU55gACgkQ9CaO5/Lv0PBFNACgrfx7eDBAy3R/AWK/MEo2p2gd
r38Anj5MSCKXsBzsXeK8SC0C4NPvFQRr
=Nn8z
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Pieter Temmerman
Ok, then it's not an option.
I thought it shut down just after a short while.

I'm out of ideas...

On Thu, 2009-02-12 at 18:38 +0100, Adlane ACHAB wrote:
 I think that will produce a hugh log file,The problem is that, tomcat didn't
 shutdown directly after start, it can run for one or two days and stop
 unexpectedly
 
 2009/2/12 Pieter Temmerman ptemmerman@sadiel.es
 
  What about attaching strace to the tomcat process?
  Try executing strace ./bin/catalina.sh run
 
  On Thu, 2009-02-12 at 18:01 +0100, Adlane ACHAB wrote:
   no, I check the var/log/syslog, no trace of oom killer
  
   2009/2/12 Gregor Schneider rc4...@googlemail.com
  
Again:
   
Anything in /var/log/syslog?
   
If OOMKiller was invoked, there should be somehhing like
   
Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer:
gfp_mask=0x1201d2, order=0, oomkilladj=0
   
Rgds
   
Gregor
--
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
   
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
   
   
  
  
  --
  Pieter Temmerman
  email: ptemmerman@sadiel.es
  skype: ptemmerman.sadiel
 
  SADIEL TECNOLOGÍAS DE LA INFORMACIÓN, S.A. http://www.sadiel.es.
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
-- 
Pieter Temmerman
email: ptemmerman@sadiel.es
skype: ptemmerman.sadiel

SADIEL TECNOLOGÍAS DE LA INFORMACIÓN, S.A. http://www.sadiel.es.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat unexpectedly shuts down

2007-01-15 Thread Nelson, Tracy M.
| From: Brown, Carlton [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 11 January, 2007 16:49
| 
| In catalina.out I see the Anthill application going through a shutdown
| sequence right before the time Tomcat dies.   So my assumption, maybe
| invalid, is that it's shutting down because Tomcat instructed it to do
| so.

Anyhill doesn't call System.exit(), does it?  If so, that'll take Tomcat
down.

-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-15 Thread Caldarale, Charles R
 From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat unexpectedly shuts down
 
 Anyhill doesn't call System.exit(), does it?  If so, that'll 
 take Tomcat down.

Ant itself calls System.exit() when errors are detected, so unless it's
running in a separate process, that might be the cause.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-12 Thread Brown, Carlton
I guess I could split them into multiple tomcats... I'm not averse to
trying things, but what indication do we have that running multiple .war
files in Tomcat is the problem?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 12, 2007 2:30 AM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 Anthill is a third party app intended to store and execute Ant
scripts.
 I mention it only because it's fairly well-known and maybe someone has

 seen similar problems before.

 Either way, the only thing running in this tomcat instance is 3 copies

 of Anthill.

So can you split the three copies to three tomcats?

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA624



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat unexpectedly shuts down

2007-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve,

Steve Ingraham wrote:
 I have a similar problem.  I would be interested to know what is said
 about this.
 
 In our case we have a web based application that calls up a MySQL
 database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
 Every morning I have to manually stop and restart Tomcat.  If I do not
 do so and let it run, over the course of a day or two, definitely no
 more than the third day, Tomcat will lock up and the web application
 will display access errors to the users.

This sounds more like a JDBC connection leak to me. What error message
to your users get when Tomcat stops responding?

Are you able to use shutdown.sh to stop Tomcat, or is a kill -9 necessary?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFp6u39CaO5/Lv0PARAqTZAJ9M0J4V8OD65ia/QT/F5+2VQOFOJwCgsRl+
nueJl9sllUsaLBNvbSUlRPQ=
=UVQq
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat unexpectedly shuts down

2007-01-12 Thread Leon Rosenberg

On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote:

I guess I could split them into multiple tomcats... I'm not averse to
trying things, but what indication do we have that running multiple .war
files in Tomcat is the problem?


No, but maybe they aren't all that similar, so we can narrow the
problem down to one webapp or its specific config.

L.



-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, January 12, 2007 2:30 AM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 Anthill is a third party app intended to store and execute Ant
scripts.
 I mention it only because it's fairly well-known and maybe someone has

 seen similar problems before.

 Either way, the only thing running in this tomcat instance is 3 copies

 of Anthill.

So can you split the three copies to three tomcats?

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA624



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-12 Thread Steve Ingraham

I can use shutdown.sh but the instance stays open.  I then have to run
the kill -9 command on the instance to clear it out.  Since it has been
a while since I have seen the error I cannot quote the exact error
message.  It states something about not enough components. . ..

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve,

Steve Ingraham wrote:
 I have a similar problem.  I would be interested to know what is said 
 about this.
 
 In our case we have a web based application that calls up a MySQL 
 database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine. 
 Every morning I have to manually stop and restart Tomcat.  If I do not

 do so and let it run, over the course of a day or two, definitely no 
 more than the third day, Tomcat will lock up and the web application 
 will display access errors to the users.

This sounds more like a JDBC connection leak to me. What error message
to your users get when Tomcat stops responding?

Are you able to use shutdown.sh to stop Tomcat, or is a kill -9
necessary?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFp6u39CaO5/Lv0PARAqTZAJ9M0J4V8OD65ia/QT/F5+2VQOFOJwCgsRl+
nueJl9sllUsaLBNvbSUlRPQ=
=UVQq
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
I'd find out what other major processes are running on those two UNIX boxes, as 
it sounds like something there's clashing terribly, and killing off the Tomcat 
process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Steve Ingraham
I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
sounds like you've got some thread hanging in there somewhere, but the logs 
don't indicate which one might be hanging?

Also sounds like a memory issue; is it possible someone created some kind of 
servlet or app that manually controls Java's garbage collection?

-Original Message-
From: Steve Ingraham [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:24 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread andy.mcneill
Have you tried profiling the jvm memory usage? I have had problems
(created my myself) with Tomcat locking up due to outofMemory errors -
if it reaches this stage it won't be able to shutdown gracefully

-Original Message-
From: Steve Ingraham [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2007 22:24
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Leon Rosenberg

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:

This box has no other purpose than to run Anthill in Tomcat to build
java apps.   There would be no other major processes.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down

I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA624



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Brown, Carlton
In catalina.out I see the Anthill application going through a shutdown
sequence right before the time Tomcat dies.   So my assumption, maybe
invalid, is that it's shutting down because Tomcat instructed it to do
so.

 Here's a log fragment with the final interesting lines of shutdown, and
then the first line of the later startup.

00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
- Starting Anthill daemons
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
BuildDaemon shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
Anthill.doShutdown() called
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9090

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 5:42 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 This box has no other purpose than to run Anthill in Tomcat to build
 java apps.   There would be no other major processes.

 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:06 PM
 To: Tomcat Users List
 Subject: RE: Tomcat unexpectedly shuts down

 I'd find out what other major processes are running on those two UNIX 
 boxes, as it sounds like something there's clashing terribly, and 
 killing off the Tomcat process.

 -Original Message-
 From: Brown, Carlton [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 4:01 PM
 To: users@tomcat.apache.org
 Subject: Tomcat unexpectedly shuts down


 Hello,

 My Tomcat instance is unexpectedly shutting itself down every 8 to 72
 hours.   Can someone give me some advice on this?   By all appearances
 this is a graceful shutdown.  I do not see any interesting exceptions 
 in the logs (I have looked in catalina.out and the various localhost*
 files).   Perhaps I am looking for the wrong thing.

 This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
10.
 JSP apps running on the server are about 3 different instances of 
 Anthill 1.8.0.264.

 Thanks in advance,
 Carlton

 *

 The information transmitted is intended only for the person or entity 
 to which it is addressed and may contain confidential, proprietary, 
 and/or privileged material. Any review, retransmission, dissemination 
 or other use of, or taking of any action in reliance upon this 
 information by persons or entities other than the intended recipient 
 is prohibited. If you received this in error, please contact the 
 sender and delete the material from all computers. GA623



 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 *

 The information transmitted is intended only for the person or entity 
 to which it is addressed and may contain confidential, proprietary, 
 and/or privileged material. Any review, retransmission, dissemination 
 or other use of, or taking of any action in reliance upon this 
 information by persons or entities other than the intended recipient 
 is prohibited. If you received this in error, please contact the 
 sender and delete the material from all computers. GA624



 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*

The information transmitted is intended only

Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Leon Rosenberg

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:

In catalina.out I see the Anthill application going through a shutdown
sequence right before the time Tomcat dies.   So my assumption, maybe
invalid, is that it's shutting down because Tomcat instructed it to do
so.


Interesting. Most interesting part of it is what Thread-32 is. Are
your thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after
anthill shuts down.



 Here's a log fragment with the final interesting lines of shutdown, and
then the first line of the later startup.

00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
- Starting Anthill daemons
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
BuildDaemon shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
Anthill.doShutdown() called
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9090

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:42 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 This box has no other purpose than to run Anthill in Tomcat to build
 java apps.   There would be no other major processes.

 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:06 PM
 To: Tomcat Users List
 Subject: RE: Tomcat unexpectedly shuts down

 I'd find out what other major processes are running on those two UNIX
 boxes, as it sounds like something there's clashing terribly, and
 killing off the Tomcat process.

 -Original Message-
 From: Brown, Carlton [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 4:01 PM
 To: users@tomcat.apache.org
 Subject: Tomcat unexpectedly shuts down


 Hello,

 My Tomcat instance is unexpectedly shutting itself down every 8 to 72
 hours.   Can someone give me some advice on this?   By all appearances
 this is a graceful shutdown.  I do not see any interesting exceptions
 in the logs (I have looked in catalina.out and the various localhost*
 files).   Perhaps I am looking for the wrong thing.

 This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
10.
 JSP apps running on the server are about 3 different instances of
 Anthill 1.8.0.264.

 Thanks in advance,
 Carlton

 *

 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential, proprietary,
 and/or privileged material. Any review, retransmission, dissemination
 or other use of, or taking of any action in reliance upon this
 information by persons or entities other than the intended recipient
 is prohibited. If you received this in error, please contact the
 sender and delete the material from all computers. GA623



 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 *

 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential, proprietary,
 and/or privileged material. Any review, retransmission, dissemination
 or other use

RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
isn't Anthill just a third party app to do war and ant builds? Deploy .ear and 
.war files?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down


On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 In catalina.out I see the Anthill application going through a shutdown
 sequence right before the time Tomcat dies.   So my assumption, maybe
 invalid, is that it's shutting down because Tomcat instructed it to do
 so.

Interesting. Most interesting part of it is what Thread-32 is. Are
your thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after
anthill shuts down.


  Here's a log fragment with the final interesting lines of shutdown, and
 then the first line of the later startup.

 00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
 - Starting Anthill daemons
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
 BuildDaemon shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
 shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
 Anthill.doShutdown() called
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-9090

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:42 PM
 To: Tomcat Users List
 Subject: Re: Tomcat unexpectedly shuts down

 You've mentioned a graceful shutdown. However a crash doesn't
 necessary leave tracks in the logs.
 Do I understand you right, that the tomcat is down, out of nowhere, if
 it were just shut down by the shutdown.sh?

 regards
 Leon

 On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
  This box has no other purpose than to run Anthill in Tomcat to build
  java apps.   There would be no other major processes.
 
  -Original Message-
  From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 5:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat unexpectedly shuts down
 
  I'd find out what other major processes are running on those two UNIX
  boxes, as it sounds like something there's clashing terribly, and
  killing off the Tomcat process.
 
  -Original Message-
  From: Brown, Carlton [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 4:01 PM
  To: users@tomcat.apache.org
  Subject: Tomcat unexpectedly shuts down
 
 
  Hello,
 
  My Tomcat instance is unexpectedly shutting itself down every 8 to 72
  hours.   Can someone give me some advice on this?   By all appearances
  this is a graceful shutdown.  I do not see any interesting exceptions
  in the logs (I have looked in catalina.out and the various localhost*
  files).   Perhaps I am looking for the wrong thing.
 
  This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
 10.
  JSP apps running on the server are about 3 different instances of
  Anthill 1.8.0.264.
 
  Thanks in advance,
  Carlton
 
  *
 
  The information transmitted is intended only for the person or entity
  to which it is addressed and may contain confidential, proprietary,
  and/or privileged material. Any review, retransmission, dissemination
  or other use of, or taking of any action in reliance upon this
  information by persons or entities other than the intended recipient
  is prohibited. If you received this in error, please contact the
  sender and delete the material from all computers. GA623
 
 
 
  -
  To start a new topic, e

RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Brown, Carlton
Anthill is a third party app intended to store and execute Ant scripts.
I mention it only because it's fairly well-known and maybe someone has
seen similar problems before.   

Either way, the only thing running in this tomcat instance is 3 copies
of Anthill. 

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 6:26 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down

isn't Anthill just a third party app to do war and ant builds? Deploy
.ear and .war files?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down


On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 In catalina.out I see the Anthill application going through a shutdown
 sequence right before the time Tomcat dies.   So my assumption, maybe
 invalid, is that it's shutting down because Tomcat instructed it to do

 so.

Interesting. Most interesting part of it is what Thread-32 is. Are your
thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after anthill
shuts down.


  Here's a log fragment with the final interesting lines of shutdown, 
 and then the first line of the later startup.

 00:26:30:456 [http-9090-Processor25] INFO  
 com.urbancode.anthill.Anthill
 - Starting Anthill daemons
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  - 
 BuildDaemon shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - 
 Queue shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
 Anthill.doShutdown() called
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-9090

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:42 PM
 To: Tomcat Users List
 Subject: Re: Tomcat unexpectedly shuts down

 You've mentioned a graceful shutdown. However a crash doesn't 
 necessary leave tracks in the logs.
 Do I understand you right, that the tomcat is down, out of nowhere, if

 it were just shut down by the shutdown.sh?

 regards
 Leon

 On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
  This box has no other purpose than to run Anthill in Tomcat to build
  java apps.   There would be no other major processes.
 
  -Original Message-
  From: Propes, Barry L [GCG-NAOT] 
  [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 5:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat unexpectedly shuts down
 
  I'd find out what other major processes are running on those two 
  UNIX boxes, as it sounds like something there's clashing terribly, 
  and killing off the Tomcat process.
 
  -Original Message-
  From: Brown, Carlton [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 4:01 PM
  To: users@tomcat.apache.org
  Subject: Tomcat unexpectedly shuts down
 
 
  Hello,
 
  My Tomcat instance is unexpectedly shutting itself down every 8 to
72
  hours.   Can someone give me some advice on this?   By all
appearances
  this is a graceful shutdown.  I do not see any interesting 
  exceptions in the logs (I have looked in catalina.out and the
various localhost*
  files).   Perhaps I am looking for the wrong thing.
 
  This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
 10.
  JSP apps running on the server are about 3 different instances of 
  Anthill 1.8.0.264.
 
  Thanks in advance,
  Carlton
 
  *
 
  The information transmitted is intended only for the person or 
  entity to which it is addressed and may

Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Andre Prasetya

Hi Steve,

Is there anything that flood your server with requests or trigger an
infinite loop within the application ? I have similar experiences in 2
scenarios
1. A tomcat died every morning, Then we foundout that its flooded by
requests at a certain time and there is a flaw at our design that permits
only 1 connection for the flooded application.
2. An application causing the tomcat server to hang, exhausting our cpu
resources to 100%, trigerred by Stop command from manager. Even after
shutting down the tomcat, the process is still running and we have to
manually kill the java thread. Thenwe found out that our application got an
infinite loop bug when we force it to close.


On 1/12/07, Steve Ingraham [EMAIL PROTECTED] wrote:


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?