If your running 'embedded' tomcat, there's actually only one process 
running. What you're seeing in top is an artifact of the Linux thread 
model - each individual thread shows as a separate process. Really in 
Linux the only difference between a process and a thread is all threads 
in a process share all of their memory.

To see a clearer picture of what's going on, run `ps -axf | more`. 
You'll probably see more like 25-30 java 'processes' listed (maybe even 
more, depending on what Hypersonic does). Most of these processes will 
show up as children of a common ancester, whose PID actually represents 
the process. The other PIDs are thread id, actually.

-danch

Jim Archer wrote:

> Hi All...
> 
> I have read the architecture notes on the jBoss site, but I'm still 
> wondering a few things about what jBoss does when it is run. I'm using 
> jBoss 2.2.1 bundled with Tomcat on a Debian/Linux SMP machine. 
> Currently, I'm still running Hypersonic as bundled, so I guess there are 
> three java processes: Tomcat, jBoss and Hypersonic.
> 
> When jBoss is running, I always see at least one instance of it, but 
> usually more. Right now, for example, top shows 7 instances of java 
> running, each by user jboss and  each with a different PID. I have seen 
> it get much higher.
> 
> The size and resident components (RSS) of each are the same at 121M.
> 
> My question is, are each of these a seperate VM or different processes 
> running within the same VM?
> 
> Also, what causes the number of java processes to change? Does jBoss 
> make more instances of itself as the load increases, or is it a matter 
> of Tomcat needing a bean and making a jBoss instance to service a 
> transaction?
> 
> I would appreciate any insite into this!
> 
> Thanks very much!
> 
> Jim
> 
> 
> ********************************************
> I shall be telling this with a sigh
> Somewhere ages and ages hence:
> Two roads diverged in a wood, and I -
> I took the one less traveled by,
> And that has made all the difference.
> 
> - Robert Frost, 1916
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to