openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Fetch Statistics
Date Tue, 10 Jul 2012 16:36: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/Fetch+Statistics">Fetch
Statistics</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~helenxu">Helen
Xu</a>
    </h4>
        <br/>
                         <h4>Changes (8)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >h3. Usage <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >* <span class="diff-changed-words"><span
class="diff-added-chars"style="background-color: #dfd;">h5.</span>Configuration</span>
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br></td></tr>
            <tr><td class="diff-unchanged" >  Append the path of openjpa-fetch-statistics-version-SNAPSHOT.jar
file to the classpath prior to lanuching the JVM. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br></td></tr>
            <tr><td class="diff-changed-lines" >* <span class="diff-changed-words"><span
class="diff-added-chars"style="background-color: #dfd;">h5.</span>Statistics</span>
Collecting and Monitoring <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br></td></tr>
            <tr><td class="diff-unchanged" >  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 EAGER field that is logged  <br>  has not been accessed by an application. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br></td></tr>
            <tr><td class="diff-changed-lines" >* <span class="diff-changed-words"><span
class="diff-added-chars"style="background-color: #dfd;">h5.</span>Configuration</span>
removal <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br></td></tr>
            <tr><td class="diff-unchanged" >  Stop the JVM. <br>  Remove
openjpa-fetch-statistics-version-SNAPSHOT.jar from the classpath. <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="FetchStatistics-FetchStatistics"></a>Fetch Statistics</h1>

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

<h3><a name="FetchStatistics-Download"></a>Download</h3>

<p>The latest OpenJPA Tools JAR file can be download from the <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/tools/openjpa-tools"
class="external-link" rel="nofollow">SNAPSHOT Repository</a> or can be built from
the source code in <a href="https://svn.apache.org/repos/asf/openjpa/tools/trunk" class="external-link"
rel="nofollow">svn</a> by using Maven 2.2.1 and Java SE 6.</p>

<h3><a name="FetchStatistics-Usage"></a>Usage</h3>

<ul>
	<li><h5><a name="FetchStatistics-Configuration"></a>Configuration</h5></li>
</ul>


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

<ul>
	<li><h5><a name="FetchStatistics-StatisticsCollectingandMonitoring"></a>Statistics
Collecting and Monitoring</h5></li>
</ul>


<p>  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 EAGER field that is logged <br/>
  has not been accessed by an application.</p>

<ul>
	<li><h5><a name="FetchStatistics-Configurationremoval"></a>Configuration
removal</h5></li>
</ul>


<p>  Stop the JVM.<br/>
  Remove openjpa-fetch-statistics-version-SNAPSHOT.jar from the classpath.</p>


<h3><a name="FetchStatistics-PerformanceConsideration"></a>Performance Consideration</h3>

<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/Fetch+Statistics">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=29131113&revisedVersion=8&originalVersion=7">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/openjpa/Fetch+Statistics?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message