It's in the JMX Console.
I got all 0s from all the entity beans from JMX console. I clicked the print buttom from the Jmx console and still got all 0s. Am I missing something?
If you are invoking printLockMonitor and the values for Total Lock Time, Num Contentions, and Time Outs are 0, then I would not think that to be a problem necessarily.
What exactly is it you are trying to see?
Maybe you're looking for this:
It's from an article on JBoss optimizations -- the relevant part is Bill Burke's comment at the end of user comments:
For locking, JBoss has a lock monitor that monitors how many locks per EJB were made, how many contentions, how much time was lost, the max amount of contentions at one time, etc....
Look in jboss/server/(all or default)/conf/jboss-service.xml for:
<!-- Uncomment to enable JMX monitoring of the entity bean locking
P.S. THis is documented in our FOR PAY docs.