Hi Noam :)
Check the server.xml for the parameter "maxWait" if it's configured to -1
(which mean maximum time to wait for a dB connection to become available is
indefinitely) then you should try changing it to something like 10000 (10
sec). If you have a problem with your DB then the tomcat will get stuck
waiting for dB connection to become available

Good place to get some more information is
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

Arthur

----- Original Message ----- 
From: "Noam Camiel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 7:11 PM
Subject: Re: tomcat jitters, then hangs - please help


> Hi, and thanks for the comments,
>
> > On Wednesday, October 01, 2003 2:52 PM  "Shapira, Yoav"
> <[EMAIL PROTECTED]> wrote:
> > Oh, these problems are invariably a pain to debug ;)
> yea.... nothing like a good challenge :)
>
> > At that time, if you send the VM a SIGQUIT, what are the threads doing?
> I've got a thread dump at the end of the file. Please have a look and tell
> me if you see something odd.
>
> > Is the behavior the same if all you have in your webapp is the Hello
> > servlet?  I.e. you take all other servlets, especially the ones that use
> > JDBC, out?  There have been problems reported in the past with DB
> > connection pool threads just hanging around.
>
> I just set up my other linux machine only with the "Hello" servlet, lets
see
> if that gets to the same state, so far its OK
>
> > >the simple "Hello" servlet  (code at the bottom). After calling it a
> >>few
> > >times there was no
>
> >So the first few times it works?
>
> Yes, all works well until a time when the Tomcat reaches a state where is
> sometimes replies to HTTP requests and sometimes not.  I managed to get
the
> manager status page this way.  Shortly after it all gets stuck.
>
> > Also, the fact the manager status page sometimes works and sometimes
> > doesn't is worrisome.  I've never had problems with it, and it should be
> > very reliable.  Can you can the manager webapp to malfunction even
> > without any of your webapps deployed on the server?  If so, open a
> > bugzilla issue with steps to reproduce your behavior.
>
> The manager webapp work well until after the unstable state where the
Tomcat
> simply stops answering any HTTP request.
>
> > Any errors in the logs?  (Also make sure you have adequate disk space to
> > write logs and temp files).
>
> No errors in the logs and no problems with disk space.
>
> On Wednesday, October 01, 2003 3:10 PM  "Arthur Veinstein"
> <[EMAIL PROTECTED]>  wrote:
> Hi Arthur ;)
> > Sounds like you have some problem with the DB connection.
> > Can you provide the server.xml configuration ?
>
> The server.xml is the same as it was with the installation, apart from the
> port change from 8080 to 80.  Could that lead to a problem if I work with
> JDBC?
>
> Please let me know what you think,
> Thanks,
> Noam
>
>
> -------------------------------------------thread
> dump ---------------------------------------------
>
>
> Full thread dump Java HotSpot(TM) Client VM (1.4.1_05-b01 mixed mode):
>
> "TP-Monitor" daemon prio=1 tid=0x0x82440a0 nid=0x72c3 in Object.wait()
> [4e29f000..4e29f390]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44cd9760> (a
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
> a:549)
>  - locked <0x44cd9760> (a
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "TP-Processor4" daemon prio=1 tid=0x0x8243390 nid=0x72c3 runnable
> [4e21f000..4e21f410]
>  at java.net.PlainSocketImpl.socketAccept(Native Method)
>  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
>  - locked <0x44cd97e8> (a java.net.PlainSocketImpl)
>  at java.net.ServerSocket.implAccept(ServerSocket.java:448)
>  at java.net.ServerSocket.accept(ServerSocket.java:419)
>  at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:278)
>  at
>
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:572)
>  at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:758)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:666)
>  at java.lang.Thread.run(Thread.java:536)
>
> "TP-Processor3" daemon prio=1 tid=0x0x8242818 nid=0x72c3 in Object.wait()
> [4e19f000..4e19f490]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44cd9958> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44cd9958> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "TP-Processor2" daemon prio=1 tid=0x0x82779d8 nid=0x72c3 in Object.wait()
> [4e11f000..4e11f510]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44cd99d8> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44cd99d8> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "TP-Processor1" daemon prio=1 tid=0x0x8277628 nid=0x72c3 in Object.wait()
> [4e09f000..4e09f590]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44cd9a58> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44cd9a58> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Monitor" daemon prio=1 tid=0x0x8291770 nid=0x72c3 in Object.wait()
> [4e01f000..4e01f610]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5e898> (a
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
> a:549)
>  - locked <0x44c5e898> (a
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor25" daemon prio=1 tid=0x0x8290bc0 nid=0x72c3 in
> Object.wait() [4df9f000..4df9f690]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5e920> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5e920> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor24" daemon prio=1 tid=0x0x8290010 nid=0x72c3 in
> Object.wait() [4df1f000..4df1f710]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5e9a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5e9a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor23" daemon prio=1 tid=0x0x828f460 nid=0x72c3 in
> Object.wait() [4de9e000..4de9e790]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5ea20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5ea20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor22" daemon prio=1 tid=0x0x828e3b0 nid=0x72c3 in
> Object.wait() [4de1e000..4de1e810]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eaa0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eaa0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor21" daemon prio=1 tid=0x0x828d800 nid=0x72c3 in
> Object.wait() [4dd9e000..4dd9e890]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eb20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eb20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor20" daemon prio=1 tid=0x0x828cc70 nid=0x72c3 in
> Object.wait() [4dd1e000..4dd1e910]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eba0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eba0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor19" daemon prio=1 tid=0x0x828c130 nid=0x72c3 in
> Object.wait() [4dc9e000..4dc9e990]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5ec20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5ec20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor18" daemon prio=1 tid=0x0x8212ff0 nid=0x72c3 in
> Object.wait() [4dc1e000..4dc1ea10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eca0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eca0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor17" daemon prio=1 tid=0x0x8212440 nid=0x72c3 in
> Object.wait() [4db9e000..4db9ea90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5ed20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5ed20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor16" daemon prio=1 tid=0x0x8211890 nid=0x72c3 in
> Object.wait() [4db1e000..4db1eb10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eda0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eda0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor15" daemon prio=1 tid=0x0x8210ce0 nid=0x72c3 in
> Object.wait() [4da9e000..4da9eb90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5ee20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5ee20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor14" daemon prio=1 tid=0x0x820fc30 nid=0x72c3 in
> Object.wait() [4da1e000..4da1ec10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5eea0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5eea0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor13" daemon prio=1 tid=0x0x820f080 nid=0x72c3 in
> Object.wait() [4d99e000..4d99ec90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5ef20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5ef20> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor12" daemon prio=1 tid=0x0x820e4d0 nid=0x72c3 in
> Object.wait() [4d91e000..4d91ed10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5efa0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5efa0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor11" daemon prio=1 tid=0x0x820d920 nid=0x72c3 in
> Object.wait() [4d89e000..4d89ed90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f020> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
av
> a:642)
>  - locked <0x44c5f020> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor10" daemon prio=1 tid=0x0x820c870 nid=0x72c3 in
> Object.wait() [4d81e000..4d81ee10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f0a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f0a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor9" daemon prio=1 tid=0x0x820bcc0 nid=0x72c3 in
> Object.wait() [4d79e000..4d79ee90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f120> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f120> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor8" daemon prio=1 tid=0x0x820b110 nid=0x72c3 in
> Object.wait() [4d71e000..4d71ef10]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f1a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f1a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor7" daemon prio=1 tid=0x0x820a560 nid=0x72c3 in
> Object.wait() [4d69e000..4d69ef90]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f220> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f220> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor6" daemon prio=1 tid=0x0x8209870 nid=0x72c3 in
> Object.wait() [4d61e000..4d61f010]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f2a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f2a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor5" daemon prio=1 tid=0x0x8208cc0 nid=0x72c3 in
> Object.wait() [4d59e000..4d59f090]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f320> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f320> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor4" daemon prio=1 tid=0x0x8208110 nid=0x72c3 in
> Object.wait() [4d51e000..4d51f110]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f3a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f3a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor3" daemon prio=1 tid=0x0x8207580 nid=0x72c3 in
> Object.wait() [4d49f000..4d49f190]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f420> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f420> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor2" daemon prio=1 tid=0x0x8206bb8 nid=0x72c3 in
> Object.wait() [4d41f000..4d41f210]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f4a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f4a0> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "http80-Processor1" daemon prio=1 tid=0x0x82068d8 nid=0x72c3 in
> Object.wait() [4d39f000..4d39f290]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x44c5f520> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Object.wait(Object.java:426)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:642)
>  - locked <0x44c5f520> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>  at java.lang.Thread.run(Thread.java:536)
>
> "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=1
> tid=0x0x8203b08 nid=0x72c3 waiting on condition [4d31f000..4d31f310]
>  at java.lang.Thread.sleep(Native Method)
>  at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
> ainerBase.java:1636)
>  at java.lang.Thread.run(Thread.java:536)
>
> "Signal Dispatcher" daemon prio=1 tid=0x0x80aa330 nid=0x72c3 waiting on
> condition [0..0]
>
> "Finalizer" daemon prio=1 tid=0x0x808c100 nid=0x72c3 in Object.wait()
> [4c4ff000..4c4ff590]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x448f08d0> (a java.lang.ref.ReferenceQueue$Lock)
>  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
>  - locked <0x448f08d0> (a java.lang.ref.ReferenceQueue$Lock)
>  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
>  at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
>
> "Reference Handler" daemon prio=1 tid=0x0x808b520 nid=0x72c3 in
> Object.wait() [4c47f000..4c47f610]
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x448f0938> (a java.lang.ref.Reference$Lock)
>  at java.lang.Object.wait(Object.java:426)
>  at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
>  - locked <0x448f0938> (a java.lang.ref.Reference$Lock)
>
> "main" prio=1 tid=0x0x80521e8 nid=0x72c3 runnable [bfffb000..bfffc23c]
>  at java.net.PlainSocketImpl.socketAccept(Native Method)
>  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
>  - locked <0x44cdf918> (a java.net.PlainSocketImpl)
>  at java.net.ServerSocket.implAccept(ServerSocket.java:448)
>  at java.net.ServerSocket.accept(ServerSocket.java:419)
>  at org.apache.catalina.core.StandardServer.await(StandardServer.java:552)
>  at org.apache.catalina.startup.Catalina.await(Catalina.java:634)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:596)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
>
> "VM Thread" prio=1 tid=0x0x808a208 nid=0x72c3 runnable
>
> "VM Periodic Task Thread" prio=1 tid=0x0x80a8ee8 nid=0x72c3 waiting on
> condition
> "Suspend Checker Thread" prio=1 tid=0x0x80a98b0 nid=0x72c3 runnable
>
>
>
> ----- Original Message -----
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 01, 2003 2:52 PM
> Subject: RE: tomcat jitters, then hangs - please help
>
>
>
> Howdy,
> Oh, these problems are invariably a pain to debug ;)
>
> >My Tomcat installation works fine until sometimes (usually after 24
> hours),
> >calling the simplest servlet locks up the Tomcat threads,
> >causing the tomcat engine to be unresponsive.
>
> At that time, if you send the VM a SIGQUIT, what are the threads doing?
>
> >The servlets I'm running work with a mysql JDBC connector connecting to
> >mysql database.
>
> Is the behavior the same if all you have in your webapp is the Hello
> servlet?  I.e. you take all other servlets, especially the ones that use
> JDBC, out?  There have been problems reported in the past with DB
> connection pool threads just hanging around.
>
> >the simple "Hello" servlet  (code at the bottom). After calling it a
> few
> >times there was no
>
> So the first few times it works?
>
> >more response from the server and the tomcat manager/status page (which
> >sometimes returns and sometimes not) clearly shows that the "Hello"
> servlet
> >is stuck:
> >
> >Stage 1:  After calling the "Hello" servlet
> >
> >Stage    Time        B Sent    B Recv    Client                VHost
> >Request
> >S        32671 ms   0KB        0KB        194.90.90.18       mdrmus
> Get
>
> Actually, this shows your servlet wasn't even called: no bytes sent OR
> received.  Are you sure you're not having a network failure?
>
> Also, the fact the manager status page sometimes works and sometimes
> doesn't is worrisome.  I've never had problems with it, and it should be
> very reliable.  Can you can the manager webapp to malfunction even
> without any of your webapps deployed on the server?  If so, open a
> bugzilla issue with steps to reproduce your behavior.
>
> >If anyone has any idea how to solve this problem, I would be most
> grateful.
>
> Any errors in the logs?  (Also make sure you have adequate disk space to
> write logs and temp files).
>
> Yoav Shapira
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to