openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > JConsole DataCache Plugin
Date Mon, 17 Jan 2011 19:10:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/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/JConsole+DataCache+Plugin">JConsole
DataCache Plugin</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~curtisr7@gmail.com">Rick
Curtis</a>
    </h4>
        <br/>
                         <h4>Changes (4)</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" ># Launch JConsole and provide the
openjpa-tools.jar via the -pluginpath switch. <br>{code} <br></td></tr>
            <tr><td class="diff-changed-lines" >&gt; [java_home]\bin\jconsole
-pluginpath <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">[path
to openjpa-tools.jar]</span> <span class="diff-added-words"style="background-color:
#dfd;">[path_to_openjpa-tools.jar]</span> <br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br># Select the PID
which corresponds to your application. <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">
<br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">!pid.jpg|<span
class="diff-added-chars"style="background-color: #dfd;">thum</span>b<span class="diff-added-chars"style="background-color:
#dfd;">nail,b</span>order=1!</span> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">#
If all goes well, at this point you should see a tab labeled DataCache-\[pu_name\]-\[n\] <br>
 !screen.jpg|thumbnail,border=1! <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="JConsoleDataCachePlugin-JConsoleDataCachePlugin"></a>JConsole
DataCache Plugin</h1>

<p>This plugin is used to extend the JConsole that is bundled as part of the <a href="http://download.oracle.com/javase/1.5.0/docs/guide/management/jconsole.html"
class="external-link" rel="nofollow">5.0 JDK</a>. </p>

<h3><a name="JConsoleDataCachePlugin-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/0.1.0-SNAPSHOT/"
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="JConsoleDataCachePlugin-JSEUsage"></a>JSE Usage</h3>

<blockquote><p>This description assumes your application is running the same machine
as the JConsole and you are running with an Oracle JVM (it will work on IBM, but you'll need
to do a little more work).</p></blockquote>

<ol>
	<li>Start an OpenJPA application with the following configuration properties set:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.DataCache"</span>
value=<span class="code-quote">"true"</span>/&gt;</span>
<span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.Instrumentation"</span>
value=<span class="code-quote">"jmx(Instrument='DataCache')"</span>/&gt;</span>
</pre>
</div></div></li>
	<li>Launch JConsole and provide the openjpa-tools.jar via the -pluginpath switch.
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
&gt; [java_home]\bin\jconsole -pluginpath [path_to_openjpa-tools.jar]
</pre>
</div></div></li>
	<li>Select the PID which corresponds to your application.<br/>
  <span class="image-wrap" style=""><a class="confluence-thumbnail-link 405x417"
href='https://cwiki.apache.org/confluence/download/attachments/25198814/pid.jpg'><img
src="/confluence/download/thumbnails/25198814/pid.jpg" style="border: 1px solid black" /></a></span></li>
	<li>If all goes well, at this point you should see a tab labeled DataCache-[pu_name]-[n]<br/>
  <span class="image-wrap" style=""><a class="confluence-thumbnail-link 902x750"
href='https://cwiki.apache.org/confluence/download/attachments/25198814/screen.jpg'><img
src="/confluence/download/thumbnails/25198814/screen.jpg" style="border: 1px solid black"
/></a></span></li>
</ol>

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

Mime
View raw message