Categories
|
BSD
VisualVM ProfilerProducts: IntelliJ IDEA, Android Studio Vendor: Esko Luontola Email: Website: http://plugins.intellij.net/plugin/?id=3749 SourceCode: visualvm4idea_3749.zip Description:
Launches VisualVM's Java profiler from within IDEA. VisualVM is based on NetBeans Profiler and is bundled
with JDK 6 Update 7 and above. VisualVM may also be downloaded for free from https://visualvm.dev.java.net/
Recent change notes:1.0.0 (2008-12-08)
0.4.2 (2008-11-26)
0.4.1 (2008-11-24)
0.4.0 (2008-11-24)
0.3.0 (2008-11-12)
0.2.0 (2008-11-09)
0.1.0 (2008-11-06)
Known issues
Future plans
General usage instructions:If you have JDK 6 Update 7 or higher configured in IDEA:1. Click the "Profile CPU" button (next to the "Run" and "Debug" buttons) to begin profiling. Otherwise you need to install VisualVM separately: 1. Download VisualVM 1.0.1 from https://visualvm.dev.java.net/download.html 2. Install it to "C:/Program Files/visualvm" 3. Configure the plugin (Settings | VisualVM) by pointing it to "C:/Program Files/visualvm" 4. Click the "Profile CPU" button (next to the "Run" and "Debug" buttons) to begin profiling. |
||||||||||||||||||||||||||||
Comments:
This plugin is not being maintained, but the source code is open at https://github.com/orfjackal/visualvm4idea so anybody is free to modify it and take over its maintenance (I would be happy to give upload access to the plugin repository).
No response from VisualVM, request was: [PROFILE_CPU, 674030631, 5140, true, com.intellij.rt.execution.junit.JUnitStarter, EXCLUDE, java.*, javax.*,
sun.*, sunw.*, com.sun.*]: No response from VisualVM, request was: [PROFILE_CPU, 674030631, 5140, true, com.intellij.rt.execution.junit.JUnitStarter, EXCLUDE, java.*, javax.*,
sun.*, sunw.*, com.sun.*]
java.lang.RuntimeException: No response from VisualVM, request was: [PROFILE_CPU, 674030631, 5140, true, com.intellij.rt.execution.junit.JUnitStarter, EXCLUDE, java.*, javax.*,
sun.*, sunw.*, com.sun.*]
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.runCommand(VisualVmCommandSender.java:101)
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.beginProfilingApplicationCPU(VisualVmCommandSender.java:74)
at net.orfjackal.visualvm4idea.plugin.CpuProfilerRunner.onProcessStarted(CpuProfilerRunner.java:89)
at net.orfjackal.visualvm4idea.plugin.DefaultJavaProgramRunnerWrapper.doExecute(DefaultJavaProgramRunnerWrapper.java:75)
at net.orfjackal.visualvm4idea.plugin.CpuProfilerRunner.doExecute(CpuProfilerRunner.java:83)
at com.intellij.execution.runners.GenericProgramRunner$1.run(GenericProgramRunner.java:79)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:57)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.runCommand(VisualVmCommandSender.java:92)
... 17 more
I am getting following error after clicking "Profile Memory"--
Unable to find profiler agent for JDK16 using ExternalVisualVm10Config[visualVmHome=C:\Program Files\Java\jdk1.6.0_13\lib\visualvm,systemVars=net.orfjackal.visualvm4idea.plugin.config.WindowsSystemVars@53c41ef8]: Unable to find profiler agent for JDK16 using ExternalVisualVm10Config[visualVmHome=C:\Program Files\Java\jdk1.6.0_13\lib\visualvm,systemVars=net.orfjackal.visualvm4idea.plugin.config.WindowsSystemVars@53c41ef8]
java.lang.IllegalArgumentException: Unable to find profiler agent for JDK16 using ExternalVisualVm10Config[visualVmHome=C:\Program Files\Java\jdk1.6.0_13\lib\visualvm,systemVars=net.orfjackal.visualvm4idea.plugin.config.WindowsSystemVars@53c41ef8]
at net.orfjackal.visualvm4idea.plugin.config.AbstractVisualVmConfig.getAppProfilerAgent(AbstractVisualVmConfig.java:71)
at net.orfjackal.visualvm4idea.plugin.server.VisualVmUtil.getAppProfilerCommand(VisualVmUtil.java:69)
at net.orfjackal.visualvm4idea.plugin.MemoryProfilerRunner.patch(MemoryProfilerRunner.java:78)
at net.orfjackal.visualvm4idea.plugin.DefaultJavaProgramRunnerWrapper.doExecute(DefaultJavaProgramRunnerWrapper.java:60)
at net.orfjackal.visualvm4idea.plugin.MemoryProfilerRunner.doExecute(MemoryProfilerRunner.java:83)
at com.intellij.execution.runners.GenericProgramRunner$1.run(GenericProgramRunner.java:79)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
No response from VisualVM, request was: [...]
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.runCommand(VisualVmCommandSender.java:100)
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.beginProfilingApplicationCPU(VisualVmCommandSender.java:73)
at net.orfjackal.visualvm4idea.plugin.CpuProfilerRunner.onProcessStarted(CpuProfilerRunner.java:76)
at com.intellij.execution.runners.RunStrategyImpl.a(RunStrategyImpl.java:40)
at com.intellij.execution.runners.RunStrategyImpl.access$200(RunStrategyImpl.java:27)
at com.intellij.execution.runners.RunStrategyImpl$3.run(RunStrategyImpl.java:4)
at com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:16)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:4)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:39)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:208)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:214)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at net.orfjackal.visualvm4idea.plugin.server.VisualVmCommandSender.runCommand(VisualVmCommandSender.java:91)
... 18 more
Looks nice though
java.lang.NullPointerException
at net.orfjackal.visualvm4idea.util.StringUtil.splitCommaSeparated(StringUtil.java:45)
at net.orfjackal.visualvm4idea.visualvm.CpuSettings.toProfilingSettings(CpuSettings.java:78)
at net.orfjackal.visualvm4idea.core.commands.ProfileCpuCommand$1.run(ProfileCpuCommand.java:89)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)