Eclipse frequent freezes with Build #56

Questions about YourKit Java Profiler
Locked
elecharny
Posts: 5
Joined: Wed May 16, 2007 8:54 am

Eclipse frequent freezes with Build #56

Post by elecharny »

Hi,

I tried to use the latest EAP (Build #56) on my Eclipse 2018-09 version (4.9), running with Java 8:

$ java -version
openjdk version "1.8.0_192"
OpenJDK Runtime Environment (Zulu 8.33.0.1-macosx) (build 1.8.0_192-b01)
OpenJDK 64-Bit Server VM (Zulu 8.33.0.1-macosx) (build 25.192-b01, mixed mode)

In eclipse, ite results in frequent UI freezes (a few seconds) when using the IDE, even when YourKit is not launched. Eclipse error logs show that such a thread is the only runnable :

Stack Trace
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at com.yourkit.c.l$1.run(a:31)
at java.lang.Thread.run(Thread.java:748)


If I uninstall the Yourkit plugin, the UI becomes responsive again.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Eclipse frequent freezes with Build #56

Post by Anton Katilin »

Hi,

We are not aware of this issue.

You're running on Azul Zulu JDK, YourKit does not support it. Please try running Eclipse on a regular (HotSpot) OpenJDK or Oracle JDK.

Best regards,
Anton
elecharny
Posts: 5
Joined: Wed May 16, 2007 8:54 am

Re: Eclipse frequent freezes with Build #56

Post by elecharny »

Actually, my bad. Eclipse is running using the default oracle 1.8.0_144 version, not the Azul JDK :

*** Date: Monday, November 19, 2018 at 2:36:49 PM Central European Standard Time

*** Platform Details:

*** System properties:

java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_144-b01
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.8
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.version=1.8.0_144
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.8
java.vm.vendor=Oracle Corporation
java.vm.version=25.144-b01
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Eclipse frequent freezes with Build #56

Post by Anton Katilin »

OK.
Eclipse error logs show that such a thread is the only runnable :

Stack Trace
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at com.yourkit.c.l$1.run(a:31)
at java.lang.Thread.run(Thread.java:748)
This is the plugin thread waiting for incoming commands from the profiler UI. It does not affect any other threads, and the method at the top is in waiting state, it does not consume CPU. Unless the plugin is processing a command (which is not the case) the plugin is idle. I have no idea at the moment how the plugin can cause the freezes.

Could you please provide the Eclipse logs in full. Please send them to [email protected]
elecharny
Posts: 5
Joined: Wed May 16, 2007 8:54 am

Re: Eclipse frequent freezes with Build #56

Post by elecharny »

Ok, I think it might be something different, like Eclipse reindexing everything now and then.

I suspect I jumped to conclusion after having installed YourKit and seeing those freezes, but it was a new version of Eclipse too and I may not have used it enough to have been hit by those freezes before using Yourkit.

After a bit of Eclipse config tuning, those freezes have somehow disapeared.

Sory for the noise, and thanks for the quick answer !
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Eclipse frequent freezes with Build #56

Post by Anton Katilin »

Thank you for posting the update.
Locked