3 Replies Latest reply on Jul 21, 2008 4:56 AM by timfox

    server and client threads are created duirng jboss messaging

    malert

      Hi,
      In our project we are using jbossAS 5.0.0CR1 with jboss-messaging-1.4.1CR1. Some of the jbm-server-session* and jbm-client-session* threads are getting created when creating and using topic connection and session. I see that these threads are not being closed even after the termination of the client.

      Also i need to know what is the configuration in jboss to define the Acknowledge mode as NO_ACKNOWLEDGE (this option is available in weblogic).

      Thanks
      Malert Jones

        • 1. Re: server and client threads are created duirng jboss messa
          clebert.suconic

           

          Hi,
          In our project we are using jbossAS 5.0.0CR1 with jboss-messaging-1.4.1CR1. Some of the jbm-server-session* and jbm-client-session* threads are getting created when creating and using topic connection and session. I see that these threads are not being closed even after the termination of the client.


          How to reproduce this?
          Are you closing your Session/Connection?

          Also i need to know what is the configuration in jboss to define the Acknowledge mode as NO_ACKNOWLEDGE (this option is available in weblogic).



          Maybe you should use

          http://java.sun.com/javaee/5/docs/api/javax/jms/Session.html#DUPS_OK_ACKNOWLEDGE



          • 2. Re: server and client threads are created duirng jboss messa
            malert

            Hi,
            I analysed the code more deeply, and i found that every time i create a new session using the connection (TopicConncetion) a new thread is being created. I am using jconsole to watch the threads and preformance.

            When i terminate the client the connection object is closed.

            This project is actually a migration from weblogic server. In weblogic new threads were not created with new session (seems to be a performance issue with too many threads being created). Please help me in this.

            I am using DUPS_OK ACKNOWLEDGE, but i need to completely get rid of Acknowledgement, is there a way for it.

            Thanks,
            Malert J

            • 3. Re: server and client threads are created duirng jboss messa
              timfox

              When you close the connection or session the threads should be reclaimed, so this is only going to be a problem if you create a very large number of sessions.