• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple Java processes when tomcat starts

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
multiple_tomcat_processes.png
[Thumbnail for multiple_tomcat_processes.png]
Multiple Java processes when tomcat starts
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe they are not multiple processes - they are multiple threads of a single process.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic