Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Query Monitoring"

m
Line 10: Line 10:
 
=Query Monitoring=
 
=Query Monitoring=
  
Use the Query Monitor to measure query executions and cache hits. This can be useful for performance analysis in a complex system. Enable this monitor using the System property <tt>"org.eclipse.persistence.querymonitor=true"</tt> or by setting the <tt>persistence.xml</tt> property <tt>eclipselink.profiler=QueryMonitor</tt>. It dumps the number of query cache hits and executions (misses) once every 100 seconds.  
+
Use the Query Monitor to measure query executions and cache hits. This can be useful for performance analysis in a complex system.  
 +
 
 +
Enable the Query Monitor in either of these ways:
 +
 
 +
* Set the System property <tt>org.eclipse.persistence.querymonitor=true</tt>.
 +
* Set the <tt>persistence.xml</tt> property <tt>eclipselink.profiler=QueryMonitor</tt>.  
 +
 
 +
The monitor dumps the number of query cache hits and executions (misses) once every 100 seconds.  
  
 
For more information about querying, see [[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Querying]].
 
For more information about querying, see [[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Querying]].

Revision as of 15:10, 28 January 2011

EclipseLink JPA

link="http://wiki.eclipse.org/EclipseLink"
EclipseLink
Website
Download
Community
Mailing ListForumsIRC
Bugzilla
Open
Help Wanted
Bug Day
Contribute
Browse Source

Elug api package icon.png Key API

Query Monitoring

Use the Query Monitor to measure query executions and cache hits. This can be useful for performance analysis in a complex system.

Enable the Query Monitor in either of these ways:

  • Set the System property org.eclipse.persistence.querymonitor=true.
  • Set the persistence.xml property eclipselink.profiler=QueryMonitor.

The monitor dumps the number of query cache hits and executions (misses) once every 100 seconds.

For more information about querying, see Querying.

Eclipselink-logo.gif
Version: 2.2.0 DRAFT
Other versions...