Tuesday, November 19, 2013

Jboss monitoring using SIS (Integrating Site Scope with JBoss)

Below are the prerequisite configuration which required to setup the Jboss application server monitors

Step 1) check Jboss is running

Step 2) Add the below lines in “$JBOSS_HOME/bin”

On Windows: run.conf.bat 

set JAVA_OPTS="%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false"

set JAVA_OPTS="%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false"

set JAVA_OPTS="%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=portNo"

set JAVA_OPTS="%JAVA_OPTS% -Djboss.platform.mbeanserver"

Counterpart for “run.conf.bat” on UNIX is “run.conf”

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port= portNo "

#JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"

Step 3) Re-strat the server

Step 4) Check the:-service:jmx:rmi:///jndi/rmi://host:port/jmxrmi

(Make sure that there, no space are there b\w the url) in jconsole

Step 5) follow the basic steps use and use JMX monitor

Step 6) paste:-service:jmx:rmi:///jndi/rmi://host:port/jmxrmi

Step 7) get the counters and select whichever u need

The above configuration can be used to setup the monitor for Tomcat

Enable Connection Pool :

need to deploy the xxxx-ds.xml file in to the jboss/server/default/deploy folder. You will get the sample xxxxxx-ds.xml files from the docs/examples/jca direcoty, that is coming along with the jboss build. To create oracle connection pool, you have to deploy the oracle-ds.xml (name doe's not mean much) in the jboss/server/default/deploy directory. (or in the instance which one you are using).

 
    OracleDS
    jdbc oracle:thin:@youroraclehost:1521:yoursid
    oracle.jdbc.driver.OracleDriver
    x
    y
    org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
 


Note:We will not be able to monitor Connection pool using any SIS below 11.2.SIS 11.2 comes with a patch which helps up to retrieve Connection pool from Jboss