We've been trying to insert 100K messages to MQ but insertion drastically slowed down when queue depth reached 30K+. At first we tried using hsqldb, then switched to postgresql but the performance didn't improve. We tried to insert directly to the tables(using java/jdbc), there was no problem in insertion speed(7seconds per 10K records).
What could we do to improve the speed and performance of the MQ's? Any suggestions?
What is your JVM memory use? Look at the MessageCache setings.
It could be that JBoss is paging those messages to disk.