Eclipse Jetty 4.0

Questions about YourKit Java Profiler
Post Reply
adriaanjoubert
Posts: 3
Joined: Thu May 30, 2019 11:19 am

Eclipse Jetty 4.0

Post by adriaanjoubert »

Hi,

we are running web applications with Eclipse Jetty 4.0 from within eclipse. However there seems to be no way to launch these from the Profiler menu. Is there some way to enable this?

I did manage to launch the applications with the user agent, and could monitor the performance from the external profiler. It would just be more convenient to have this integrated in eclipse.

Thanks,

Adriaan
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Eclipse Jetty 4.0

Post by Anton Katilin »

Hello Adriaan

Have you installed YourKit Java Profiler plugin? Do you see corresponding "Profile" action near "Run" and "Debug" in the main menu?

With what action do you normally start Jetty from within Eclipse? Is it

What kind of run configuration is it?

What Eclipse bundle do you use?

Best regards,
Anton
adriaanjoubert
Posts: 3
Joined: Thu May 30, 2019 11:19 am

Re: Eclipse Jetty 4.0

Post by adriaanjoubert »

Hi Anton,

Yes, i installed the profiler plug-in and I see the profile button. After installing the Jetty 4.0.0 package, the Run and Debug configuration have a category for 'Jetty WebApp' (just after 'Java Application'). This does not appear in the Profiler button, so I cannot launch a jetty web container from there.

So is there any way to profile jetty containers from within Eclipse with YourKit?

Thanks!

Adriaan
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Eclipse Jetty 4.0

Post by Vladimir Kondratyev »

Dear Adriaan,

which exact Eclipse plug-in are you using for Jetty integration?

This one https://marketplace.eclipse.org/content/eclipse-jetty ?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
adriaanjoubert
Posts: 3
Joined: Thu May 30, 2019 11:19 am

Re: Eclipse Jetty 4.0

Post by adriaanjoubert »

Sorry, should have been more precise. Yes

https://marketplace.eclipse.org/content/eclipse-jetty

is the one we are using on eclipse 18.12. We are still running on JDK 8, but are in the process of upgrading to JDK 12.

I did manage to run it with the external tool, and yourkit has already helped me identify unexpected issues. However it would be convenient to be able to run straight from eclipse.

The ability to constrain CPU profiling to sub-sections is really useful.

Thanks,

Adriaan
Post Reply