2 Replies Latest reply on May 22, 2003 10:28 AM by Mike Finn

    jboss process(es) in Linux

    Jeremy Newbie


      What do i "grep" for using "ps -ef | grep" to search for JBoss 3.x processes on Linux?

      What should I see?


        • 1. Re: jboss process(es) in Linux
          Jon Barnett Master

          You'll probably see a bunch of Java processes with -Dprogram.name=run.sh. Something like this:
          29676 ? S 0:02 /usr/local/IBMJava2-14/bin/java -Dprogram.name=run.sh
          29696 ? S 0:23 /usr/local/IBMJava2-14/bin/java -Dprogram.name=run.sh
          29697 ? S 0:33 /usr/local/IBMJava2-14/bin/java -Dprogram.name=run.sh

          With Sun and HotSpot, it will probably be more like this:
          29676 ? S /usr/local/J2SDK1.4.1_02/bin/java -server -Dprog
          29696 ? S /usr/local/J2SDK1.4.1_02/bin/java -server -Dprog
          29697 ? S 0:33 /usr/local/J2SDK1.4.1_02/bin/java -server -Dprog

          The number of threads, that Linux lists as processes, will vary depending on the services you are running. There's about 89 on my service.

          Sometimes you are better off looking at the pstree. You'll get something like this:

          • 2. Re: jboss process(es) in Linux
            Mike Finn Apprentice

            You will see:
            One process for the shell that started JBoss (like run.sh)
            One process for each thread that JBoss has started. This is a result of the Linux 1:1 threading model. Normally those processes will show the qualified name of your JDK, so you can grep for those (like "grep j2sdk" for the Sun JVM)