0 Replies Latest reply on Aug 12, 2014 6:41 AM by thioxray

    JVM is filled with Honteq Idle Threads and can't killed

    thioxray

      I would like to ask about AsynHornetqTaskClient. We use AsynHornetqTaskClient to process JBPM work flow to Hornetq Server.  In the Hornetq Server, server create new thread to process each invocation.  We can know "the process of thread is finished or not" by using ResponseHandler object.   So, now we can know which threads are unfinished but we can't kill these threads. Although we try to increase the waiting time for those thread to be finished but they didn't finished until Jboss cancel active connection of this thread. Jboss can only make this thread to idle but Jboss can't kill  this thread. We didn't know how to kill those threads (Hornetq threads).

       

      e.g. Sample Code

      taskClient.getTasksAssignedAsPotentialOwner(userID, "en-UK", taskSummaryResponseHandler);

      boolean isDone = taskSummaryResponseHandler.waitTillDone(10000);

      if (isDone) {

                  System.out.println("Read PP Ok!");

              } else {

                  System.out.println("Read PP Error!");

              }