Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM launcher error

I'm trying to use the Eclipse VisualVM launcher. It seems pretty nice, except that it seems to spawn an instance if VisualVM too late to do any profiling of my application. My application finishes execution before the profiler is even initialized; once it starts up, an error window pops up, saying: cannot open requested application. It then shows VM running Eclipse (labeled "org.eclipse.equinox.launcher.Main"). How can I get it to wait for my application and do proper profiling?

like image 638
Nate Glenn Avatar asked Aug 09 '12 21:08

Nate Glenn


1 Answers

This is probably too late, but I had the same problem, and setting a breakpoint and then starting in debugging mode didn't help at all. I eventually found out that VisualVM saves its temporary data in the folder %TMP%/hsperfdata_[username], on my Windows machine that folder was C:\Users\Jacob\AppData\Local\Temp\hsperfdata_Jacob for instance. It turned out that the process did not have sufficient permissions to access that folder, so I relaxed the permissions on it and now it works just fine. Hope this is useful for someone having the same problem!

like image 52
avlund Avatar answered Oct 21 '22 23:10

avlund