|
It seemed to be just a UI issue. However, after clicking "Start" button again (as recommended by me) Matthew still experiences the problem: Example from visualvm: Hello Java World! Whereas if I run the same trace script via the command line, I get: Hello Java World! DEBUG: registering shutdown hook
So this is not a UI-only issue and I'm getting no error flags to tell me where Will be happy to test it again, or do any type of debug runs. Though you instructed me how to turn on all the debugging output on the command line version of btrace (which is working great for me!) I don't know how to turn on any debug information for visualvm. Let me know and we can add more detail to this easily reproducible bug. The problem was that the plugin tried to connect to the target VM while the agent not being initialized completely. The plugin failed silently and corrupted the rest of the UI (never-ending progressbar etc.).
Also, logging was added that can be activated by adding -J-Dnet.java.btrace.visualvm.level=FINEST as a parameter when launching visualvm. Thank you for such quick work on this. I've tested the latest 0.2.2 plugin and I get different behavior, but it still doesn't trace. I've made a video so you can see everything that is going on. I used the -J-Dnet.java.btrace.visualvm.level=FINEST option, but I don't get any console output from Btrace. Mac OS X 10.5.7 Attaching video file. This is a video of 0.2.2 still failing, but this time with no progress indicator on the VisualVM window (previously was getting stuck infinitely saying it was starting the tracing). Could you try to uninstall and install the BTrace plugin? I had the same behavior in my development environment and I was able to fix it by simple uninstall/install. I thought it was because of my userdir polluted with a lot of testing stuff so I wasn't bothered by that too much Could you verify that this trick would work for you? The uninstall and reinstall did the trick. I had to do it on both the "Mac JDK" provided version of JVisualVM as well as my standalone downloaded VisualVM 1.1.1. The NFJS audience in Salt Lake City this weekend will love this! Thank you! And I'll have to tell my Austin NFJS crew from last weekend that it works now. I'll put up a blog post about it tonight or tomorrow at http://ambientideas.com/blog/ thanks gentlemen! I have been typically been showing off the command-line tools on the mac for this reason. I'll be speaking at JavaZone in Oslo... they will get the treat of seeing it from the UI as well. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BTrace locked-up in VisualVM