13.3. Dumping Profiling Data to Disk from a Batch Process

The profiling capability can be used to create profiling
exports. Exported profiling data is stored in files ending
with the .prx suffix. To view exported
profiling data, use the profilingviewer
command, e.g. profilingviewer myexport.prx.
To enable automatic export of profiling data, set the
following properties (see
Section 2.6.54, “kodo.Profiling”):

JPA XML format:

<property name="kodo.Profiling" value="export"/>

JDO properties format:

kodo.Profiling: export

When exporting, the Profiling value
takes the following optional parameters:

IntervalMillis: The number
of milliseconds between exports (defaults to -1, indicating
that there will be a single export upon exit).

Basename: The basename of the
exported data file to create.

UniqueNames: A boolean that indicates
whether or not the exported data file name should have the
systems current time in milliseconds included as part of the
name in order to make it unique.

For example, in order to export data every five minutes with a
basename of MyExport set the
kodo.Profiling property to: