aspose file tools*
The moose likes Tomcat and the fly likes Multiple Java processes when tomcat starts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multiple Java processes when tomcat starts" Watch "Multiple Java processes when tomcat starts" New topic
Author

Multiple Java processes when tomcat starts

Sujit Kale
Greenhorn

Joined: Dec 08, 2010
Posts: 1
I am using apache tomcat (6.0.14) with java (1.5.0_15) on linux ( vmrhel 2.6.9-34.EL) running inside a virtual machine

When I start tomcat it should start only 1 java process. But in my case it starts 8-10 processes. If I shutdown tomcat all processes vanishes. All the processes seems to be replica of the parent process. If I kill any of the process tomcat shuts down.

One more observation is, on i have 2 users on my system, root and oracle. This problem comes when I start tomcat as oracle but if I am root, tomcat behaves as usual i.e no extra java processes only one.

I tried using tomcat 5 but problem persists with same observations.

What could be the reason for such behavior?

please find the screenshot for better understanding...

Thanks in Advance
Sujit..



[Thumbnail for multiple_tomcat_processes.png]

Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
I believe they are not multiple processes - they are multiple threads of a single process.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

Tom Reilly wrote:I believe they are not multiple processes - they are multiple threads of a single process.


That was my opinion, too, but normally RHEL tomcat's threads aren't OS threads, so they don't appear on the "ps" command. Of course, there's a possibility of something like some funny JNI code spawning threads using the OS thread manager.

The "px axf" command should display process hierarchy. As long as they're all children of a common catalina process, it's probably OK.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Java processes when tomcat starts