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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Installing and Configuring on Unix<br />

i. Start WebLogic Server by running startWebLogic.cmd.<br />

ii. Start the Administration Console tool by navigating to http:/ :7501/console.<br />

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

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

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

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

commercePool, dataSyncPool, and wlcsRealm) by completing the following steps:<br />

i. Using the Administration Console, navigate to the -> Security -><br />

Realms node.<br />

ii. Select the security realm.<br />

iii. Click the Database tab.<br />

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

g. Using the Administration Console, shut down the WebLogic Server. Right-click on the<br />

-> Servers -> node and select Stop this Server from the<br />

pop-up menu.<br />

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

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

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

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

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

specific to the requirements of <strong>eG</strong> Enterprise). 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<br />

example, 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 />

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

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

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

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

exists in the \lib directory into the appropriate location of the application<br />

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

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

argument to the JdbcStatsTest. <strong>The</strong> agent appends /egurkha/JdbcStatsTest.jsp to the URL<br />

prefix and uses this check for database statistics.<br />

k. To minimize the overhead of the JDBC monitoring, <strong>eG</strong> Enterprise 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<br />

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

diagnosis for the JdbcStatsTest.<br />

83

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

Saved successfully!

Ooh no, something went wrong!