问题
I am trying to connect Jprofiler7 to remote weblogic10.3 managed servers. I am able to connect and see admin console threads and memory usage in JProfiler but not for application deployed on managed server.
How can i achieve this?
Thanks
回答1:
I had the same problem with WebLogic 12C on windows with JProfiler9 and solved it as follows:
- Allow JProfiler to create startWebLogic_jprofiler.cmd by profiling WebLogic 12C, but don't attach the profiler at this point.
- Edit startManagedWebLogic.cmd and call startWebLogic_jprofiler.cmd rather than startWebLogic.cmd
- At a command prompt execute startWebLogic.cmd
- At a command prompt execute startManagedWebLogic.cmd
- In JProfiler, click "Start Center" icon. Click "New Server Integration". Select "Generic application server" and then "Wait for a connection from the JProfiler GUI". When the profiler starts it collects data from the managed weblogic server.
回答2:
You're profiling the wrong server in that case. The VM parameter for JProfiler (-agentpath:...) has to be added to the JVM on which your application is executed.
来源:https://stackoverflow.com/questions/16017004/how-can-i-connect-jprofiler-with-weblogic-managed-servers