LatencyUtils / jRT

jRT measures the response time of a java application to socket-based requests
Other
48 stars 11 forks source link

issue #9 fix. Tested on macos/java 1.8.0_92 #10

Open eostermueller opened 8 years ago

eostermueller commented 8 years ago

Hi,

I saw the note on the README.md about adding tools.jar to the classpath, But that didn't fix this error for me. I had to add it to the bootclasspath -- and also the following code in Attachmain.java was returning null:

clazz.getProtectionDomain().getCodeSource()

...so this patch adds an alternate way of locating the path of the Agent's jar file. Let me know if you've got any questions, thanks for such a nice little utility. --Erik