Basically, we measure the number of records that are inserted into the database from the messages. This how we are measuring the performance of the queues. The messages are sent by a third party tool to our JMS.
But I think the issue is how explain that the server is becoming idle at some point i.e. CPU at 0% even if there are still some messages in the queues.