YAJSW

Questions about YourKit Java Profiler
Post Reply
ehubbard
Posts: 1
Joined: Thu Jun 04, 2015 5:42 pm

YAJSW

Post by ehubbard »

I'm having a real pain getting YAJSW to pass in the agentpath parameters to the jvm so that I can use the nice attach mode. Has anyone had any experience in this situation before?

wrapper.java.additional.5=-agentpath:c:\\yjp....

The service keeps restarting itself -- so it must be failing to load the agent -- but I don't know.. .why...
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YAJSW

Post by Anton Katilin »

Do you get any error messages in console or in the YAJSW logs?

Are the profiler agent logs created in <user home>/.yjp/log?

I'm not familiar with YAJSW, but are you sure that the right way to escape the back slash is to double it?

wrapper.java.additional.5=-agentpath:c:\\yjp....

You may always change \ to / which presumably does not need to be escaped.

Please also pay attention at possible space characters in the agent path. If there are, please copy the plugin to a directory without space characters in its path.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YAJSW

Post by Anton Katilin »

Please also ensure you've properly chosen 32 or 64-bit agent, according to the JVM bitness.
Post Reply