+

Search Tips   |   Advanced Search

Enable automatic generation of Profiles statistics files

We can enable or disable automatic generation of Profiles statistics files. By default, automatic generation is enabled.

Usage statistics are stored in memory and saved to the file system during Profiles shutdown. The statistics are saved to the location configured in the statistics.filePath and statistics.fileName files. The statistics logged depend on the Profiles capabilities that are enabled. For example, if you disable the full report-to chain cache, you do not see statistics listed for that capability.

  1. Check out the Profiles configuration files:

    To determine cellname:print AdminControl.getCell()

  2. Edit profiles-config.xml

    Scroll to task StatsCollectorTask in the <scheduledTasks> section.

    • To disable auto generation of the statistics file, specify enabled="false" in the StatsCollectorTask statement.
    • To enable auto generation of the statistics file, specify enabled="true" in the StatsCollectorTask statement.

    Example:

    <task name="StatsCollectorTask" interval="0 0 1 * * ?" enabled="false" type="internal" scope="local">
    <args>
    <property name="filePath">${PROFILES_STATS_DIR}//LC_NODE_NAME//${WAS_SERVER_NAME}</property>
    <property name="fileName">profilesStats</property>
    </args>
    </task> 

  3. After making changes, check the configuration files back in, and we must do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying property changes in Profiles for information about how to save and apply the changes.


Parent topic:
Monitoring statistics and metrics for Profiles