I missed a lot of this thread, but given some of the comments made,
I thought I should post some information.  FWIW, these discussions
take place frequently and can be found in the list archives.

The Linux thread implementation represents a thread as a process.
That's why you see tons of processes when any Java application is
running.  Unlike a normal  process, though, all of these processes
share the same address space so the memory use you see in ps
or top is really shared across all of the processes.

As far as Sun "fixing" something, I'm not sure there's something to
fix, but I do believe some JVM's have a green threads implementation
that runs multiple threads on a single Linux thread.  There may also be 
other threading models under development for Linux.  I  know IBM was
working on a more Solaris-like MxN threading scheme, but I don't
keep up with Linux enough to know the specifics of any of those projects.

HTH

Best Regards,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com

On Thu, 21 Mar 2002 16:23:22 +0100, Jean-Luc BEAUDET wrote:

>"D. Jay Newman" a �crit :
>
>> I looked at my ps output, and they do seem to each have a different pid.
>>
>> However, I will look into this. I *think* that I have native threads on
>> this machine.
>>
>> I don't know ps well enough to find the right option, but there is always
>> "man ps"...
>>
>> > than why do they all have a different process id??  Also, how what would the 
>option be to turn off viewing of threads and just view processes?
>> > thanks for your help Jay,
>> > Dean
>> >
>> > "D. Jay Newman" wrote:
>> >
>> > > > On linux did anybody ever get a linux patch for fixing the problem of one 
>process per java thread.  I read on the sun bug parade they were going to port to a 
>new threading model but we needed to update the linux threading????  I have seen many 
>e-mails complaining about how tomcat creates soooo many processes and this is due to 
>a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
>many java processes on their linux?
>> > > > Any help, pointers you could give me would be great,
>> > >
>> > > As near as I can tell, Linux *doesn't* create multiple processes. If you
>> > > look closely at the output of "ps" all the java "processes" exist in the
>> > > same processes.
>> > >
>> > > Linux (at least RedHat) comes with a "ps" that reports threads as well
>> > > as processes.
>> > > --
>> > > D. Jay Newman                      !  All:  There's nothing we can't face...
>> > > [EMAIL PROTECTED]                !  Anya: Except for bunnies...
>> > > http://www.sprucegrove.com/~jay/   !    -- Buffy, the Musical
>> > >
>> > > --
>> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> > > For additional commands: <mailto:[EMAIL PROTECTED]>
>> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> >
>> >
>> > --
>> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> > For additional commands: <mailto:[EMAIL PROTECTED]>
>> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> >
>>
>> --
>> D. Jay Newman                      !  All:  There's nothing we can't face...
>> [EMAIL PROTECTED]                !  Anya: Except for bunnies...
>> http://www.sprucegrove.com/~jay/   !    -- Buffy, the Musical
>>
>> --
>> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> For additional commands: <mailto:[EMAIL PROTECTED]>
>> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>It's a strange way of Linux to associate the threads binded to the Tomcat process as 
>process themself.
>
>I don't work on Linux but on Solaris. Just give an output exerpt of yur ps and let 
>see if a ps .. | grep may do the tricK.
>
>Jean-Luc B :O)
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to