6 Replies Latest reply on Dec 9, 2004 3:05 PM by rforte

    JBoss slow after a thread creation

    rforte

      Hi,

      I'm experiencing some threading problems in my production environment. After some time of execution my production jboss generates a Thread consuming 99,9% of the CPU. The other three processors are 100% idle while this thread is running, decreasing the server performance.

      My environment:

      Red Hat Enterprise 3.0
      Jboss 3.0.8
      Postgresql 7.3
      j2sdk1.4.2_05 (sun jvm)

      Any ideas?

      Thanks in advance.

        • 1. Re: JBoss slow after a thread creation
          starksm64

          Thread dumps and increased logging levels are your next action.

          • 2. Re: JBoss slow after a thread creation
            rforte

            Hello Scott

            I've got the thread dump and for my surprise, the "problematic" thread was the JVM GC Thread. I've tried the -Xincgc flag (sun jvm) but have no success. Have you ever experienced a situation like that?

            Thank you!!!

            Regards,
            Rafael

            PS.: When this thread begin to consume CPU (99,9%) the application performance decrease very much.

            • 3. Re: JBoss slow after a thread creation
              starksm64

              You have a memory leak and the garbage collector is spinning trying to reclaim memory that it cannot.

              • 4. Re: JBoss slow after a thread creation
                rforte

                Scott,

                I've found some useful information about -XX flats and GC parallel and concurrent algorithms in the Sun JVM (for multi CPU machines) and I guess my problem is solved.

                But, in any case, do you recommend some profiling tool to use with JBoss?

                Thank you very much,
                Rafael

                • 5. Re: JBoss slow after a thread creation
                  clebert.suconic

                  I've worked in the development of JBossProfiler.

                  It has been pretty stable, even having to download through CVS and generate the .WAR/.SAR at this present time.

                  Also, at this time, I didn't convert the code for JVMTI (which is a newer version of the API I have used for Java 5). This means you can use the current version without any problem since you don't use any special GC option while capturing the data from your app-Server.

                  Anyway, if you want to use that and you have a hard time compiling it, let me know them I can provide you a binary distribution.

                  Information on how to use it is located on the wiki page for JbossProfiler.


                  Clebert Suconic

                  • 6. Re: JBoss slow after a thread creation
                    rforte

                    Hello clebert,
                    May you send me the binaries of JBossProfiler? I'm getting a hard time trying to build from the source....

                    My mail address: forte@diuno.com.br

                    Thank you very much,
                    Rafael Forte