Can't debug javax.management.NotificationListener code

In my application I monitor memory usage with java.lang.management.MemoryMXBean and java.lang.management.MemoryPoolMXBean (similarly to http://www.javaspecialists.co.za/archive/newsletter.do?issue=092&locale=en_US).

I set javax.management.NotificationListener to MemoryMXBean - to be informed when memory usage exceeds a threshold limit. The problem is when this listener invokes a method having some breakpoints inside - neither of them ever works for me, i.e debugger never stops on any of them. So I can't debug NotificationListener code ..

1 comment
Comment actions Permalink

Have you found any way to debug NotificationListener classes?

0

Please sign in to leave a comment.