Monday, May 7, 2012

How to configure Heap size in Web logic app server


How to configure Heap size in Web sphere app server

We can change WAS heap size in two ways
1. GUI
2. Command Prompt

GUI:

To set the JVM heap size:

1. Start the WebSphere Application Server administrative console.
2. Navigate to Servers > Application servers > server1 > Java and Process Management > Process Definition > Java Virtual Machine. server1 is the name of the server where you are deploying InfoSphere™ Master Content.
3.Set the initial and maximum heap sizes:

                   Initial Heap Size:
            Maximum Heap Size:
  Note: By default these values are in MB

Non GUI:


1. Navi gate to IBM_HOME\WebSphere\AppServer\profiles\AppSrv01\config\cells\server.xml

2. Then look for the “jvmEntries” xml element that could look like this:

<jvmEntries xmi:id=”JavaVirtualMachine_1183122130078″ verboseModeClass=”false” verboseModeGarbageCollection=”false” verboseModeJNI=”false” initialHeapSize=”512″ runHProf=”false” debugMode=”false” debugArgs=”-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777″ disableJIT=”false”>
3. Change the initialHeapSize and maximumHeapSize

How to configure Heap size in Tomcat app server


How to configure Heap size in Jboss app server

For running JAVA applications in Jboss application server , need to specify the min and max memory for that Application server this sizing is called Heap size.

run.conf  contains min and Max heap size. This file is located in bin folder of JBOSS i.e.   JBOSS_HOME/bin

Thursday, May 3, 2012

JVM Heap Sizes max Limit for Windows and Linux/Unix.

For running JAVA code, We need JVM. Typically We can set the JVM sizes in Application servers. This JVM size is also called Heap Size.

JVM heap size Configuration file:

     File_Name          Location            Server_Name    OS_Name    64/32 Bit Processor     Heap Sise_Max
    -------------------------------------------------------------------------------------------------------
     run.conf         JBOSS_HOME/bin          JBOSS      Windows                32                           1.4G to 1.6G
     run.conf         JBOSS_HOME/bin          JBOSS      Windows                64                              3G


       run.conf         JBOSS_HOME/bin          JBOSS      Sun Solaris             32                              2G
      run.conf         JBOSS_HOME/bin          JBOSS      Sun Solaris             64                              4G



       run.conf         JBOSS_HOME/bin          JBOSS     Unix/Linux               32                              2G
      run.conf         JBOSS_HOME/bin          JBOSS     Unix/Linux               64                              4G

------------------------------------------------------------------------------------------------------------------------------
catalena.sh    TOMCAT_HOME/bin    TOMCAT      Windows                32                           1.4G to 1.6G
catalena.sh    TOMCAT_HOME/bin    TOMCAT      Windows                64                              3G


catalena.sh    TOMCAT_HOME/bin    TOMCAT     Sun Solaris             32                              2G
catalena.sh    TOMCAT_HOME/bin    TOMCAT     Sun Solaris             64                              4G



catalena.sh    TOMCAT_HOME/bin    TOMCAT      Unix/Linux             32                              2G
catalena.sh    TOMCAT_HOME/bin    TOMCAT      Unix/Linux             64                              4G
-----------------------------------------------------------------------------------------------------
server.xml     See below note1                   Web Sphere              Windows                   32                           1.4G to 1.6G

server.xml     See below note1                 Web Spher            Windows             64                             3G
server.xml    See below note1                   Web Sphere      Sun Solaris            32                              2G
server.xml    See below note1                   Web Sphere      Sun Solaris            64                              4G
server.xml See below note1                   Web Sphere    Unix/Linux    32               2GB                        
server.xml See below note1                   Web Sphere    Unix/Linux    64               4G

Note:
For Web Sphere Location is in Command Prompt:
<TWS_home>/appserver/profiles/twsprofile/config/cells/
DefaultNode/nodes/DefaultNode/servers/server1/server.xml
For Web Sphere Location is in UI : Application servers > server1 > Java and Process Management > Process Definition >Java Virtual Machine