Jump to: navigation, search

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

(New page: ==Query Monitoring==)
 
m
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Query Monitoring==
+
{{EclipseLink_UserGuide
 +
|info=y
 +
|toc=n
 +
|eclipselink=y
 +
|eclipselinktype=JPA
 +
|api=y
 +
|apis=
 +
* [http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/tools/profiler/QueryMonitor.html QueryMonitor]
 +
}}
 +
 
 +
=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 <tt>org.eclipse.persistence.querymonitor=true</tt>.
 +
* In <tt>persistence.xml</tt>, set <tt><property name="eclipselink.profiler" value="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]].
 +
 
 +
{{EclipseLink_JPA
 +
|previous=[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Performance Monitoring|Performance Monitoring]] 
 +
|next    =[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving|Weaving]]
 +
|up      =[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling|Performance Monitoring and Profiling]]
 +
|version=2.2.0 DRAFT}}

Revision as of 11:16, 21 February 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.
  • In persistence.xml, set <property name="eclipselink.profiler" value="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...