6 Replies Latest reply on Mar 11, 2018 3:15 PM by James Perkins

    jBoss generating many java processes

    Alx Reds Newbie

      Hello

      jBoss generating many java processes, how i can optimize this on Limit 

       

      VIRT   RES  CPU%  MEM%   PID USER    NI STIME+ IOR/s IOW/s NAME
      27.0G  3.9G  2380.7    6.2     16536    root     0 S   8:43.56      0   0 java

      ps -T 16536 | wc -l

      1628

      CPU %user %nice      %system%iowait%steal%idle
      all 55.84  0.01  0.57  0.24  0.00 43.34

       

      Thanks !

        • 1. Re: jBoss generating many java processes
          James Perkins Master

          Maybe I'm missing something, but this looks like a single process to me. What version of JBoss AS/EAP or WildFly are you using?

           

          --

          James R. Perkins

          • 2. Re: jBoss generating many java processes
            Alx Reds Newbie

            Hello

             

            Thanks for you response

             

            Im using jboss-as-7.1.1.Final 

             

            the command

             

            ps -T 16536 | wc -l

             

            are showing 1628 Process

             

            ps -T 16536 | head

              PID  SPID TTY      STAT   TIME COMMAND

            16536 16536 pts/1    Sl     0:00 java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx5120m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Duser.timezone=America/Mexico_City -Djsse.enableSNIExtension=false -Djavax.net.debug=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dorg.jboss.boot.log.file=/usr/local/jboss-as-7.1.1.Final/standalone/log/boot.log -Dlogging.configuration=file:/usr/local/jboss-as-7.1.1.Final/standalone/configuration/logging.properties -jar /usr/local/jboss-as-7.1.1.Final/jboss-modules.jar -mp /usr/local/jboss-as-7.1.1.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/usr/local/jboss-as-7.1.1.Final

            16536 16537 pts/1    Sl     0:00 java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx5120m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Duser.timezone=America/Mexico_City -Djsse.enableSNIExtension=false -Djavax.net.debug=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dorg.jboss.boot.log.file=/usr/local/jboss-as-7.1.1.Final/standalone/log/boot.log -Dlogging.configuration=file:/usr/local/jboss-as-7.1.1.Final/standalone/configuration/logging.properties -jar /usr/local/jboss-as-7.1.1.Final/jboss-modules.jar -mp /usr/local/jboss-as-7.1.1.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/usr/local/jboss-as-7.1.1.Final

            • 3. Re: jBoss generating many java processes
              Frank Langelage Master

              As you can see the PID ist the same for all rows. So it's the same process.

              The SPID differs, this is the thread id.

              On Linux the ps command shows a line per thread, not per process.

               

              But nevertheless the number of thread is quite huge.

              • 4. Re: jBoss generating many java processes
                James Perkins Master

                My apologies I definitely read that command wrong . So it's not really 1628 process but likely a single a process and the rest are threads. You could probably get more information by taking a thread dump to see what is consuming all the threads.

                 

                --

                James R. Perkins

                • 5. Re: jBoss generating many java processes
                  Alx Reds Newbie

                  Hello

                  You can help me how to  taking a thread dump