06.05.2013 Views

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Installing and Configuring on Unix<br />

Navigate to the -> Services -> JDBC -> Connection Pools<br />

node and set the Driver Classname for each Connection Pool to<br />

com.p6spy.engine.spy.P6SpyDriver.<br />

If using RDBMS Security Realm, configure P6Spy to monitor your realms (in<br />

this example, commercePool, dataSyncPool, and wlcsRealm) by completing<br />

the following steps:<br />

• Using the Administration Console, navigate to the -><br />

Security -> Realms node.<br />

• Select the security realm.<br />

• Click the Database tab.<br />

• Set the Driver parameter to com.p6spy.engine.spy.P6SpyDriver.<br />

• Using the Administration Console, shut down the WebLogic Server.<br />

Right-click on the -> Servers -> node<br />

and select Stop this Server from the pop-up menu.<br />

• Restart WebLogic Portal by running startWebLogic.cmd.<br />

<strong>The</strong> JdbcStatsTest can be applied to other application servers as well. When doing so, refer to<br />

the p6spy home page (http://www.p6spy.com/) to determine how to setup p6spy to interoperate<br />

with the application server being considered (Note that the <strong>eG</strong> Enterprise suite uses a<br />

version of p6spy that is augmented with database monitoring and reporting capabilities<br />

specific to the requirements of the <strong>eG</strong> Enterprise suite). When configuring p6spy for an<br />

application server, note that the location of the properties file -<br />

spy.properties - can be specified by defining the environment variable "p6.home". For example,<br />

if the spy.properties file is in the directory /opt/egurkha/lib, this<br />

can be indicated to the application server by using the java argument<br />

-Dp6.home=/opt/egurkha/lib i.e.,<br />

java -Dp6.home=/opt/egurkha/lib .... <br />

<strong>The</strong> <strong>eG</strong> Enterprise suite uses a JSP page hosted on the application server to<br />

extract measurements by interfacing with the p6spy driver configured in the previous step.<br />

For WebLogic servers, this JSP is a part of the egurkha.war application that is configured for the<br />

WebLogic server. For other servers, copy the file JdbcStatsTest.jsp that exists in the<br />

\lib directory into the appropriate location of the application server, so that<br />

the JSP can be accessed via HTTP/HTTPS from the <strong>eG</strong> agent. <strong>The</strong> prefix of the URL that the<br />

agent must access to collect database related statistics is specified as an argument to the<br />

JdbcStatsTest. <strong>The</strong> agent appends /egurkha/JdbcStatsTest.jsp to the URL prefix and uses this<br />

check for database statistics.<br />

To minimize the overhead of the JDBC monitoring, the <strong>eG</strong> Enterprise suite can be<br />

configured to only consider database queries that take more than a pre-defined threshold<br />

period to execute. <strong>The</strong> variable executionThreshold in the spy.properties file<br />

denotes the threshold value of the query processing time in milliseconds. If a query takes less<br />

than this value, it is not considered for reporting by the <strong>eG</strong> agent as detailed diagnosis for the<br />

JdbcStatsTest.<br />

104

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!