openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] OpenJPA > JConsole DataCache Plugin
Date Mon, 17 Jan 2011 20:28:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2036/9/5/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true"
<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="">JConsole
DataCache Plugin</a></h2>
    <h4>Page <b>edited</b> by             <a href="">Rick
                         <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>
            <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|].
            <tr><td class="diff-unchanged" > <br>h3. Download <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    </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=""
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=""
class="external-link" rel="nofollow">SNAPSHOT Repository</a> or can be built from
the source code in <a href="" 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>

	<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>
	<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]
	<li>Select the PID which corresponds to your application.<br/>
  <span class="image-wrap" style=""><a class="confluence-thumbnail-link 405x417"
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"
src="/confluence/download/thumbnails/25198814/screen.jpg" style="border: 1px solid black"

<h3><a name="JConsoleDataCachePlugin-JEEUsage"></a>JEE Usage</h3>
<p>// In progress
<a href=""
class="external-link" rel="nofollow"></a></p>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
        <a href="">View
        <a href="">View
        <a href=";showCommentArea=true#addcomment">Add

View raw message