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.7.41, “kodo.ManagementConfiguration”):
JPA XML format:
<property name="kodo.ManagementConfiguration" value="profiling-export"/>
JDO properties format:
kodo.ManagementConfiguration: profiling-export
When exporting, the ManagementConfiguration
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.ManagementConfiguration
property to:
profiling-export(IntervalMillis=300000,Basename="MyExport")
![]() ![]() |