3 Replies Latest reply on Jul 1, 2002 1:36 PM by scott.y

    Lots of jvm (java) processes on Linux?

    scott.y

      I recently installed JBoss 3.0 (Release version) and upon startup everything seems to work fine except that I noticed that the process table shows 34 separate jvm processes running. Could this be correct? This is Linux kernal version 2.4.18 BTW.

      Thanks,

      SL

        • 1. Re: Lots of jvm (java) processes on Linux?
          crackers

          This is a function of the way Linux reports threads - nothing to be alarmed about. Your memory footprint is no where near what you think it is, too.

          • 2. Re: Lots of jvm (java) processes on Linux?
            nhebert

            Scott,

            Not to worry. As Crackers points out this is function of
            how Linux displays threads as processes. It is a little
            confusing, but do a ps-ef and look at the PPID for the
            JVM. Notice that they are all the same number? PPID is
            the Parent Process ID.

            It might "appear" that your JVM is taking up heaps of
            memory, what is actually happening is the threads
            as "processes" are mapped into the same address space
            as the PPID.

            Hope this helps.

            Cheers,

            Noel.

            • 3. Re: Lots of jvm (java) processes on Linux?
              scott.y

              Thanks for the replies guys. That's what I thought but I feel better now that my suspicions have been confirmed. I've been away from *Unix* for a few years and my background previously was SunOS/Solaris. The man page seemed to indicate that threads weren't reported by default (ps -e) but I guess I was mistaken.

              Thanks again