1 Reply Latest reply on Nov 19, 2003 10:44 PM by Jon Barnett

    How to track down the CPU sucker?

    Winston Ng Newbie

      I'm running a typical EJB application on the following production enviroment:

      - Linux 2.4.18-24.7.x #1
      - java version "1.4.2_02"
      - Jboss 3.2.2

      The application starts up fine, with CPU usage hovering around 6%. But occasionally, one of the java process would suck up about 90% of the CPU but continues to operate.

      Same application installed on a newer linux kernel with same java and jboss java version, went through similar testing and never once get into that situation.

      So.. my question is: how can I debug that application on the production server to see which thread is the culprit?

      I've tried Eclipse remote debugging feature, it shows all the running thread but I can't seem to see which thread is hogging the CPU and what it is doing.

      Any suggestions/comments are very much appreciated. Thanks!

      -Kai