2 Replies Latest reply on Apr 17, 2007 1:07 AM by genman

    please suggest a startegy

    bentins

      I have a web application running on JBoss 4.0.3SP1 on a sun sparc with 2 processors. Some of my processes are running asynchronously doing alot of transactions with the DB. When these processes are running the CPU is working real heavy and the users suffer from a slowdown.

      Is there a JBoss setup that would utilize both CPUs. When I look at the machine I see only one is used for Jboss. Should I run two instances of Jboss one on each CPU and create some clustering between them?

      What the best way to approch this.

        • 1. Re: please suggest a startegy
          peterj

          What are the processor affinity rules on a Solaris machine? On both Windows and Linux, by default the JVM will use all available processors (we have used up to 32, but recommend not going beyond 4), and one has to change the affinity to get it to run on a single (or 4) processor(s). Sounds like there is something in Solaris (or in the configuration of your server) that has affinity set the other way around.

          • 2. Re: please suggest a startegy
            genman

            My late reply: Typically if a multi-threaded app only runs on a single processor, it is possible your application has a high degree of resource contention. Or simply you aren't executing work in multiple threads.