Getting forked JVM details on the server side.

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Dec 15 08:11:23 UTC 2014


Hi Vladimir,

On 12/14/2014 02:19 AM, Vladimir Ozerov wrote:
> I'm trying to implement perfasm counterpart for Windows which employs
> "xperf" utility.

Great!

> While actual profiler implementation is trivial and requires only minor
> changes comparing to LinuxPerfAsmProfiler, there is an infrastructure
> problem - I need pid of the spawned fork. Reason for this - xperf cannot
> log events for particular process, it logs events for all of them, so I
> need pid to filter out unnecessary events.

Getting PID in a cross-platform manner is hard in Java, I think. Current
perfasm code avoids this by calling the forked JVM under perf, maybe
xperf can do the same? I can see "-pidnewprocess" in the docs.

> What do you think about making a change to BinaryLinkClient, so that method
> "requestOptions()" will also send information about it's environment to the
> server? I.e. it will be not "requestOptions", but a kind of handshake where
> both participants share some information with each other?

Sure, hack it together, let's see what happens.

-Aleksey.



More information about the jmh-dev mailing list