6 Replies Latest reply on Mar 12, 2009 6:33 AM by ataylor

    Jboss-4.2.3 takes lot of time to load

    sentcs

      Hi,

      We have deployed jboss-4.2.3.GA with jboss-messaging-1.4.0.SP3 in our production environment.

      Currently we are facing an issue as whenever we starting the Jboss with huge amount of pending messages, it takes lot of time to load.

      Can any one please tell me how to resolve this issue.

      Thanks in advance.

        • 1. Re: Jboss-4.2.3 takes lot of time to load
          gaohoward

          Once the pending messages have been consumed, the issue is gone. If the pending messages is no longer of any use to you, you can clear them from the DB before starting jboss server.

          • 2. Re: Jboss-4.2.3 takes lot of time to load
            sentcs

            Thanks for your response.

            Once the pending messages have been consumed, the issue is gone.

            I agree above points. But in ours prodution environment, they are pubishing very huge amount of messages at a time. So receivers takes lot of time to receive those messages.

            If the pendingmessages is no longer of any use to you, you can clear them from the DB before starting jboss server.


            But in ours scenario, there is no possiblities to deleted unwated messages from JBoss DB since all messages are valid for receiver end.

            Can any one please give some other solutions.

            Thanks in advance.

            • 3. Re: Jboss-4.2.3 takes lot of time to load

              I faced the same problem.
              Our db tables JBM_MSG and JBM_MSG_REF have millions records,And taked long time while rebooting.
              Any other solutions ?

              How to configure the jms message timeout(eg 1hours)

              TopicPublisher.publish(objMsg, DeliveryMode.PERSISTENT, PRIORITY,60*60*1000);

              The timeout is decided by GMT(we can not ensure all client have the same GMT).
              It is possible to configure timout by relative time(eg sender's time plus one hour)

              • 4. Re: Jboss-4.2.3 takes lot of time to load
                ataylor

                setting the timeout will have no effect since this only occurs when the messages are consumed.

                I'm afraid if you are going to produce lots of messages that aren't being received and you can't delete then you have to wait for the start up. once the messages are consumed this is no longer an issue.

                • 5. Re: Jboss-4.2.3 takes lot of time to load

                  Thanks for reply.
                  The JBossMQTimeToLiveNotWorkingProperl doc offer a method to solve message send by out-of-syc GMT.
                  Is there any solution for jboss messaging.
                  http://www.jboss.org/community/docs/DOC-10539

                  And you meant the message timout only occur when JBM redelivery message to consumers.Can it decide by JBM when a producer sending message to JBMServer.

                  • 6. Re: Jboss-4.2.3 takes lot of time to load
                    ataylor

                     

                    And you meant the message timout only occur when JBM redelivery message to consumers.Can it decide by JBM when a producer sending message to JBMServer.


                    yes, when the message is delivered to the consumer. It wouldn't make sense to check when the producer sends, if you want to do this you could add a line of code before you sent the message.