This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Performance and the fly likes hprof in weblogic 8? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "hprof in weblogic 8?" Watch "hprof in weblogic 8?" New topic
Author

hprof in weblogic 8?

Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Hello Everybody ,
I have been using hprof for short example programs and found it quite handy.
Can anyone tell me how to run hprof in weblogic 8 server and profile my web application?
Thanks in advance.

Brendon
Pierre-Hugues Charbonneau
Greenhorn

Joined: Feb 05, 2011
Posts: 9
Hi Brendon,

It depends of which Sun JVM 1.4 version you are using at runtime with your Weblogic 8.1 server.

HeapDump generation following an OutOfMemoryError (hprof format) was first added in JDK 1.4.2_12 and can be enabled by adding -XX:+HeapDumpOnOutOfMemoryError in your JVM start-up arguments.

Regards,
P-H


Regards,
P-H
http://javaeesupportpatterns.blogspot.com/
Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Hi Pierre-Hugues ,

But how is this startup argument added in weblogic8?

I am using myeclipse IDE is there a way to add that in the IDE?

Thanks
Brendon
Pierre-Hugues Charbonneau
Greenhorn

Joined: Feb 05, 2011
Posts: 9
Hi Brendon,

If you start Weblogic8.1 from MyEclipse then you will need to locate the section when you can add/modify JVM startup arguments.
-XX:+HeapDumpOnOutOfMemoryError should be added before or after the memory arguments such as Xms & Xmx.

If you cant figure out in Eclipse then you can still edit the Weblogic commEnv.cmd script from your Weblogic 8.1 binary installation and add the parameter from there.

This script file is located under:

<WL8 HOME>/weblogic81/common/bin/commEnv.cmd (for Windows)
<WL8 HOME>/weblogic81/common/bin/commEnv.sh (for UNIX)
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 860
Also try visualvm if you haven't tried it yet. Lots of great information in there to look at a running java app.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Klament J. Kruoghst
Ranch Hand

Joined: Oct 24, 2008
Posts: 35
This script file is located under:

<WL8 HOME>/weblogic81/common/bin/commEnv.cmd (for Windows)
<WL8 HOME>/weblogic81/common/bin/commEnv.sh (for UNIX)


I added -Xprof to the arg list in that file and restarted the server.
I log into the application and play around but I do not see any output in the console coming out.... ? what am I missing.

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: hprof in weblogic 8?
 
Similar Threads
EL and ? : construct
HPROF Profiler multiple class files & sin weblogic
Problem with OpenSSO webservice security in weblogic
Cleared SCJP 1.5 88%
Need help for Regular Expression