EventQueue starts dispatching events when Yourkit connects

Questions about YourKit Java Profiler
Post Reply
inpursuit
Posts: 1
Joined: Wed Oct 07, 2015 3:52 pm

EventQueue starts dispatching events when Yourkit connects

Post by inpursuit »

I have an ongoing issue with some software where periodically the EventQueue seems to stop dispatching events. For example, I have a javax.swing.Timer set to fire every 100ms and it fires pretty regularly initially but at some point stops firing for up to 60seconds. I've tried using YourKit to figure out what is going on with the EventQueue during the time when events are not being dispatched, but as soon as I connect the profiler the EventQueue starts firing events again. Also, if I connect the profiler on startup of the application I can't seem to ever replicate the problem.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: EventQueue starts dispatching events when Yourkit connec

Post by Anton Katilin »

Hi,

As I understood, the problem with the event queue happens without the profiler and does not happen when its agent is loaded, either from start or by attaching to a running JVM, right?

The only part of the profiler that may interfere with the queue is the built-in probe AWTEvents:
https://www.yourkit.com/docs/java/help/awtevents.jsp
It should be safe, but there may be a (yet unknown) side effect.

To check this, could you please disable the probe by specifying the startup option "probe_disable=.AWTEvents":
https://www.yourkit.com/docs/java/help/ ... ptions.jsp

Best regards,
Anton
Post Reply