Tip of the Week #2

Often developers face permgen and out of memory issues while running applications on integrated WLS. Most of the time the reason is low memory assigned to JVM for the JDeveloper IDE. On Windows platform to start JDeveloper with good memory setting you can create a launch script (a .cmd) file and use it to launch JDeveloper as explained here.

 set USER_MEM_ARGS=-Xms256m -Xmx1024m -XX:MaxPermSize=1024m -XX:CompileThreshold=8000
Please note that the launch script provided on the above link will only help in avoiding JDeveloper memory issues. If you face similar issues during the server start or deployment then you need to change the memory arguments in the setDomainEnv.cmd (located in DOMAIN_HOME\bin directory) as well. You need to change following parameters:

set MEM_ARGS_32BIT=-Xms32M -Xmx512M
set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=1024M

Here, Xms argument enforces the minimum memory heap size and Xmx indicates the maximum memory heap size. MaxPermSize parameter is for the things that do not change very often for example, java classes which are generated at the time of deployment. PermSize is separate from the memory heap size so permGen errors are not fixed if heap memory is increased. Some details on the general JVM properties can be found here.

Comments:

There is no setDomainEnv.cmd under the MW_HOME tree. As the name of the script indicates, it's domain specific and not server specific, so it is in the DOMAIN_HOME.

Posted by Shiv on April 26, 2013 at 08:32 PM PDT #

Thank you Shiv! You are right it was a typo which is fixed in the post.

Posted by Vik on April 30, 2013 at 07:15 PM PDT #

In my experience, USER_MEM_ARGS is honored by WLS. Did you try it? My setDomainEnv.cmd, admittedly not the Fusion Applications install of weblogic and also not Windows, explicitly handles the environment variable.

Posted by guest on May 04, 2013 at 04:54 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Follow us on twitter Fusion Applications Extensibility, Customizations and Integration forum Fusion Applications Dev Relations YouTube Channel
This blog offers news, tips and information for developers building extensions, customizations and integrations for Oracle Fusion Applications.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
4
5
6
8
11
12
13
15
16
18
19
20
22
23
24
25
26
27
28
29
30
   
       
Today