Upload
others
View
20
Download
0
Embed Size (px)
Citation preview
Monitoring Java Memory Utilization with TSOM
Bryan MerandaMarch 2019
Goals
© Copyright 2019 BMC Software, Inc.
What is JMX
Why monitor Java memory utilization
How to instrument TrueSight Presentation Server
How to instrument TrueSight Infrastructure Manager
How to instrument TrueSight Integration Services
How to configure policy for Java Memory Monitoring
Java Management Extensions (JMX) is a Java technology that supplies tools to manage and monitor applications
§ Allows for instrumentation level access to the application§ JConsole is a example of a clients that can connect to the JVM and view application
internals such as heap usage, threads, running argument, etc.§ PATROL Agents installed with Apache Tomcat and Generic Java Server KM acts as a
client that can leverage the instrumentation of the JVM to collect performance data
What is JMX
© Copyright 2019 BMC Software, Inc.
Ø Health of the Java processes§ Monitoring Java processes from an OS only gives a high level overview of the
memory usage§ When monitoring is done from inside the JVM this allows for details like Heap
utilization %§ Keeping an eye on the JVM will help your application running smoothly
Ø TrueSight application load validation§ Java is the heart of TrueSight Operations Manager and must monitor for health§ Monitoring the heap usage with thresholds is key to know when memory
adjustments are needed or deployment of addition components§ Monitoring the heap also is a indicator that the load on the server is exceeding the
scale of a component
Why monitor Java memory utilization
© Copyright 2019 BMC Software, Inc.
Ø File locationIn TSPS 11, make updates in the following directories:
Linux: /TrueSightPServer/truesightpserver/conf/custom/Windows: \TrueSightPServer\truesightpserver\conf\custom\
Ø Instrument csr.conf by adding the following linesvm.args.system.520=-Dcom.sun.management.jmxremote.port=3333
vm.args.system.521=-Dcom.sun.management.jmxremote.ssl=falsevm.args.system.522=-Dcom.sun.management.jmxremote.authenticate=false
Ø Instrument idxsrv.conf by adding the following linesvm.args.system.520=-Dcom.sun.management.jmxremote.port=3334
vm.args.system.521=-Dcom.sun.management.jmxremote.ssl=falsevm.args.system.522=-Dcom.sun.management.jmxremote.authenticate=false
How to instrument TrueSight Presentation Server for Java Monitoring
© Copyright 2019 BMC Software, Inc.
NOTE: In TSPS 10.x and earlier, the files are located here:Linux: /TrueSightPServer/truesightpserver/conf/services/Windows: \TrueSightPServer\truesightpserver\conf\services\
Ø File locationMake updates in the following directories:
Linux: /usr/pw/custom/confWindows: ..\pw\custom\conf
Ø Instrument pnagentcntl.conf by uncommenting the following lineCOMDefine A=B -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1
Ø Instrument pnjserver.conf by uncommenting the following lineCOMDefine A=B -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9020 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1
Ø Instrument pnrate.conf by uncommenting the following linesCOMDefine com.sun.management.jmxremote.port=8686COMDefine com.sun.management.jmxremote.ssl=false
COMDefine com.sun.management.jmxremote.authenticate=false
How to instrument TrueSight Infrastructure Manager for Java Monitoring
© Copyright 2019 BMC Software, Inc.NOTE: In TSIM 10.x and earlier, these lines will need to be added to the files
Ø File locationMake updates in the following directories:
Linux: ../agent/custom/confWindows: ...\agent\custom\conf
Ø Copy the pnagent.conf file from pw/conf to pw/custom/confAfter copying the file remove all lines after #Fixed Section
Ø Instrument pnagent.conf by adding the following lines before the #Fixed Section
COMDefine com.sun.management.jmxremote.port=8989
COMDefine com.sun.management.jmxremote.ssl=falseCOMDefine com.sun.management.jmxremote.authenticate=false
How to configure TrueSight Infrastructure Manager Integration Services for Java Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Deploy PATROL Agent and “Apache Tomcat and Generic Java Server” KM to each of the TSPS Servers
Ø Apply tags to each of the TSPS ServersTrueSight Presentation Server – TSPS-Monitoring
Ø Example for TrueSight Presentation Server Policy creationAgent Selection Criteria
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Example for TrueSight Presentation Server Policy creation (Cont)
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitoring Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Profile Generic JVM Server
Monitor Type Generic JVM Server Setup
Java Home Use either the PATROL Agent JRE or another on the system
Ø Example for TrueSight Presentation Server Policy creation (Cont)
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the csr.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Presentation Server Policy creation (Cont)
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the idxsrv.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Presentation Server Policy creation (Cont)
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitor Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Type Generic JVM Memory Usage
Scope Type
Monitor Attribute Memory Utilization
Threshold 1 EnableMin: 85 Max: 100Select Event Severity – CriticalTigger an event – After threshold violation occurs N TimesN Times – 3
Ø Example for TrueSight Presentation Server Policy creation (Cont)Configure the policy to add the TSPS Servers to the group TrueSight Infrastructure so devices will be in a single group
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Deploy PATROL Agent and “Apache Tomcat and Generic Java Server” KM to each of the TSIM Servers
Ø Apply tags to each of the TSIM ServersTrueSight Infrastructure Manager – TSIM-Monitoring
Ø Example for TrueSight Infrastructure Server Policy creation: Agent Selection Criteria
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Example for TrueSight Infrastructure Server Policy creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitor Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Profile Generic JVM Server
Monitor Type Generic JVM Server Setup
Java Home Use either the PATROL Agent JRE or another on the system
Ø Example for TrueSight Infrastructure Server Policy creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the pnagentcntl.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Infrastructure Server Policy creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the pnjserver.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Infrastructure Server Policy creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the pnrate.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Infrastructure Server Policy creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitor Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Type Generic JVM Memory Usage
Scope Type
Monitor Attribute Memory Utilization
Threshold 1 Enable: Min: 85 Max 100Select Event Severity – CriticalTigger an event – After threshold violation occurs N TimesN Times - 3
Ø Example for TrueSight Infrastructure Server Policy creation (Cont): Configure the policy to add the TSIM Server to the group TrueSight Infrastructure so devices will be in a single group
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Deploy PATROL Agent and “Apache Tomcat and Generic Java Server” KM to each of the ISN Servers
Ø Create a tag for each of the ISN ServersTrueSight Integration Services – ISN-Monitoring (If stacking ISNs then per port)
Ø Example for TrueSight Integration Services creation: Agent Selection Criteria
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Ø Example for TrueSight Integration Services creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitor Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Profile Generic JVM Server
Monitor Type Generic JVM Server Setup
Java Home Use either the PATROL Agent JRE or another on the system
Ø Example for TrueSight Integration Services creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Environment Name Application class that will contain the attributes
Host/IP If the PATROL Agent is local, use 127.0.0.1 If monitoring remote, use the FQDN of the TSPS Server
Port Port selected for the core process in the pnagent.conf
RMI Server Type (if listed)
Leave the default setting
Ø Example for TrueSight Integration Services creation (Cont):
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
Monitor Solution Apache Tomcat and Generic Java Server
Version Latest
Monitor Type Generic JVM Memory Usage
Scope Type
Monitor Attribute Memory Utilization
Threshold 1 EnableMin: 85 Max: 100Select Event Severity – CriticalTigger an event – After threshold violation occurs N TimesN Times - 3
Ø Example for TrueSight Integration Services creation (Cont): Configure the policy to add the TSIM Server to the group TrueSight Infrastructure so devices will be in a single group
How to configure policy for Java Memory Monitoring
© Copyright 2019 BMC Software, Inc.
About BMC
BMC—The Multi-Cloud Management Company. BMC, BMC Software, the BMC logo, and the BMC Software logo are the exclusive properties of BMC Software Inc., are registered or pending registration with the U.S. Patent and Trademark Office, and may be registered or pending registration in other countries. All other BMC trademarks, service marks, and logos may be registered or pending registration in the U.S. or in other countries. All other trademarks or registered trademarks are the property of their respective owners. ©Copyright 2019 BMC Software, Inc.
BMC helps customers run and reinvent their businesses with open, scalable, and modular solutions to complex IT problems. Bringing both unmatched experience in optimization and limitless passion for innovation to technologies from mainframe to mobile to cloud and beyond, BMC helps more than 10,000 customers worldwide reinvent, grow, and build for the future success of their enterprises, including 92 of the Forbes Global 100.
www.bmc.com