tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tapestry > Hibernate Statistics
Date Wed, 29 Dec 2010 01:55:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/12/_/styles/combined.css?spaceKey=TAPESTRY&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/TAPESTRY/Hibernate+Statistics">Hibernate
Statistics</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~bobharner">Bob
Harner</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        Renamed from "Statistics" to "Hibernate Statistics"<br />
    </div>
        <br/>
                         <h4>Changes (0)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <div class='navmenu' style='float:right; background:#eee; margin:3px; padding:3px'><table
class="tableview" width="100%">
            <tr><th style="padding: 3px 3px 3px 0px">Related Articles</th></tr>
                        <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Hibernate Statistics"/>
                         <a href="/confluence/display/TAPESTRY/Hibernate+Statistics">Hibernate
Statistics</a>
        
                                            </td>
        </tr>
                <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Hibernate"/>
                         <a href="/confluence/display/TAPESTRY/Hibernate">Hibernate</a>
        
                                            </td>
        </tr>
                <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Hibernate - Core"/>
                         <a href="/confluence/display/TAPESTRY/Hibernate+-+Core">Hibernate
- Core</a>
        
                                            </td>
        </tr>
                <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Hibernate - Core - Conf"/>
                         <a href="/confluence/display/TAPESTRY/Hibernate+-+Core+-+Conf">Hibernate
- Core - Conf</a>
        
                                            </td>
        </tr>
                <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Using Tapestry With Hibernate"/>
                         <a href="/confluence/display/TAPESTRY/Using+Tapestry+With+Hibernate">Using
Tapestry With Hibernate</a>
        
                                            </td>
        </tr>
                <tr>
            <td>
                                 <img src="/confluence/s/1810/9/_/images/icons/docs_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Hibernate User Guide"/>
                         <a href="/confluence/display/TAPESTRY/Hibernate+User+Guide">Hibernate
User Guide</a>
        
                                            </td>
        </tr>
            </table>
</div>

<h1><a name="HibernateStatistics-HibernateStatistics"></a>Hibernate Statistics</h1>

<p>If you enable Hibernate statistics by setting the property <em>hibernate.generate_statistics</em>
to <em>true</em>, Hibernate will expose a number of useful metrics. The page "Statistics"
is used to expose these metrics. This page is only available in development mode.</p>


<p>!images/hibernate-statistics.png!Hibernate Statistics<br/>
!images/hibernate-statistics-2.png!Hibernate Statisticsh1. Hibernate Configuration to enable
the Statistics</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
&lt;!DOCTYPE hibernate-configuration PUBLIC
    <span class="code-quote">"-<span class="code-comment">//Hibernate/Hibernate
Configuration DTD//EN"</span>
</span>    <span class="code-quote">"http:<span class="code-comment">//hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"</span>&gt;
</span>    
&lt;hibernate-configuration&gt;

    ...

    &lt;property name=<span class="code-quote">"hibernate.generate_statistics"</span>&gt;<span
class="code-keyword">true</span>&lt;/property&gt;
    
  &lt;/session-factory&gt;

&lt;/hibernate-configuration&gt;</pre>
</div></div>

    </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/TAPESTRY/Hibernate+Statistics">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=23338472&revisedVersion=4&originalVersion=3">View
Changes</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message