JMH perfasm doesn't detect PrintAssembly output

Bartosz Skrzypczak barteks2x at gmail.com
Tue Jan 17 20:10:32 UTC 2017


Hello,

I'm trying to use JMH perfasm option on linux. I was able to
successfully use it a few months ago, but since that time I updated
several packages, including java, and switched to oracle JVM. Now I
can't get perfasm working at all. I confirmed that PrintAssembly JVM
option works, but I'm still getting the following error:

ERROR: No address lines detected in assembly capture, make sure your
JDK is PrintAssembly-enabled:
    https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly

with mostly useless profiling results.

In case it makes a difference, my java version is:

java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

I don't have any idea what could possibly cause this. What am I doing wrong?


Best regards,
Bartosz Skrzypczak


More information about the jmh-dev mailing list