Solved

weblogic : memory out of error

Posted on 2009-07-01
5
2,439 Views
Last Modified: 2013-12-10
Hi,
  I am using weblogic 9.2 sp2 in solaris 10, i am trying to deploy a war using admin console, i am getting a error, " java.lang.outofMemoryError "

Following actions were taken
1. increased  folowing param values in setDomainEnv.sh file
maxPermSize and MEM_ARG.

But all went in vain and the error remains as it is.
Can anyone provide me anyother solution to rectify this problem.
also,
       1. how can we set the limit for maxPermSize and MEM_ARG param? and what is the maximum value i can set for that?
       2. Does it relates to my system RAM? if so my system ram size is 16 GB, and what can be the max and min limit for those 2 parameters?

<Jul 1, 2009 10:24:33 AM AST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'webtop' due to error weblogic.management.DeploymentException: [Deployer:149233]An unexpected error was encountered during the deployment process..weblogic.management.DeploymentException: [Deployer:149233]An unexpected error was encountered during the deployment process.

        at weblogic.deploy.internal.targetserver.DeployHelper.handleException(DeployHelper.java:395)

        at weblogic.deploy.internal.targetserver.DeployHelper.convertThrowable(DeployHelper.java:168)

        at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:152)

        at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)

        at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)

        Truncated. see log file for complete stacktrace

java.lang.OutOfMemoryError

        at java.util.zip.ZipFile.open(Native Method)

        at java.util.zip.ZipFile.<init>(ZipFile.java:203)

        at java.util.jar.JarFile.<init>(JarFile.java:132)

        at java.util.jar.JarFile.<init>(JarFile.java:97)

        at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)

        Truncated. see log file for complete stacktrace

Open in new window

0
Comment
Question by:radhnki
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 24754945
Can you post the following?

1. What is the memory size you have set
2. R u using Sun JVM or JRockit?
3. Is PROD_MODE=true set in setDomainEnv.sh?


You can add  -XX:MaxPermSize=128m near your -Xms and -Xmx arguments.
0
 

Author Comment

by:radhnki
ID: 24760434
Hi,
      Thanks for the info,
following are the inputs in my seDomainEnv.sh,

1. I am using Sun JVM
2. Production mode is not true. No value has been set,

MEM_ARGS="-Xms512m -Xmx2048m"\par

-XX:PermSize=1024m
 -XX:MaxPermSize=1024

-Rk

0
 
LVL 10

Accepted Solution

by:
rajesh_bala earned 500 total points
ID: 24760512
Why is the perm size set to so high value?.

can you try these values?

MEM_ARGS=" -XX:MaxPermSize=128m -Xms1024m -Xmx1536m"

also ensure to search for PROD_MODE in setDomainEnv.sh and set it to

PROD_MODE=true.

Save it and run it again.
0
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 24785426
Did you get a chance to try this?
0
 

Author Closing Comment

by:radhnki
ID: 31598714
We did fine tuning of weblogic along with your comments. It helped to resolve issue
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now