-
1. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
stephanenicoll Jul 19, 2004 3:43 AM (in response to lokman)Your tests seems interesting. I just have one question: if you use non persistent messages, why are you considering databases?
Regards,
Stephane -
2. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
lokman Jul 19, 2004 3:54 AM (in response to lokman)I consider a database for the PersistenceManager because JBossMQ (a la JBoss 3.2.3) uses one regardless of whether the messages sent are persistent or not.
If the messages in the MessageCache consume too much memory, then messages are passivated into the PersistenceManager, even if they were sent as non-persistent.
In my tests, while using MySQL I could frequently see that messages are inserted and deleted into the database. Also, the MDB invoker uses "java:/XAConnectionFactory" to connect to JMS, so there is a matter of transaction information that is always saved in JMS_TRANSACTIONS.
Lior -
3. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
stephanenicoll Jul 19, 2004 4:10 AM (in response to lokman)Ah ok, I didn't knew.
Thanks,
Stephane -
4. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
genman Jul 19, 2004 4:05 PM (in response to lokman)
You can use a PersistenceManager that doesn't persist anything.
org/jboss/mq/pm/none/PersistenceManager.java
You will also get better throughput if you use less threads, or the same amount of threads as you have processors. -
5. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
lokman Jul 20, 2004 4:40 AM (in response to lokman)"genman" wrote:
You can use a PersistenceManager that doesn't persist anything.
org/jboss/mq/pm/none/PersistenceManager.java
This means that if the stress level is high enough, I can lose messages. That's not my purpose - I don't want to lose messages - I also don't care to save messages between server restarts.
You will also get better throughput if you use less threads, or the same amount of threads as you have processors.
The whole point in the MDB idea is that you have a pool of consumers on the queue. Using less threads means less consumers and should mean worse performance, not better performance.
Thanks,
Lior -
6. Re: MDBs incur a tremendous overhead (JBoss 3.2.3)
stephanenicoll Jul 20, 2004 4:50 AM (in response to lokman)"lokman" wrote:
The whole point in the MDB idea is that you have a pool of consumers on the queue. Using less threads means less consumers and should mean worse performance, not better performance.
Provided that your consumers will not run into some concurrency issues (while processing messages)
Regards,
Stephane