Weblogic - Installation

> (Weblogic|Fusion Middelware|FMW)

1 - Memory Allocation

The Java Virtual Machine (JVM) that runs needs to be able to store certain pieces of information within the permanent generation while it is running.

If the Managed Server is started:

1.1 - via script

In \user_projects\domains\<Domain_Name>\bin\setDomainEnv.cmd:

@REM Update the initial permanent generation size from 48m to 128m
set MEM_PERM_SIZE_32BIT=-XX:PermSize=128m

@REM Update the maximum permanent generation size from 128m to 256m:
set MEM_MAX_PERM_SIZE_32_BIT=-XX:MaxPermSize=256m
Advertising

1.2 - via Node Manager

  • Go to WebLogic Console > Environment > Servers > Managed_Server > Configuration tab > Server Start tab
  • And change the Arguments text section, add the following:
-Xms1024m -Xmx1024m -XX:MaxPermSize=256m

2 - Support

2.1 - java.lang.OutOfMemoryError: PermGen space

In the domain.log file, you may encounter this error message when you try to deploy:

java.lang.OutOfMemoryError: PermGen space
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

See Error when creating WebLogic deployment: "ExecuteRequest failed java.lang.OutOfMemoryError: PermGen space."

weblogic/installation.txt · Last modified: 2012/01/16 16:36 by gerardnico