3 Replies Latest reply on Feb 1, 2013 2:30 PM by Tom Cunningham

    Why thread is not released in jvm

    Anto K Newbie

      Hi,

       

          We are running a jboss esb application and we found some OutOfMemoryError, so we increased the memory size for jvm. Then we where monitor the memory using http://localhost:8080/web-console, there we noticed that Thread is always increasing and it is not decreasing at all. I had attached the screenshot of it, can anyone say for what thread is mentioned and why it is always increasing.

       

       

      Thanks

        • 1. Re: Why thread is not released in jvm
          Tom Cunningham Master

          Veradis,

           

          What is your application doing?    Where are you seeing the OOM error and what is happening at that point?     Are you seeing any other exceptions?

           

          Not much to go on here.

          • 2. Re: Why thread is not released in jvm
            Anto K Newbie

            Hi Tom,

             

                    Before increasing the -Xms and -Xmx we got these sort of errors,

             

            • javax.resource.spi.work.WorkRejectedException: org.jboss.util.threadpool.ThreadPoolFullException: java.lang.OutOfMemoryError: unable to create new native thread

             

            • [ServerInvoker] Error executing server oneway invocation request: InvocationRequest[57322f, CALLBACK, InternalInvocation[9fceb6]]

             

            • java.lang.OutOfMemoryError: requested 163840 bytes for GrET in C:\BUILD_AREA\jdk6_12\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?

             

                    But after increasing the heap space, we hadn't got these errors, but my heap space and live threads are increasing slowly and the decreasing ratio is very low, even my application is in idle state.

             

                    My question is, wheather jboss esb wont close the opened threads? Likewise i need to know wheather there is any other configuration in jboss esb server?

             

            Thanks

            • 3. Re: Why thread is not released in jvm
              Tom Cunningham Master

              Kevin Conner noted to me that this might be

               

              https://issues.jboss.org/browse/JBESB-3785

               

              The fix for this issue has not made into a release yet, but you can build from source or patch your 4.10 with the fix.