Tuesday, 18 August 2015

Increase memory of the Weblogic Server

Requirement: By default the default Weblogic Server get installed while installing the JDeveloper. The memory associated is very low. So when we deploy big application for few times without restarting the server, it show memory not sufficient problem. So, here in this post, I will show how  we will increase the memory so that we can deploy the application without memory issues for several time based on the memory available. Hence, it will give us the ability to deploy more number of times without restarting the server, and hence it will improve the performance as well.

Solution: To increase the memory follow the below steps as shown below:

Step 1: Locate the setDomainEnv.cmd file in the below location:
        C:\Users\susanto\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\bin

Step 2: Open the setDomainEnv.cmd file and paste the below line of code to increase the memory, just after the comment line:
    set USER_MEM_ARGS=-Xms512m -Xmx2048m -XX:MaxPermSize=1024m






Step 3: Locate the ide.conf file in the below location:
    C:\Oracle\Middleware\Oracle_Home_New\jdeveloper\ide\bin
    Now change the values of AddVMOption  -Xms and AddVMOption  -Xmx to
        AddVMOption  -Xms1024M
        AddVMOption  -Xmx2048M
 
  
Step 4: Close and open JDeveloper to run the application.

The memory assigned is displayed in JDeveloper's console each time the embedded weblogic starts.



Thanks & Regards,
Susanto Paul