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 20:28: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 (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >h1. JConsole DataCache Plugin <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" >This plugin is used to extend
the JConsole that is bundled as part of the <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">[5.0</span>
<span class="diff-added-words"style="background-color: #dfd;">[1.5</span> JDK|http://download.oracle.com/javase/1.5.0/docs/guide/management/jconsole.html].
<br></td></tr>
            <tr><td class="diff-unchanged" > <br>h3. Download <br></td></tr>
            <tr><td class="diff-snipped" >...<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">1.5 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 on same
machine as JConsole and application JVM matches the JConsole JVM.</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>


<h3><a name="JConsoleDataCachePlugin-JEEUsage"></a>JEE Usage</h3>
<p>// In progress
<a href="http://wasdynacache.blogspot.com/2010/03/getting-jconsole-working-with-websphere.html"
class="external-link" rel="nofollow">http://wasdynacache.blogspot.com/2010/03/getting-jconsole-working-with-websphere.html</a></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/JConsole+DataCache+Plugin">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=25198814&revisedVersion=6&originalVersion=5">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