Home

 

Writing Profiles statistics to a file

Use statistics administrative commands to enable and disable the Profiles statistics collection feature. No file checkout or server restart is required when using these commands.

To edit configuration files, use wsadmin. See Start the wsadmin client for information about how to start the wsadmin command-line tool.


You can use script-based administrative commands to store the most recent Profiles statistics information that is being held in memory to a file.

You can specify the path and file name of where you want this file created, or when just a filename is specified, then the statistics file is created in the subdirectory specified by the statistics.filePath parameter. This parameter can be seen by using the ProfilesConfigService.showConfig() command.

To write Profiles statistics to a file on demand...

  1. Start wsadmin so that you can access the Profiles configuration files.

    1. Access the Profiles configuration files:

  2. Use this command to dump the statistics to a specified file:


    The writeStatisticsToFile command

    Option Description
    ProfilesService.writeStatisticsToFile("myStatsFile") Writes the most recent Profiles statistics to a file.

    The myStatsFile argument can include the full path and name of the statistics file. Note that the path must be relative to the server hosting the MBean used by this command. Sample command:

      ProfilesService.writeStatisticsTo
       File("d:/temp/profilesStats.txt")
      

    Statistics information can also be viewed in a browser at http://server.company.com/profiles/html/serverStats.do.


Monitor statistics and metrics for Profiles


+

Search Tips   |   Advanced Search