I am new to JProfiler. I want to profile my code (.jar) which sits inside a war file. So I added classpath to my jar and filter to only classes in my jar in JProfiler. I have war application deployed in weblogic ManagedServer and I am starting startWebLogic_jprofiler.cmd (AdminServer) from JProfiler. After that I am starting NodeManager and ManagedServer.
But in Jprofiler 'MemoryViews' section I am not able to see my required classes when I run my application. Is it possible to profile the code in ManagedServer or Do I need to deploy my war in AdminServer itself ? or anything missing here.
Hi, it is a long time since I do not use jProfiler, however as far as I know it was a matter of changing some parameters for boot command. Typically this is done through jProfiler wizard however nothing is preventing you to it manually. This is my suggestion add the boot modifiers to the managedServer startup script.
These are the steps I would follow:
1) Have a look at the script jProfiler modified for you, and identify the lines, you may use a tool such us windiff.
2) Paste these lines in the managed server script, or just try to modify the setEnv.cmd or setWLSEnv.cmd at WLSHOME\server\bin with those lines.
Start, it should work. In case not, just send me more details about your env: OS, WLS version, and the scripts JPROFILER created for you, I will help...