LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 01: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 05:09 PM.
 
  


Reply



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 01:27 AM
RHEL5 Install Multiple Instances of Tomcat using only RPMs BinkyBong Red Hat 6 10-24-2008 07:02 AM
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 03: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 03:16 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 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
Open Source Consulting | Domain Registration