Re: tomcat jitters, then hangs - please help
Good to hear, I can confirm setting LD_ASSUME_KERNEL to 2.2.5 also works. The server has been running for the past two weeks without a single outage. Best Regards, Noam - Original Message - From: "Ryan Lissack" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, October 24, 2003 1:35 PM Subject: RE: tomcat jitters, then hangs - please help > Hi all, > > Just an update on issues we were experiencing when running Tomcat on Red Hat > 9. > > As mentioned previously in this thread, the problem appears to be with a bug > in NPTL. > In order to revert to standard Linux threads you can set the > LD_ASSUME_KERNEL environment variable to 2.2.5 or 2.4.1 > > We set LD_ASSUME_KERNEL to 2.4.1 on one of our servers one week ago and, > since then, have *not* had one outage, our other machine which does not have > the environment variable set has had numerous outages during the period. > > We can confirm that this does appear to resolve the issue. > > I believe Noam Camiel found that setting LD_ASSUME_KERNEL to 2.2.5 also > works. > > I would like to say a special thank you to Remy for all his help during this > period. > > Best regards, > Ryan > > > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: 15 October 2003 14:07 > To: Tomcat Users List > Subject: RE: tomcat jitters, then hangs - please help > > > > Howdy, > Cool, please keep us updated ;) I want these linux questions better > documented in the list archives ;) > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Noam Camiel [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, October 15, 2003 6:37 AM > >To: Euan Guttridge; Tomcat Users List > >Subject: Re: tomcat jitters, then hangs - please help > > > >Hi Euan > > > >Please note the server is now up for 48 hours strait. > >The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5 > >I will update again in another 48 hours or if the server hangs, > whichever > >comes first. > > > >Regards, > >Noam > > > >- Original Message - > >From: "Euan Guttridge" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Wednesday, October 15, 2003 9:42 AM > >Subject: FW: tomcat jitters, then hangs - please help > > > > > >> Hi Noam, > >> > >> I work with Ryan on tomcat issues. I would be grateful if you would > let > >me > >> know if your tomcat installation is *still* up (another 24 hours) > since > >the > >> NPTL change as below. > >> > >> > >> Regards, > >> Euan > >> > >> -Original Message- > >> From: Noam Camiel [mailto:[EMAIL PROTECTED] > >> Sent: 14 October 2003 14:46 > >> To: Tomcat Users List > >> Subject: Re: tomcat jitters, then hangs - please help > >> > >> > >> Hi, > >> > >> On Friday, October 10, 2003 11:09 AM "Ryan Lissack" > >> <[EMAIL PROTECTED]> wrote: > >> > >> > Remy pointed out to me previously that RH9 uses a new form of > threading > >> and > >> > based on this we have done some investigation. > >> > > >> > RH9 uses NTPL (Native POSIX Thread Library) > >> > http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release- > >notes/x86/ > >> > > >> > It is possible to revert to the older form of threading, > >"LinuxThreads", > >> by > >> > setting an environment variable, namely: > >> > LD_ASSUME_KERNEL= > >> > - 2.4.1 - Linuxthreads with floating stacks > >> > - 2.2.5 - Linuxthreads without floating stacks > >> > > >> > This does not revert back to an older kernel, it just changes the > GNU C > >> > library used > http://www-106.ibm.com/developerworks/java/library/j-jtc/ > >> > > >> > We will be testing with these settings starting today and, if we > >continue > >> to > >> > have problems, we will be trying another distro. > >> > >> setting the LD_ASSUME_KERNEL variable, the server is now running over > 24 > >> hours strait. > >> Still, nothing conclusive as of yet.. > >> Ryan, thanks for the information above. Do you have move information > >> regarding this configuration? do you still encounter problems? > >> > >> > >> On Mond
Re: Tomcat mysteriously stops responding...
If you are using Red-Hat 9, you may have run into the problem I had. Check the thread "Re: tomcat jitters, then hangs - please help" Noam - Original Message - From: "Sonny Sukumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 23, 2003 1:25 AM Subject: Tomcat mysteriously stops responding... > > Hey guys, > > I've had the persistent problem with Tomcat (using > Cocoon) over some months now where when I go to bed at > night my Tomcat/Cocoon server is functioning just fine > and I can access all web pages, both static and > dynamically generated (from a backend db). > > But when I wake up and try to access the pages the > connection just times out and I get a totally blank > response. This doesn't happen every single day, but > often enough to be annoying. We're soon going live > with the site, so this happening **at all** is a scary > thought. I can't seem to figure out what the problem > could be. > > I'm fairly sure it's Tomcat because restarting Tomcat > almost always solves the problem. I've had this > problem through all my Tomcat upgrades (4.1.12 all the > way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x > all the way until latest 2.1.2). > > Has anybody else experienced this? Any idea what it > could be? > > Thanks! > > Sonny > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > - > 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]
Re: tomcat jitters, then hangs - please help
Very interesting bug report I will currently stick with my current configuration, but if this confirms to solve the prolem, it could explain some oddities Remy wondered upon Cheers, Noam - Original Message - From: "Euan Guttridge" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 10:54 AM Subject: RE: tomcat jitters, then hangs - please help Excellent news Noam.. Our testing (LD_ASSUME_KERNEL=2.4.1) is in progress but too early to confirm anything. Another option is to stick with the NTPL, using an updated glibc. Check out RH errata ; "A bug in pthread_cond_wait() which could cause programs hangs in some cases" https://rhn.redhat.com/errata/RHBA-2003-136.html If anyone tests this please drop the list a mail.. Cheers Euan -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 20 October 2003 14:32 To: Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Noam Camiel wrote: > Hi folks, > A week's gone by and all seems fine. Server is stable and working > properly. Thanks for all who helped out! Ryan, Remi Yoav and Arthur, > many thanks. It may be a good idea to document this for others who may > stumble over this problem. All the best > Noam Camiel > > Details: > Problem: Tomcat Server becomes unresponsive to new requests after > several hours, regardless of load. OS RH9; Tomcat 4 or 5; VM Sun or > IBM (JDK 1.4) > Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5 Thanks :) Very good news :) I think I'll need to add that in the release notes (and putting it in the FAQ would be good as well). Very weird symptoms, though. The only explanation for the bug is if the thread waiting on the socket just vanishes (there's no way it can go out of the blocking accept loop otherwise - I reviewed that quite extensively ;-)). Q: would the assume kernel 2.4 work as well ? I believe it would, but it could be worth confirming it eventually. This is not critical, obviously. -- x Rémy Maucherat Senior Developer & Consultant JBoss Group (Europe) SàRL x - 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]
Re: tomcat jitters, then hangs - please help
Hi folks, A week's gone by and all seems fine. Server is stable and working properly. Thanks for all who helped out! Ryan, Remi Yoav and Arthur, many thanks. It may be a good idea to document this for others who may stumble over this problem. All the best Noam Camiel Details: Problem: Tomcat Server becomes unresponsive to new requests after several hours, regardless of load. OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4) Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5 - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 3:06 PM Subject: RE: tomcat jitters, then hangs - please help Howdy, Cool, please keep us updated ;) I want these linux questions better documented in the list archives ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Noam Camiel [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 15, 2003 6:37 AM >To: Euan Guttridge; Tomcat Users List >Subject: Re: tomcat jitters, then hangs - please help > >Hi Euan > >Please note the server is now up for 48 hours strait. >The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5 >I will update again in another 48 hours or if the server hangs, whichever >comes first. > >Regards, >Noam > >- Original Message - >From: "Euan Guttridge" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, October 15, 2003 9:42 AM >Subject: FW: tomcat jitters, then hangs - please help > > >> Hi Noam, >> >> I work with Ryan on tomcat issues. I would be grateful if you would let >me >> know if your tomcat installation is *still* up (another 24 hours) since >the >> NPTL change as below. >> >> >> Regards, >> Euan >> >> -Original Message- >> From: Noam Camiel [mailto:[EMAIL PROTECTED] >> Sent: 14 October 2003 14:46 >> To: Tomcat Users List >> Subject: Re: tomcat jitters, then hangs - please help >> >> >> Hi, >> >> On Friday, October 10, 2003 11:09 AM "Ryan Lissack" >> <[EMAIL PROTECTED]> wrote: >> >> > Remy pointed out to me previously that RH9 uses a new form of threading >> and >> > based on this we have done some investigation. >> > >> > RH9 uses NTPL (Native POSIX Thread Library) >> > http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release- >notes/x86/ >> > >> > It is possible to revert to the older form of threading, >"LinuxThreads", >> by >> > setting an environment variable, namely: >> > LD_ASSUME_KERNEL= >> > - 2.4.1 - Linuxthreads with floating stacks >> > - 2.2.5 - Linuxthreads without floating stacks >> > >> > This does not revert back to an older kernel, it just changes the GNU C >> > library used http://www-106.ibm.com/developerworks/java/library/j-jtc/ >> > >> > We will be testing with these settings starting today and, if we >continue >> to >> > have problems, we will be trying another distro. >> >> setting the LD_ASSUME_KERNEL variable, the server is now running over 24 >> hours strait. >> Still, nothing conclusive as of yet.. >> Ryan, thanks for the information above. Do you have move information >> regarding this configuration? do you still encounter problems? >> >> >> On Monday, October 13, 2003 9:59 PM "Joe Zendle" ><[EMAIL PROTECTED]> >> wrote: >> >> > We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9. The >> > thing wouldn't work for more than about 12 hours. IMHO, there are some >> > fundamental problems with tomcat as of late. Hate to say it but we >> > solved the problem by throwing away tomcat and using jetty! We are very >> > pleased so far. Jetty is very fast and about 1/3 the memory footprint. >> > >> > Good luck. >> >> >> Hi Joe, >> Thanks for sharing the info, I am considering what you suggest as well. >> As a last try before moving away from Tomcat, I'm trying out the >suggestion >> from Ryan above. >> Regards, >> Noam. >> >> >> >> - >> 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] 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]
Re: tomcat jitters, then hangs - please help
Hi Euan Please note the server is now up for 48 hours strait. The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5 I will update again in another 48 hours or if the server hangs, whichever comes first. Regards, Noam - Original Message - From: "Euan Guttridge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 9:42 AM Subject: FW: tomcat jitters, then hangs - please help > Hi Noam, > > I work with Ryan on tomcat issues. I would be grateful if you would let me > know if your tomcat installation is *still* up (another 24 hours) since the > NPTL change as below. > > > Regards, > Euan > > -Original Message- > From: Noam Camiel [mailto:[EMAIL PROTECTED] > Sent: 14 October 2003 14:46 > To: Tomcat Users List > Subject: Re: tomcat jitters, then hangs - please help > > > Hi, > > On Friday, October 10, 2003 11:09 AM "Ryan Lissack" > <[EMAIL PROTECTED]> wrote: > > > Remy pointed out to me previously that RH9 uses a new form of threading > and > > based on this we have done some investigation. > > > > RH9 uses NTPL (Native POSIX Thread Library) > > http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-notes/x86/ > > > > It is possible to revert to the older form of threading, "LinuxThreads", > by > > setting an environment variable, namely: > > LD_ASSUME_KERNEL= > > - 2.4.1 - Linuxthreads with floating stacks > > - 2.2.5 - Linuxthreads without floating stacks > > > > This does not revert back to an older kernel, it just changes the GNU C > > library used http://www-106.ibm.com/developerworks/java/library/j-jtc/ > > > > We will be testing with these settings starting today and, if we continue > to > > have problems, we will be trying another distro. > > setting the LD_ASSUME_KERNEL variable, the server is now running over 24 > hours strait. > Still, nothing conclusive as of yet.. > Ryan, thanks for the information above. Do you have move information > regarding this configuration? do you still encounter problems? > > > On Monday, October 13, 2003 9:59 PM "Joe Zendle" <[EMAIL PROTECTED]> > wrote: > > > We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9. The > > thing wouldn't work for more than about 12 hours. IMHO, there are some > > fundamental problems with tomcat as of late. Hate to say it but we > > solved the problem by throwing away tomcat and using jetty! We are very > > pleased so far. Jetty is very fast and about 1/3 the memory footprint. > > > > Good luck. > > > Hi Joe, > Thanks for sharing the info, I am considering what you suggest as well. > As a last try before moving away from Tomcat, I'm trying out the suggestion > from Ryan above. > Regards, > Noam. > > > > - > 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]
Re: tomcat jitters, then hangs - please help
Hi, On Friday, October 10, 2003 11:09 AM "Ryan Lissack" <[EMAIL PROTECTED]> wrote: > Remy pointed out to me previously that RH9 uses a new form of threading and > based on this we have done some investigation. > > RH9 uses NTPL (Native POSIX Thread Library) > http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-notes/x86/ > > It is possible to revert to the older form of threading, "LinuxThreads", by > setting an environment variable, namely: > LD_ASSUME_KERNEL= > - 2.4.1 - Linuxthreads with floating stacks > - 2.2.5 - Linuxthreads without floating stacks > > This does not revert back to an older kernel, it just changes the GNU C > library used http://www-106.ibm.com/developerworks/java/library/j-jtc/ > > We will be testing with these settings starting today and, if we continue to > have problems, we will be trying another distro. setting the LD_ASSUME_KERNEL variable, the server is now running over 24 hours strait. Still, nothing conclusive as of yet.. Ryan, thanks for the information above. Do you have move information regarding this configuration? do you still encounter problems? On Monday, October 13, 2003 9:59 PM "Joe Zendle" <[EMAIL PROTECTED]> wrote: > We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9. The > thing wouldn't work for more than about 12 hours. IMHO, there are some > fundamental problems with tomcat as of late. Hate to say it but we > solved the problem by throwing away tomcat and using jetty! We are very > pleased so far. Jetty is very fast and about 1/3 the memory footprint. > > Good luck. Hi Joe, Thanks for sharing the info, I am considering what you suggest as well. As a last try before moving away from Tomcat, I'm trying out the suggestion from Ryan above. Regards, Noam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat jitters, then hangs - please help
On Thursday, October 09, 2003 10:39 PM "Remy Maucherat" <[EMAIL PROTECTED]> wrote: > It is very surprising that the connector will manage to exit the accept > loop without logging some kind of error (which would be in catalina.out, > rather than in the main logs). Do you see some stack trace originating > from the PoolTcpEndpoint or ThreadPool classes ? There were no logs indicating this, and actually, after the server started there are no other logs appearing in catalina.out > No idea at this point. Most (all) such reports were for RH 9. All also > mention a period of about a day before an incident. Thanks, let me know if there's any news. Regards, Noam - Original Message - From: "Remy Maucherat" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 09, 2003 10:39 PM Subject: Re: tomcat jitters, then hangs - please help > Noam Camiel wrote: > > On Thursday, October 09, 2003 5:11 PM "Ryan Lissack" > > <[EMAIL PROTECTED]> wrote: > > > >>Hi Noam, > >> > >>We have experienced similar problems. You will notice in the thread dump > >>that there is no thread from the connectors thread pool waiting on an > >>accept > > > > > > I see your what you mean, I compared the thread dump to a "good" dump when > > the server is operational and there indeed I found a thread from the > > connectors thread pool waiting on accept: > > > > 3XMTHREADINFO "http80-Processor24" (TID:0x100688E0, > > sys_thread_t:0x87810C0, state:R, native ID:0x41CCCF40) prio=5 > > 4XESTACKTRACE at java.net.PlainSocketImpl.socketAccept(Native > > Method) > > > > This does not appear to exist in the "bad" dump. > > It is very surprising that the connector will manage to exit the accept > loop without logging some kind of error (which would be in catalina.out, > rather than in the main logs). Do you see some stack trace originating > from the PoolTcpEndpoint or ThreadPool classes ? > > >>What OS are you on, RH9?? > > > > Yes, Im on RH9. > > > > Any ideas why this could happen? could it be some system resource limit? > > Is your application an intensive app? My application is not an intensive one > > and the hangs occur hours after i start the server (usually a day later). > > No idea at this point. Most (all) such reports were for RH 9. All also > mention a period of about a day before an incident. > > -- > x > Re'my Maucherat > Senior Developer & Consultant > JBoss Group (Europe) Sa`RL > x > > > - > 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]
Re: Tomcat hanging!! About to change container!! Please help!!
Hi Joe, I'm experiencing a similar problem to what you are describing. What I've now tried to do based on Rémy Maucherat advice is to try the IBM JVM instead of the Sun JVM. I don't have conclusive results yet, but if you are using the Sun JVM, try using the IBM VM. Regards, Noam - Original Message - From: "Joe Zendle" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 6:44 PM Subject: Tomcat hanging!! About to change container!! Please help!! We have 10 days until we go GA. We are experiencing periodic and regular lockups of Tomcat. We are testing on a machine that is fairly loaded with background work (about 50% cpu). Our web app is accessed by very few users so Tomcat per se, is not under load handling requests. After say 10-12 hours of browser inactivity, when attempting to login we get the BASIC Auth prompt, we enter our credentials and then tomcat hangs while loading our index.jsp. The request never completes. I've attached our configuration. Please let me know if there is anything that looks wrong. We,re using: Tomcat 4.1.27 Java 1.4.2 Redhat 9.0 Also, what kind of settings can I apply to help debug the problem effectively. BTW, I've seen similar complaints on this mailing list but no suggestions :-). Please help! Regards. > - > 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]
Re: tomcat jitters, then hangs - please help
Hiya, > On Wednesday, October 01, 2003 5:53 PM "Shapira, Yoav" <[EMAIL PROTECTED]> Wrote: > > It seems you also have a JK connector setup: let's try to reduce the > variables by running tomcat standalone with only one Coyote connector. > Disable the JK/JK2/whatever connectors to Apache, especially if you're > not using them anyways. > > Other than that, nothing unusual jumped at me from the stack trace. OK, I disabled the connector. > On Wednesday, October 01, 2003 6:03 PM "Arthur Veinstein" <[EMAIL PROTECTED]> Wrote: > 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 1 (10 > sec). If you have a problem with your DB then the tomcat will get stuck > waiting for dB connection to become available I actually didnt find "mawWait" but did find "connectionTimeout" which was already set to "2" I also received from Remy Maucherat <[EMAIL PROTECTED]> an update to the tomcat-util.jar so I'm trying that as well. The Tomcat server is now running and I'll keep you posted tomorow. Thanks for your help so far, Noam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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=0x0
tomcat jitters, then hangs - please help
Hi, 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. The servlets I'm running work with a mysql JDBC connector connecting to mysql database. In the following case, after tomcat has been up for about a day, I've called the simple "Hello" servlet (code at the bottom). After calling it a few times there was no 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 StageTimeB SentB RecvClientVHost Request S32671 ms 0KB0KB194.90.90.18 mdrmusGet /printserver/servlet/Hello HTTP/1.1 P???? ?? S 615 ms0 KB0 KB194.90.91.18mdrmus Get /manager/status HTTP/1.1 P???? ?? R???? ?? Stage 2: After trying to view the status/all page several times, each time not getting any response. StageTimeB SentB RecvClientVHost Request S94124 ms 0KB0KB194.90.90.18 mdrmusGet /printserver/servlet/Hello HTTP/1.1 P???? ?? S54513 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 P???? ?? S20402 ms 0 KB 0 KB 194.90.91.18mdrmusGet / HTTP/1.1 P???? ?? S11525 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 S11175 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 S10969 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 S10825 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 S6342 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 S241 ms 0 KB 0 KB 194.90.91.18mdrmusGet /manager/status/all HTTP/1.1 At this point the server is completely stuck and no calls are returned. If anyone has any idea how to solve this problem, I would be most grateful. Thanks Noam. - Additional technical info follows --- Setup information: Tomcat Version: 5.0.12 JVM version 1.4.1_05-b01 JVM Vendor: Sun Microsystems Inc. OS: Linux OS Version: 2.4.20-8 OS Architecture: i386 Server is running on port 80 (tomcat started by root) JVM stage 1: Free Memory: 2.32 MB, Total Memory: 8.88 MB Max memory: 134.21 MB JVM stage 2: Free Memory: 6.17 MB, Total Memory: 15.47 MB Max memory: 134.21 MB http80 stage 1 Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current thread count: 25 Current thread busy: 5 Max processing time: 1914 ms Processing time: 13 s Request count: 70 Error count: 5 Bytes received: 0.0 MB Bytes sent: 0.21 MB http80 stage 2 Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current thread count: 25 Current thread busy: 13 Max processing time: 1914 ms Processing time: 14 s Request count: 78 Error count: 10 Bytes received: 0.0 MB Bytes sent: 0.22 MB "Hello" Servlet code: import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class Hello extends HttpServlet public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("Hello there"); out.close(); } public String getServletInfo() { return "The Hello servlet says hello there"; } } Thanks again, Noam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]