Friday, July 11, 2014

java.lang.OutOfMemoryError: Java heap space


Error :

####<may 25, 2014 1:10:30 AM EST> <Error> <Cluster> <oim_server1> <weblogic.cluster.MessageReceiver> <<WLS Kernel>> <> <918sada77f93c:63d5532424d3a:1468dadade87738f:-8000-000000000009811252> <140363242495050414> <BEA-003108> <Unicast receive error : java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space "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)


Cause :

Insufficient java heap set on the severs.

Solution :

1) Login to weblogic console


2) Click Lock and edit button


3) Click on Environment then server

4) Click on configuration then server start

5) Update the below values in  "Argument" as per the RAM size available on server or as per the requirement. 
    •  -XX:MaxPermSize=1024m -Xms4096m -Xmx1024m (1GB)
    •  -XX:MaxPermSize=2048m -Xms4096m -Xmx2048m (2GB)
    •  -XX:MaxPermSize=4096m -Xms4096m -Xmx4096m (4GB) 
6) Save and release the configuration 
7) stop the servers and delete the /tmp and /cache folder
8) Start the servers

Thank you!!

Arihant Baid

No comments:

Post a Comment