Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1884

Hawtio becomes unavailable when there are more than 500 destinations created and also during the time when they are created.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.1
    • Hawtio
    • None
    • % %
    • Hide

      During and after execution of the test below, activemq page in hawtio becomes unresponsive.

       
      @Before 
      public void init() throws Exception{
         conFactory= new ActiveMQConnectionFactory("admin", PASSWORD, String.format("tcp://%s:%s", HOST, PORT)); 
         conn = conFactory.createConnection(); 
         session = conn.createSession(false,Session.AUTO_ACKNOWLEDGE);      
         conn.start(); 
      } 
      @Test 
      public void manyQueueTest() throws JMSException { 
         for (int i = 0; i < 500; i++) { 
            Destination queue=session.createQueue(TEST_QUEUE + i);   
            MessageProducer producer=session.createProducer(queue); 
            Message m=session.createTextMessage(TEST_MESSAGE+i);
            producer.send(session.createTextMessage("i")); producer.close(); 
      } 
      @After 
      public void closeConnection() throws JMSException { 
         session.close();
         conn.close(); 
      } 
      
      Show
      During and after execution of the test below, activemq page in hawtio becomes unresponsive. @Before public void init() throws Exception{ conFactory= new ActiveMQConnectionFactory( "admin" , PASSWORD, String .format( "tcp: //%s:%s" , HOST, PORT)); conn = conFactory.createConnection(); session = conn.createSession( false ,Session.AUTO_ACKNOWLEDGE); conn.start(); } @Test public void manyQueueTest() throws JMSException { for ( int i = 0; i < 500; i++) { Destination queue=session.createQueue(TEST_QUEUE + i); MessageProducer producer=session.createProducer(queue); Message m=session.createTextMessage(TEST_MESSAGE+i); producer.send(session.createTextMessage( "i" )); producer.close(); } @After public void closeConnection() throws JMSException { session.close(); conn.close(); }

    Attachments

      Issue Links

        Activity

          People

            ggrzybek Grzegorz Grzybek
            emedvede Elena Medvedeva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: