3 Replies Latest reply on Aug 24, 2007 2:20 PM by roberto

    High CPU utilization - How check it ?

      Sometime jboss service (on window 2003 platform) use a lot of CPU, but I don0t know why.. there are a lot of users...

      There is a way to check from the console (or with other tool) which is the thread/process that use all the CPU?

      Jboss deploy a big j2ee application with servlet, jsp, ejb ... (DB is remote on another server)
      I need to know why sometime it's use high CPU, ...

      there is a simply way do know it ?

      thanks?
      Roberto

        • 1. Re: High CPU utilization - How check it ?
          peterj

          Taking and examining several thread dumps should show you where the application is spending its time. Unfortunately, you are running the app server as a service and I don't know of any way on Windows 2003 to send a SIGQUIT signal to a service (if you ran the app server from a command prompt you could type CTRL-BREAK in the command window to get the thread dump). You could try connecting JConsole to the app server, see the JConsole documentation for instructions on how to do this. JConsole provides a thread dump feature.

          • 2. Re: High CPU utilization - How check it ?
            peterj

            One more thought. JBoss AS creates an MBean for each servlet and EJB and these keep track of statistics for each method called. Perhaps accessing that data through the MBeans would help.

            • 3. Re: High CPU utilization - How check it ?

              Thank You Peter,
              unfortunately the server is a production server...

              I will try to use the MBean...
              Thanks
              Roberto