12 October 2010

Increasing the memory of embedded weblogic

Be default embedded weblogic (this is the weblogic that comes with the JDeveloper installation) uses 512MB only, which for a really big application is enough for 2-3 deployments without restarting server (this are deployments that are performed by JDeveloper in the background each time we run our Fusion application). Moreover, its a waste to have so much memory in nowadays workastations without using it. So, this will give us the ability to have more redeployments without server restart, and do test something faster.

The only thing you need to do is to the add the following line in setDomainEnv.cmd file right after the comments in the beginning:

set USER_MEM_ARGS=-Xms64m -Xmx1024m -XX:MaxPermSize=512m

in the above example I am setting it to have 1024 and 512 perm.

setDomainEnv.cmd is located in a different folder that the previous release of JDev:
C:\Documents and Settings\user\
Application Data\JDeveloper\system11.\DefaultDomain\bin 
(in this example is windows user app data folder. )

Actually the system dir is displayed in JDeveloper's console each time the embedded weblogic starts.

Setting mem config is changed in the new WLS 10.3.1. and in the embedded WLS of JDevelper (actually this is the same thing). In the previous ver it was setted like this.

No comments:

Post a Comment

You might also like:

Related Posts Plugin for WordPress, Blogger...
There was an error in this gadget