File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Jprofiler with Weblogic Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Jprofiler with Weblogic Issue" Watch "Jprofiler with Weblogic Issue" New topic

Jprofiler with Weblogic Issue

sri bal

Joined: Nov 05, 2010
Posts: 3

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.

Please help me regarding this. Thanks in Advance.

Pedro Botero

Joined: Nov 07, 2010
Posts: 4
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...

I agree. Here's the link:
subject: Jprofiler with Weblogic Issue
It's not a secret anymore!