Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

EventQueue starts dispatching events when Yourkit connects

Moderators: Vladimir Kondratyev, Anton Katilin

EventQueue starts dispatching events when Yourkit connects

Postby inpursuit » Wed Oct 07, 2015 3:58 pm

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.
Posts: 1
Joined: Wed Oct 07, 2015 3:52 pm

Re: EventQueue starts dispatching events when Yourkit connec

Postby Anton Katilin » Mon Oct 12, 2015 11:16 am


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:
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 Katilin
Posts: 5709
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 16 guests