Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

m
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
----
 +
 +
 +
'''[[Image:Elug_draft_icon.png|Warning]] This page is now obsolete. '''
 +
 +
For current information, please see "Query Monitoring" in the ''EclipseLink Concepts Guide'':
 +
http://www.eclipse.org/eclipselink/documentation/latest/concepts/monitoring004.htm
 +
 +
 +
----
 +
 +
 
{{EclipseLink_UserGuide
 
{{EclipseLink_UserGuide
 
|info=y
 
|info=y
Line 8: Line 20:
 
* [http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/tools/profiler/QueryMonitor.html QueryMonitor]
 
* [http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/tools/profiler/QueryMonitor.html QueryMonitor]
 
}}
 
}}
 +
 
=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>.
 +
* 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]].
 
For more information about querying, see [[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Querying]].

Latest revision as of 07:43, 17 April 2013



Warning This page is now obsolete.

For current information, please see "Query Monitoring" in the EclipseLink Concepts Guide: http://www.eclipse.org/eclipselink/documentation/latest/concepts/monitoring004.htm




EclipseLink JPA

Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug 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...

Back to the top