TitleLive thread with infinite loop keeps Tomcat from closing gracefully.
Date15-Oct-2005 00:11:07 EEST
Bug criticalityMediumBug
Browser versionN/A
Bug statusClosedBug
PageProvider usedcom.ecyrd.jspwiki.providers.CachingProvider with Real provider: com.ecyrd.jspwiki.providers.VersioningFileProvider
Servlet ContainerTomcat 4.1
Operating SystemLinux (Ubuntu distro)
Java version1.4.2

Eversince I installed JSPWiki on my Linux server (Ubuntu distro), I cannot stop Tomcat gracefully (/etc/init.d/tomcat stop). I have to kill it (kill -9 pid) !!!

I looked at the source code, and I may have found something in class LuceneSearchProvider, method startLuceneUpdateThread: there is an infinite loop in a non-deamon thread. Maybe if you could just create a deamon thread instead of a regular user thread, it might solve the problem. Or maybe you could check Tomcat's state and stop the infinite loop if Tomcat is stopped.


In 2.4 we should now be killing all threads gracefully, so it should stop. Closing this, but if you still see it, please reopen.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-8) was last changed on 12-Mar-2011 18:54 by Harry Metske