openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Fetching Statistics
Date Tue, 10 Jul 2012 15:51:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/5/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/openjpa/Fetching+Statistics">Fetching
Statistics</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~helenxu">Helen
Xu</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <p>Open JPA Fetch Statistics Tool monitors persistent field access and determines
which fields are never used. This tool<br/>
can be used to help tune an application. </p>

<p>Note: Open JPA Fetching Statistics Tool works with the runtime enhancement.</p>

<p>Usage instructions: </p>

<p>1.] Configuration</p>
<ul>
	<li>Append the path of openjpa-fetch-statistics-version-SNAPSHOT.jar file to the classpath
prior to lanuching the JVM.</li>
</ul>


<p>2.] Statistics Collecting and Monitoring     </p>
<ul>
	<li>When this tool is configured, it will be active for all persistence units in the
JVM. Statistics will be dumped via the<br/>
  openjpa.Runtime channel with the INFO level every 10 minutes, or when the JVM terminates.
Any field that is logged <br/>
  has not been accessed by an application.</li>
</ul>


<p>3.] Configuration removal</p>
<ul>
	<li>Stop the JVM.</li>
	<li>Remove openjpa-fetch-statistics-version-SNAPSHOT.jar from the classpath.</li>
</ul>


<p>Performance Consideration</p>

<p>There will be a large performance impact when running this tooling. It is not supported,
nor recommended for production<br/>
use. This tool should not be used on a production machine.</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/openjpa/Fetching+Statistics">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/openjpa/Fetching+Statistics?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message