4 Replies Latest reply on Apr 27, 2006 2:56 AM by greiff

    JBoss not scaling on 4 CPU Sun machine

    greiff

      We have a J2EE application (Statefull and Stateless Session Beans + CMP Entity Beans) running on JBoss 3.0.4
      We are expeiencing scalability problems on our 4 CPU sun machine.
      The JBoss Server is only using 1 of the processors.
      Is there a way to tell JBoss to use all CPU's


      thx in advance
      Torsten

        • 1. Re: JBoss not scaling on 4 CPU Sun machine
          clebert.suconic

          This is 3.0.4, right?

          We have found some problems with GUID and UID hashcodes what keeps a hashTable taking more time and CPU to process.

          If you upgrade to latest 3 version this problem is fixed.

          Also you should consider using "cmp2.x jdbc2 pm" container configuration, which is much faster.

          • 2. Re: JBoss not scaling on 4 CPU Sun machine
            greiff

            thanks for your reply

            but why is the JBoss process not using all the CPU's ?
            I thought that every session bean is running in its own thread which could be connected to a native OS thread (we are using Sun's JDK 1.4.2_08)


            • 3. Re: JBoss not scaling on 4 CPU Sun machine
              clebert.suconic

              Any application server will have resources shared across multiple threads.

              It could be a datasource, a transaction manager.. anything.

              On this case this was a synchronization issue. A static resource taking more time than expected causing a synchronization issue.

              Whenever you have this problem again, use a kill -3, and that will generate a thread dump. With the thread dump we can verify where is the contention. (it could be even your own contention).

              • 4. Re: JBoss not scaling on 4 CPU Sun machine
                greiff

                Thanks for the info.
                We will do some profiling of the application


                Torsten