Thursday, 30 July 2015

JVM Configuration

JVM Configuration
---------------------

1. Preferences.txt file changes for Jboss5.1.xEAP
Navigate to <SYSTEMI_ROOT>/SYSTEMi/setup and open Preferences.txt file
Edit the server option to 4

2. Config and key file changes for Jboss5.1.xEAP
Navigate to the location <SYSTEMI_ROOT>/ SYSTEMi /Systemi/Config and open the config.client.xml in notepad
Remove localhost entries in the 2nd and 3rd line of the config file and add one more additional slash

Before Modification:

<?xml version="1.0" encoding="UTF-8"?>
!DOCTYPE MODULE SYSTEM "file://localhost//opt/ITGRC/SYSTEMi/Systemi/Doc/Module.dtd" [
  <!ENTITY license SYSTEM "file://localhost//opt/ITGRC/SYSTEMi/Systemi/keys/MetricStream_license.xml">


After Modification:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MODULE SYSTEM "file:////opt//ITGRC//SYSTEMi//Systemi//Doc//Module.dtd" [
  <!ENTITY license SYSTEM "file:////opt//ITGRC//SYSTEMi//Systemi//keys//MetricStream_license.xml">

3. Search for the property ENTITY jndi_orb_wrapper and update as below :
Before Modification:

<!ENTITY jndi_orb_wrapper "">

After Modification:
<!ENTITY jndi_orb_wrapper "com.metricstream.systemi.ext.jndi.WLJndiOrbWrapperImpl”>

4. SQL and Non SQL agent port changes for Jboss5.1.xEAP
Navigate to the location <SYSTEMI_ROOT>/SYSTEMi/Systemi/Config and open the config.client.xml in notepad
Search for agent port
SQL channel should be pointed to sqlagentport
Non SQL channel should be pointed to nonsqlagentport

Before Modification

<COMPONENT NAME="SQL channel" ORDER="310" CLASS="com.metricstream.systemi.server.channel.HTTPImpl">
        <PROPERTIES>
          <PROPERTY NAME="Server">no</PROPERTY>
          <PROPERTY NAME="AgentHostPort">&nonsqlagentport;</PROPERTY>
        </PROPERTIES>
      </COMPONENT>
      <COMPONENT NAME="Non SQL channel" ORDER="320" CLASS="com.metricstream.systemi.server.channel.HTTPImpl">
        <PROPERTIES>
          <PROPERTY NAME="Server">no</PROPERTY>
          <PROPERTY NAME="AgentHostPort">&nonsqlagentport;</PROPERTY>
        </PROPERTIES>
      </COMPONENT>


After Modification


<COMPONENT NAME="SQL channel" ORDER="310" CLASS="com.metricstream.systemi.server.channel.HTTPImpl">
        <PROPERTIES>
          <PROPERTY NAME="Server">no</PROPERTY>
          <PROPERTY NAME="AgentHostPort">&sqlagentport;</PROPERTY>
        </PROPERTIES>
      </COMPONENT>
      <COMPONENT NAME="Non SQL channel" ORDER="320" CLASS="com.metricstream.systemi.server.channel.HTTPImpl">
        <PROPERTIES>
          <PROPERTY NAME="Server">no</PROPERTY>
          <PROPERTY NAME="AgentHostPort">&nonsqlagentport;</PROPERTY>
        </PROPERTIES>
      </COMPONENT>


5. Update  DBURL in client.config.xml file

Example:
<PROPERTY NAME="DBURL">jdbc:oracle:thin:@msi-vmqaismdb:1521:db11gr2</PROPERTY>

6. MetricStream_license.xml file change for Jboss5.1.xEAP:

Navigate to location <SYSTEMI_ROOT>/SYSTEMi/Systemi/keys/MetricStream_license.xml
Remove local host and add one more additional slash

Before Modification:

<SIGNATURE NAME="MetricSign" ISSUER="MetricStream, Inc." METHOD="DSA-1"       PUBLIC_KEY="file://localhost/&key_root;/keys/MetricStream_key.pub">302c02143ec4afd57a9a53a1ae1edfded9e1a0191c883cf70214078f91efda0c9708bea71a6287bd4826117b14fa
</SIGNATURE>


After Modification:

<SIGNATURE NAME="MetricSign" ISSUER="MetricStream, Inc." METHOD="DSA-1" PUBLIC_KEY="file:////&key_root;//keys//MetricStream_key.pub">302d0215008bb2aaddf94cb5c352448f591ec63280843e010e02140587bfc795720ad130f92fd6216ddbcca918eac1
</SIGNATURE>

7. run.sh file changes Jboss5.1.xEAP

Navigate to location <Installation Directory>/Jboss/jboss-eap-5.1/jboss-as/bin
Search for < CONF_SPECIFIED=false>

Add the below command in single line providing the application path details as below:

Before Modification:

# Set conf if specified, else set to default

JBOSSCONF="default"
CONF_SPECIFIED=false


After Modification:
# Set conf if specified, else set to default
JBOSSCONF="default"
CONF_SPECIFIED=false


JAVA_OPTS="-Xms<your system recommended minimum RAM size> -Xmx<Your system recommended max RAM size> -XX:MaxPermSize=256m -Xss128k -XX:NewSize=128m -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -Dsun.rmi.dgc.client.gcInterval=3600000 -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0 -Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.se.internal.corba.ORBSingleton -Dorg.omg.CORBA.ORBClass=com.sun.corba.se.internal.Interceptors.PIORB -DMETRICSTREAM.HOME=/opt/SYSTEM_ROOT/SYSTEMi/Systemi -DMETRICSTREAM.CONFIG=/opt/SYSTEM_ROOT/SYSTEMi/Systemi/Config/config.client.xml -Xdebug -Dfile.encoding=UTF-8 -Xrunjdwp:transport=dt_socket,address=8199,server=y,suspend=n -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime -Xloggc:/opt/SYSTEM_ROOT/SYSTEMi/Systemi/log/GC.log -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=1234 -XX:+UseFastAccessorMethods -Xrs"



8. AJP Port Changes

Navigate to location /Installation dir/Jboss/jboss-eap-5.1/jboss-as/server/default/deploy/jbossweb.sar/server.xml
Copy the Jboss AJP 1.3 Connector on port <Ex:8009>
Navigate to <SYSTEMI_ROOT>/SYSTEMi/Tomcat/conf/workers.properties
Enter the copied AJP port under  the tag  < worker.worker1.port >

Before Modification:

# Properties of worker1.
worker.worker1.port= 8202

After Modification:

# Properties of worker1.
worker.worker1.port=8009


9. Execute the below command after making any new change:

killall -9 java
Location:/Installation Directory/Jboss/jboss/Eap 5.1/jboss -as/bin

No comments:

Post a Comment