Live Scores
Sport Statistics
Movie Stars
Programming
Multimedia
Mobile
Database
Enterprise
in
BEA WebLogic
Application Servers
(Entire Site)
HeapDumps in Weblogic 8.1
Hi,
We have an application deployed on Weblogic 8.1 (Sun JDK 1.4.2_19). We are facing OutOfMemory errors frequently when a particular application functionality is used.
Based on the information on the internet, I have enabled the HeapDump by configuring the -XX:+HeapDumpOnOutOfMemory
Error JVM flag for the particular server (server1) in Config.xml.
But I am not getting HeapDump generated anywhere in the server folders (log file locations).
We are running weblogic servers as windows services.
Can any one in EE help me out on
1) Actual configuration needed to properly generate the HeapDump
2) How to analyze the HeapDumps (Any tools available)
3) Does running Weblogic as windows services gives problems in this case?
4) Is there any way to generate the HeapDump on demand?
Thanks in advance.
Regards
Rishi
Solution: HeapDumps in Weblogic 8.1
Answer.....
1) Yes.
2) It is enough
3) When the server getting out of memory it should debug to server log file like this.
java.lang.OutOfMemoryError
: Java heap space
Dumping heap to java_pid4332.hprof ...
By default, the file would be generated in the folder that you starting script startWebLogicServer.cmd
If you cann't get that file. You need to make sure that your parameter is passed to startup script correctly.
Try to find server log file. As I remember it should be located in domains\YourDomain\logs\Yo
urServer\s
erver1.log
maybe.
In this file, take a look for something like this
java -Xms96m -Xmx256m -Xverify:none -Dweblogic.Name= -Dweblogic.management.user
name= -Dweblogic.management.pass
word= -Dweblogic.ProductionModeE
nabled= -Djava.security.policy="C:
\bea\weblo
gic815\ser
ver\lib\we
blogic.pol
icy" -XX:+HeapDumpOnOutOfMemory
Error weblogic.Server
and make sure that -XX:+HeapDumpOnOutOfMemory
Error is out there.
Hope this help,
Sompol
Popular Tags
Tags:
10
10.0
8.1
9.2
apache http/tomcat
bea
BEA Weblogic
cannot
classpath
cluster
connection
context
ejb
failed
how
Java
jsp
memory
open
oracle
password
portal
server
struts
timeout
transaction
weblogic
Weblogic Server
Weblogic server 8.x/9.x/10.x
Browse All Tags