Configuring health management for Liberty
Health management in a Liberty collective can prevent the disruption of service by detecting common problems and generating diagnostic actions based on configured health policies. The health management functions are enabled by two Liberty features, health manager and health analyzer.
Before you begin
- Create the environment that you want to monitor. When creating a health policy, have in mind the target of the policy (server, cluster or host).
- If you want to gain the full functionality of the health management feature, it is recommended that both the auto scaling and dynamic routing features be enabled. For more information, see Setting up auto scaling for Liberty collectives and Setting up dynamic routing for Liberty collectives.
- The types of collected resource usage information varies among JRE/JDKs. Go to http://www.ibm.com/developerworks/java/jdk/index.html on the developerWorks website and
download an IBM JRE/JDK for your operating system. The developerWorks website does not have a JRE
for all operating systems. For example, you must get the JDK from Eclipse for Windows operating
systems. The following IBM Java versions for Windows and Linux operating systems provide all necessary usage information and are the preferred JRE/JDKs.
- Java 8
- Java 7 Fix Pack 8 and above
- Java 6 Fix Pack 7 and above
- Note: Health Center generates temporary tmp files in the /tmp space, and depending on /tmp space limits, you might want to change the java.io.tmpdir to avoid filling the /tmp space, which can cause unrecoverable issues on some platforms.
-Djava.io.tmpdir=/path/to/tmpdir
For Windows users, the root user does not have read/write permission to the C:\Windows\Temp directory unless you are an administrator. You might want to change the permission of the C:\Windows\Temp directory to avoid this issue.
About this task
You can create health policies for common server health conditions. For more information, see Health management.
- Capture diagnostics (heap dump and thread dump)
- Restart server
- Enter server into maintenance mode
- Exit server out of maintenance mode. For use within the same health policy, where an earlier action entered maintenance mode prior to performing other actions.
Watch:
Video: Health management
for Liberty collectives provides an overview of health management and demonstrates how it can
help find and mitigate problems in your Liberty applications. [Transcript]
Procedure
Results
With health policies enabled, Intelligent Management can monitor collective members for problems, and perform diagnostic actions.