0 Replies Latest reply on Jun 10, 2010 9:53 PM by zlyperson

    jboss-4.0.5.GA just support one cpu only?

    zlyperson

      here is an 8 cpu server runs a jboss-4.0.5.GA instance, just deployed a web application. whenever how busy does the jboss servers, there is only one cpu usage up and down. even if it till to 100%, the others cpu still keeps low usage.

       

      How and why?

      Is it jboss-4.0.5.GA does not support multiple cpu? or I do not configure it correctly?

      tks alot

       

       

       

      ================================================================================

      Jean-Frederic ClereJean-Frederic Clere say:

      jboss-4.0.5.GA supports multiple cpu because the JVM supports multiple cpu. Which version of JAVA are you using? or which OS?

       

      May be the application is looping or locking a single resource and all JAVA threads are waiting from one. A thread dump may help.

       

       

       

      ================================================================================

      Kyle ZhangKyle Zhang reply Jean-Frederic Clere:

      Tks,

       

      much os are AIX Version 5.3, and the java version is

       

      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
      Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20050929a (SR3) (JIT ena
      bled: jitc))
      How does thread dump, would you detail it, very tks.
      ================================================================================
      Jean-Frederic ClereJean-Frederic Clere reply Kyle Zhang:

      For the thread dump see http://community.jboss.org/wiki/StackTrace

       

      You use a quite old JVM, ask IBM if they had problems with that version and/or upgrade to a newer version.

       

       

      ================================================================================
      Peter JohnsonPeter Johnson reply Jean-Frederic Clere:

      You should have posted this question under Discussions, not under Articles. Perhaps some kind administrator will move it.

       

      UNIX OSes, such as Solaris and AIX, tend to automatically affinitize processes and thus prevent then from using all of the CPUs. There should be somthing in the AIX manuals regarding affinity and how you can adjust it for your apps.

       

      And this has nothing whatsoever to do with JBoss AS - no Java applications have any control over affinitization because there is no API to control it. In addition, the JVM has no code to handle affinitization (well, the Intel or AMD engineers might have contributed some code to maintain thread affinity to the more recent JDK 6 releases).