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

c. Start the WebLogic server<br />

Figure 2.29: Editing the startWebLogic.cmd file<br />

10. <strong>The</strong> <strong>eG</strong> agent executes a JdbcStatsTest on the WebLogic server to report key metrics pertaining<br />

to the JDBC connections to the server. In order to extract the JDBC-specific measures from the<br />

WebLogic server, <strong>eG</strong> uses a free-ware named P6Spy. Follow the steps given below to configure<br />

P6Spy for the WebLogic server 6.1.<br />

a. <strong>The</strong> \lib directory (in Unix, this will be /opt/egurkha/lib) contains a file named<br />

p6spy.jar. Copy this jar file to the directory \wlserver6.1\lib\ext directory, where<br />

is the directory in which BEA WebLogic is installed.<br />

b. Similarly, copy the spy.properties file in the /lib directory (in Unix, this will be<br />

/opt/egurkha/lib), to \wlserver6.1\config\. Here, is the<br />

domain name specified during the BEA WebLogic install.<br />

c. Modify the realdriver line in the spy.properties file to reflect your wrapped database driver. An<br />

example of a modified realdriver line follows:<br />

realdriver=weblogic.jdbc.oci.Driver<br />

Path and name of the log file that will store the GC<br />

output. If the specified file does not exist in the location,<br />

WebLogic will create a new file with the specified name.<br />

d. In a Windows installation of WebLogic, add ;.\lib\ext\p6spy.jar;.\config\\ to the<br />

classpath in the startWebLogic.cmd file , which resides in<br />

\wlserver6.1\config\.<br />

e. In a Unix installation of WebLogic, add :./lib/ext/p6spy.jar:./config/ to the classpath in<br />

the startWebLogic.sh file, which resides in the /wlserver6.1/config/. Do not<br />

include any trailing spaces after the new line. This adds p6spy.jar and spy.properties to the<br />

classpath.<br />

f. Modify WebLogic Server to use the P6Spy driver. Either modify config.xml (which resides in<br />

\wlserver6.1\config\) directly or complete the following steps:<br />

82<br />

Entry for redirecting the<br />

GC output

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

Saved successfully!

Ooh no, something went wrong!