Unable to profile Application built on Eclipse 3.0x

Questions about YourKit Java Profiler
Post Reply
splu
Posts: 2
Joined: Tue Jul 19, 2005 7:57 pm

Unable to profile Application built on Eclipse 3.0x

Post by splu »

I'm trying to profile an old application which was built on Eclipse 3.0x
(2004_0916), and get the following error.

(Moving to Java 5.0 is not an option.)

[YourKit Java Profiler 4.0.14] Using JVMPI
[YourKit Java Profiler 4.0.14] *** HINT ***: we recommend using Java 5.0 and JVMTI when possible!
[YourKit Java Profiler 4.0.14] Listening on port 2163...
Error querying the registry:The system cannot find the file specified.

I can the port is open and listening, but cannot connect from the YJP application.

Let me know if you need more info (where can i find the log files if any?).

Thanks.
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Let me know if you need more info (where can i find the log files if any?)
1) What does profiler UI say when it cannot connect?
2) Profiler's logs are in ~/.yjp/log directory. Please send them to [email protected]
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Also, could you please specify:
- the exact Java version used to run the profiled application
- the exact Eclipse version
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

By the way, does the application work without profiling, i.e. when you use Run action from Eclipse?

I didn't manage to find the text "Error querying the registry" in the source code of the profiler, nor in the source code of Java 1.4.2. So most likely this is printed from your application.
splu
Posts: 2
Joined: Tue Jul 19, 2005 7:57 pm

Post by splu »

The text "Error querying .." is coming from my application. And the application does work without profiling when launched from Eclipse.

I'm using the following Java and Eclipse levels:

java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

IDE:
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435

The IDE is used to launch another Eclipse based application which runs on an older Eclipse level:

Eclipse Platform
Version: 3.0.1.1
Build id: 200410121820

I backed-up the logs and tried to connect again. The log files did not show any errors:
2005-07-20 09:50:52.230 INFO com.yourkit.Main0 : ---------------------------------------------------------------------

2005-07-20 09:50:52.230 INFO com.yourkit.Main0 : Starting application. Build #564; build on Thu Jun 16 19:48:00 EDT 20
05

And YourKit shows a dialog saying "No application beign profiled found."

Note: I have been able to successfully profile with Yourkit before with a different Eclipse and target app. Though, I still consider myself a newbie.

Thanks in advance for your help.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Could you please try the latest EAP build (http://www.yourkit.com/eap-download )?
Post Reply