8 Replies Latest reply on Mar 31, 2005 11:07 AM by adrian.brock

    message size

    jianjia

      Hello, I am doing a MSc project in which I need to evaluate the proformance throughput of JBossMQ and JMS.
      One of the test methods that I had designed is to send BytesMessage of increasing size (from 16Kb to 1Mb bytes) to JBossMQ. Unfortunately when I increased the message size to 512K, the test application is very unstable and exceptions are thrown. The error messages are mainly about OutOfMemoryError and could not store message to persistent storage. I use Hypersonic DB as Persistence Management by default, no special configuration are made. Would anybody tell me how to configure JBossMQ to accept large data quantities into PM.

      Many thanks
      Jianjia

        • 1. Re: message size

          My thoughts on hypersonic are probably well known if you look through these
          forums.
          If you really want an MSc project, try this related task:
          http://www.jboss.org/index.html?module=bb&op=viewtopic&t=46187

          Regards,
          Adrian

          • 2. Re: message size
            jianjia

            Hi Adrian,

            Thank you very much for replying my message. I have read the topic you recommended. But it did not solve my problem.

            Plainly speaking, I want to send a BytesMessage with one mega bytes to and forth two queues and track the RTT(round trip time). The error messages are shown below. I changed the contents of MESSAGEBLOB here which is actually one mega bytes long.

            at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:745)
            at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:44)
            at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:145)
            at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:407)
            at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:383)
            at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:136)
            at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:162)
            at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:279)
            at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136)
            at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:249)
            at java.lang.Thread.run(Thread.java:536)
            Caused by: java.sql.SQLException: Serialization failure in statement [INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(2,'QUEUE.RequestQueue','aced00057a000004000202000c526571756573700000000000000000000000000000000',NULL,'A')]
            at org.hsqldb.Trace.getError(Unknown Source)
            at org.hsqldb.Result.(Unknown Source)
            at org.hsqldb.jdbcConnection.executeHSQL(Unknown Source)
            at org.hsqldb.jdbcConnection.execute(Unknown Source)
            at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
            at org.hsqldb.jdbcStatement.executeUpdate(Unknown Source)
            at org.hsqldb.jdbcPreparedStatement.executeUpdate(Unknown Source)
            at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:324)
            at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:783)
            at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:730)
            ... 10 more

            This error occurs only when I sent 1 MB BytesMessage, I have tested with 16K, 32K, 64K, 128K... and there are no problems.
            Any lucks to hear from you again?


            Best Regards
            Jianjia

            • 3. Re: message size

              Ask the hsqldb project why they can't serialize 1MB of data.
              Or try a db that can. You'll find configs for alternate dbs in docs/examples/jms

              Regards,
              Adrian

              • 4. Re: message size
                jianjia

                Thank you very much for your help. I will try to find some alternative solutions myself. Cheers.

                • 5. Re: message size
                  senaka

                  Hi,
                  Did u find the way to handle large message with JBOSS?

                  BR
                  Senaka

                  • 6. Re: message size
                    jianjia

                    Sorry, I haven't logged into this forum for a long time. I've tested oracle with openjms, and it can accept up to 10M message. You might change a db and see if it works. Hope this help.

                    Thanks
                    Jianjia

                    • 7. Re: message size
                      sheen

                      Hi Jianjia,

                      Any chance you were trying to get messages from the Oracle Queue into JBoss? Have you successfully implemented this between Oracle and JBoss using OpenJMS?
                      In a project I am involved with, we are trying to subscribe to an Oracle Advanced Queue from JBoss and there aren't any clear solutions to do that. If you have done this successfully would you please point me in the right direction with some useful tips and info/links.

                      Kind regards,
                      SB

                      • 8. Re: message size

                         

                        "Sheen" wrote:
                        please point me in the right direction with some useful tips and info/links.


                        "READ THIS FIRST" on how NOT to hijack somebody else's thread and also find the FAQ