Showing posts with label Tomcat application server. Show all posts
Showing posts with label Tomcat application server. Show all posts

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





Tuesday, February 21, 2012

Jpofiler Configuration in Tomcat App server

Jprofiler Configuration for Jboss Application server
For profiling your application you required two Jprofiler softwares
1. Is for Agent (Agent sit in Application server for collecting the profiling counters which may be any Linux/Unix machines)
2. Is for Monitoring collecting data (which is having GUI and sits on any Windows machine)
Note: It is possible to monitor your application from one Jprofiler but we require
a. GUI for that Linux machine (Now day mostly all Unix/Linux are in CLI interface, so we just installing agent in Unix/Linux machines and monitoring from windows machine)
b. It is not recommended because Jprofiler uses Java flat form and your Application server require Java flat form then it is difficult to profile the application)
Agent Configuration:
Step 1: Open the following URL http://www.ej-technologies.com/download/jprofiler/files.html and download the suitable Jprofiler and Place this in your Unix/Linux machine (assume you placed this in /opt)
Or
Open the following URL http://www.ej-technologies.com/download/jprofiler/files.html and right click on suitable Jprofiler and select the “Copy link address”. Then open the server using putty (cd /opt) and enter the following command wget –c http://download.ej-technologies.com/jprofiler/jprofiler_linux_7_1.tar.gz (paste the copied link here)
Note: Use following commands in your putty session for finding suitable version
Cat /proc/*release
Step 2: If your file extension is tar.gz the do the following commands for extraction
gunzip filename
tar filename
Step 3: In Linux machine open .bash_profile file (usually located in /root directory)
Enter jprofiller location (using export command) in .bash_profile file
export JPROFILER_HOME =/opt/jprofiler6/bin/linux-x86
Step 4:Go Tomcat installation directory. Open catalena.sh file from bin folder
Enter the below details in catelana.sh file (only red color information and black color you can find by default in catalena.sh file)
export JPROFILER_HOME
JAVA_OPTS="-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -agentpath:/opt/Performance/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849"
Monitoring the Profiling Data from Windows machine :
Step 1: Install the Jprofiler in windows machine (agent version and this version should be same)
Step 2: From ‘Quick Start‘ Screen select “An application on a remote computer” option and click on next button
Step 3: From the Wizard select “On remote computer” and select which OS your app server /agent is running and click on next
Step 4: From JVM Vendor , version . Select which vendor JVM using , version and click on next
Step 5: Select “wait for a connection From the Jprofiler GUI”
Step 6: Start your jboss now from your putty
Preconditions:
1. JRE required
2. Jboss server need to Stop before configuring the agent
3. License key required in Windows environment (Agent does not required license key)