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:35: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 (3)</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-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">#
Configuration</span> <span class="diff-added-words"style="background-color: #dfd;">*
[Configuration]</span> <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-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">#
Statistics</span> <span class="diff-added-words"style="background-color: #dfd;">*
[Statistics</span> Collecting and <span class="diff-changed-words">Monitoring<span
class="diff-added-chars"style="background-color: #dfd;">]</span></span> <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-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">#
Configuration removal</span> <span class="diff-added-words"style="background-color:
#dfd;">* [Configuration removal]</span> <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><a href="/confluence/pages/createpage.action?spaceKey=openjpa&amp;title=Configuration&amp;linkCreation=true&amp;fromPageId=29131113"
class="createlink">Configuration</a><br/>
  Append the path of openjpa-fetch-statistics-version-SNAPSHOT.jar file to the classpath prior
to lanuching the JVM.</li>
	<li><a href="/confluence/pages/createpage.action?spaceKey=openjpa&amp;title=Statistics+Collecting+and+Monitoring&amp;linkCreation=true&amp;fromPageId=29131113"
class="createlink">Statistics Collecting and Monitoring</a><br/>
  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.</li>
	<li><a href="/confluence/pages/createpage.action?spaceKey=openjpa&amp;title=Configuration+removal&amp;linkCreation=true&amp;fromPageId=29131113"
class="createlink">Configuration removal</a><br/>
  Stop the JVM.<br/>
  Remove openjpa-fetch-statistics-version-SNAPSHOT.jar from the classpath.</li>
</ul>



<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=6&originalVersion=5">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