Title: RE: ** JVM and Processes

http://java.sun.com/products/jdk/1.1/packs/native-threads/README

    -----Message d'origine-----
    De:     [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
    Date:   vendredi 1 juin 2001 17:46
    �:      [EMAIL PROTECTED]
    Objet:  RE: ** JVM and Processes

    Randy,

    Thanks for the advice. Could you be a little more specific, though, about
    how to use green threads instead of native threads and possibly differences
    between the two? Thanks.

     - Adam


    At 10:59 AM 6/1/2001 -0400, you wrote:
    >
    >       Don't use ps - these are actually threads.  ps is showing them as
    >processes because that is what it does.  If you use green thread (as opposed
    >to the native threads you are using now), the display will go away, but you
    >will experience a slowdown (how much depends on your operating system and
    >other activity on the system).
    >
    >       Randy
    >
    >
    >> -----Original Message-----
    >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
    >> Sent: Friday, June 01, 2001 10:37 AM
    >> To: [EMAIL PROTECTED]
    >> Subject: ** JVM and Processes
    >>
    >>
    >> Hi,
    >>
    >> For a particular web server we are running with Tomcat 3.1,
    >> we are having
    >> an issue with the java servlets that are running. What appears to be
    >> happening is that each time a servlet is called from the web
    >> site, a new
    >> process is created to run the java program. When I view
    >> processes with "ps
    >> ax", I see dozens of instances of:
    >> /usr/java/jdk1.3/bin/i386/native_threads/java
    >> 
    >> It was briefly stated in Java Servlet Programming by Hunter &
    >> Crawford, (c)
    >> Oreilly that 'most servlet containers execute all servlets in
    >> a single JVM
    >> ... the exception being high-end containers that support
    >> execution across
    >> multiple backend servers...'
    >>
    >> We are only using 1 web server with an average weekly load of
    >> a couple of
    >> hundred visitors.
    >>
    >> Any ideas as to why we would be seeing so many identical
    >> processes and if
    >> so, how to modify that?
    >>
    >> Thanks in advance.
    >>
    >>   -Adam
    >>
    >>
    >
    >

Reply via email to