1 Reply Latest reply on Sep 20, 2007 11:38 AM by Neeraj khadakkar

    Incrementing thread counter using MDB's ?

    Neeraj khadakkar Newbie

      JBoss 4.2.1/ JBM 1.3 GA

      NOTE: I have mistakenly posted the same question in the JBM forum.I guess this belongs in this forum. Not an intentional double post.

      We use MDBs running as endpoints for JMS messages. Running a load test on our code, here is a sample of logs that i see on the JBoss AS.

      16:11:36,079 DEBUG [WorkManager(2)-
      org.jboss.jms.server.endpoint.ServerConnectionEndpoint - Connection 2736 stopped
      16:11:36,079 DEBUG [WorkManager(2)-1675]: org.jboss.jms.server.endpoint.ServerConnectionEndpoint -
      Connection 2736 stopped
      16:11:36,091 INFO [WorkManager(2)-1676]: com.getmedium.services.urivalidation.ejbs.UriMDB - JMS URL
      16:11:36,092 INFO [WorkManager(2)-1676]: com.getmedium.services.urivalidation.ejbs.UriValidator - U
      16:11:36,092 INFO [WorkManager(2)-1676]: com.getmedium.services.urivalidation.ejbs.UriValidator - R
      unning HTML parser
      16:11:36,093 DEBUG [WorkManager(2)-1676]: com.getmedium.services.urivalidation.HtmlParser - resolvi
      ng {}http://wwwapps.ups.com/WebTracking/track
      16:11:36,108 INFO [WorkManager(2)-1674]: com.getmedium.services.urivalidation.HtmlParser - Resolvin
      g URL::http://www.datingnetwork.com
      16:11:36,109 INFO [WorkManager(2)-1674]: com.getmedium.services.urivalidation.HtmlParser - URL isRe
      16:11:36,109 INFO [WorkManager(2)-1674]: com.getmedium.services.urivalidation.HtmlParser - Found a
      title Token
      16:11:36,301 INFO [WorkManager(2)-1676]: com.getmedium.services.urivalidation.HtmlParser - Resolvin
      g URL::http://wwwapps.ups.com/WebTracking/track
      16:11:36,301 INFO [WorkManager(2)-1676]: com.getmedium.services.urivalidation.HtmlParser - URL isRe
      16:11:36,305 INFO [WorkManager(2)-1676]: com.getmedium.se

      The section of the log with this expression :
      [WorkManager(2)-1676] bothers me. the number you see 1676 started from 0. This number keeps incrementing as the load test progresses. The log messages are coming from the MDB.
      My reading of this display is that this log line is generated by the Thread#1676 in Thread group WorkManager(2).

      Is this right ? Should the thread count continue to increment ?If pooling ...i would expect to see these numbers being re-used. Is this number increment symptomatic of misconfiguration on my part ? I have not profiled the server yet.
      The server has not crashed . Yet :))

      Here is my Log4J pattern :
      log4j.appender.stdout.layout.ConversionPattern = %d{ABSOLUTE} %p %x [%t]: %c - %m%n

        • 1. Re: Incrementing thread counter using MDB's ?
          Neeraj khadakkar Newbie

          As an addendum to above info, here i s my MDB configuration :

          @MessageDriven(name = "UriMDB",
           activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
           @ActivationConfigProperty(propertyName = "destination", propertyValue = "/queue/UniversalResourceProcessingQueue"),
           @ActivationConfigProperty(propertyName = "minSession", propertyValue = "1"),
           @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "4") })