# OQL Console

Use to write, execute, and save queries that are used to locate information from the Java heap. The OQL Console is a tab in the Heap window that is available when you load a snapshot of the heap.

Element | Description
--- | ---
Query Results | Displays the results of the OQL query. Click the result to examine the details of the object in the Heap window.
Query Editor | Enables you to write and edit OQL queries. When you open a Saved Query, the query is also displayed in this pane. You can save custom queries that you might want to run again.
Saved Queries | Displays saved sample OQL queries that are included with the IDE. To run a sample query, select the query in the list and click Open to open the query and then click Execute in the Query Editor pane. You can select a saved query and click Properties to view additional details about the query.

You can use any of the sample OQL queries or create a query to filter and select heap data to locate the information that you want from the Java heap. After you choose or write a query, you can run the query against the Java heap and view the results.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.