Tuesday, October 31, 2017

java.lang.OutOfMemoryError: PermGen space

Error : java.lang.OutOfMemoryError: PermGen space

Solution : Have to increase PermSize of weblogic server

Procedure :

Weblogic Version : 10.3.6

1. go to $DOMAIN_HOME/bin

2. Here edit the file setDomainEnv.sh.

$vim setDomainEnv.sh

3. Here change the value of min and max PerSize as,

241 MEM_PERM_SIZE_64BIT="-XX:PermSize=512m"
242 export MEM_PERM_SIZE_64BIT
243
244 MEM_PERM_SIZE_32BIT="-XX:PermSize=48m"
245 export MEM_PERM_SIZE_32BIT
246
247 if [ "${JAVA_USE_64BIT}" = "true" ] ; then
248         MEM_PERM_SIZE="${MEM_PERM_SIZE_64BIT}"
249         export MEM_PERM_SIZE
250 else
251         MEM_PERM_SIZE="${MEM_PERM_SIZE_32BIT}"
252         export MEM_PERM_SIZE
253 fi
254
255 MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=1024m"
256 export MEM_MAX_PERM_SIZE_64BIT
257
258 MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=128m"


Line no. 241 for Min. PermSize and Line no. 255 for Max. PerSize.

No comments:

Post a Comment