LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2008, 06:57 AM   #1
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
tomcat instances


Hi
does anyone know why tomcat sometimes have more that one instance running when it shouldnt and also when i do a /etc/init.d/tomcatd stop
i still see some 1 or 2 instances still running, can anyone tell me why this is happening and how i can stop all instances when i stop tomcat
 
Old 11-24-2008, 02:15 PM   #2
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
I assume that tomcat runs multiple instances (forks) to handle simultaneous requests, just like Apache. Stopping the tomcat service will not allow to spawn any new forks, but the existing one are still allowed to finish their job (they should timeout anyway, I guess).

To stop all running instances find out the process ID's by running
ps aux | grep tomcat
and then use kill <process-number> for each running process

Last edited by Tinkster; 10-30-2010 at 06:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring two tomcat instances on same server craftereric Linux - Software 2 11-26-2013 02:27 AM
RHEL5 Install Multiple Instances of Tomcat using only RPMs BinkyBong Red Hat 6 10-24-2008 08:02 AM
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 04:28 PM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 04:16 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration