Use statistics administrative commands to enable and disable the Profiles statistics collection application. No file checkout or server restart is required when using these commands.
Before you begin
To edit configuration files, you must use the wsadmin client. See Starting the wsadmin client
for information about how to start the wsadmin command-line tool.
About this task
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()
To write Profiles statistics to a file on demand, complete the following steps.
Parent topic: Monitoring statistics and metrics for Profiles
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere
® Application Server installation directory and <dm_profile_root>
is the Deployment Manager profile directory, typically dmgr01.
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client
- Start the Profiles Jython script interpreter.
- Use the following command to access the Profiles configuration files:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
- Use the following command to dump the statistics to a specified file.
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.
Statistics information can also be viewed in a browser using the following URL: