[EAP V4,MacOS X] profiler does not listen on port xx

Questions about YourKit Java Profiler
Post Reply
cyrill
Posts: 3
Joined: Thu Jan 06, 2005 9:14 pm

[EAP V4,MacOS X] profiler does not listen on port xx

Post by cyrill »

If I start an application:

Code: Select all

java -jar OOVisio.jar -Xrunyjpagent:alloc,dir=/tmp,onexit=memory,port=8090
I can not see with netstat that there is something listen on that port (neither the YourKit Profiler Client can connect to that port). There is also no sample dump in the temp directory.

I assume (after reading the help), that I can profile every application with YourKit. Profiling an application in code (samples directory) with the YourKit API is optional.


MacOS X 10.3.7, Java 1.4.2 Update2, Version 4 build 502


Regards,

Cyrill
cyrill
Posts: 3
Joined: Thu Jan 06, 2005 9:14 pm

Post by cyrill »

Hi,

I know now the reason:

Code: Select all

java -jar OOVisio.jar -Xrunyjpagent:onexit=memory,dir=/tmp/snapshot
ignores the Xrun.. argument, but

Code: Select all

java -Xrunyjpagent:onexit=memory,dir=/tmp/snapshot -jar OOVisio.jar
does not ignore it. The memory snapshot will be saved and the client is listenting on the default port ... but does not recognize that an already running application listen on that port and the client can not bind to that port - no exception!

Regards,

Cyrill
Vladimir Kondratyev
Posts: 1625
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

java -jar OOVisio.jar -Xrunyjpagent:alloc,dir=/tmp,onexit=memory,port=8090
Of course, -Xrunyjp.... is treated as parameters of your program and not as Java parameters.[/quote]
Post Reply