Archive

Archive for November 23rd, 2008

jmap: UnmappedAddressException

November 23rd, 2008

Exception in thread “main” sun.jvm.hotspot.debugger.UnmappedAddressException

Googling didn’t help much, so in case anyone else is looking for solution to this problem: my case was that I was running the java process using 1.6 and running jmap of java 1.5.

Bitten by Debian java alternatives once again…

$ readlink -f $(which jmap)

The above command is your friend when checking what version you are using. To set the version explicitly to 1.6:

$ update-alternatives –set jmap /usr/lib/jvm/java-6-sun/bin/jmap

$ update-alternatives –set jhat /usr/lib/jvm/java-6-sun/bin/jhat

tips ,