JMH perfasm doesn't detect PrintAssembly output

Claes Redestad claes.redestad at oracle.com
Tue Jan 17 20:28:30 UTC 2017


Hi,

did you forget to add an appropriate disassembler plugin to your new
java install?

https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly [1]

-XX:+PrintAssembly will appear to be working without it, but will not
be outputting assembly in a format that JMH can use.

Hope this helps!

/Claes

[1] The binaries linked to from there should work for both OpenJDK and
Oracle JDK builds.

On 2017-01-17 21:10, Bartosz Skrzypczak wrote:
> 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