Set up IBM Health Center for the production environment
Complete the following steps to set up IBM Health Center for our production environment.We can analyze the Health Center data that is collected in headless mode using the Health Center client (see Installing Health Center). Tip: As an alternative to the Health Center client, we can use the WebSphere Commerce Health Center Report tool. This tool uses the Health Center file (.hcd) to generate a web-based report of the performance data with insights specific to WebSphere Commerce. See WebSphere Commerce Health Center Report.
Task info
To enable IBM Health Center, set the configurations during Docker container start up. There are two methods to completing the task. Select a method that best suits the environment.
Procedure
- Passing in configuration parameters during container start up.
- Configure your Transaction, Store, and Search Docker containers to start with the configuration parameters OVERRIDE_PRECONFIG=true and HEALTH_CENTER_ENABLED=true.
For more information about configuration parameters, see Setting configuration parameters.
- Health Center continuously creates healthcenter*.hcd files in the directory specified by the output.directory property at the interval set by the run.duration property. Mount the output.directory output folder on the Docker host volume or remote storage center to get output from each Docker container.
- Set JVM arguments to enable Health Center.
- To modify the JVM arguments, create a Dockerfile and using the following Run Engine commands to set our custom default JVM values. We can either specify these commands in the Dockerfile or in a custConfiguration.sh script.The following properties are the default properties. Modify as needed.
run set-system-property com.ibm.java.diagnostics.healthcenter.headless.output.directory /profile/logs/healthcenter run set-system-property com.ibm.java.diagnostics.healthcenter.headless.run.duration 15 run set-system-property com.ibm.diagnostics.healthcenter.data.profiling off run set-system-property com.ibm.java.diagnostics.healthcenter.allocation.threshold.low 10000000 run set-system-property com.ibm.java.diagnostics.healthcenter.stack.trace.depth 20 run set-system-property com.ibm.java.diagnostics.healthcenter.headless.files.to.keep 0
- For more information about these arguments, see Health Center Configuration Properties.
- For more information about the custConfiguration.sh script, see Customizing Docker start up flow.
Health Center continuously creates healthcenter*.hcd files in the directory specified by the output.directory property at the interval set by the run.duration property. Mount the output.directory output folder on the Docker host volume or remote storage center to get output from each Docker container.
Related information: