{"id":41194,"date":"2023-10-31T11:15:27","date_gmt":"2023-10-31T11:15:27","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41194"},"modified":"2023-10-31T11:52:53","modified_gmt":"2023-10-31T11:52:53","slug":"how-to-monitor-integration-of-apache-tomcat-using-newrelic-infra-agent","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-monitor-integration-of-apache-tomcat-using-newrelic-infra-agent\/","title":{"rendered":"How to Monitor &#038; Integration of Apache Tomcat &#038; JMX using NewRelic Infra Agent?"},"content":{"rendered":"\n<p>To set up New Relic JMX monitoring, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install the New Relic infrastructure agent.<\/strong><\/li>\n\n\n\n<li><strong>Enable JMX monitoring.<\/strong><\/li>\n\n\n\n<li><strong>Configure the JMX integration.<\/strong><\/li>\n\n\n\n<li><strong>Restart the infrastructure agent.<\/strong><\/li>\n<\/ol>\n\n\n\n<p><strong>Step 1: Install the New Relic infrastructure agent<\/strong><\/p>\n\n\n\n<p>If you haven&#8217;t already, install the New Relic infrastructure agent on your server. Follow the instructions on the New Relic website: https:\/\/docs.newrelic.com\/docs\/infrastructure\/install-infrastructure-agent\/get-started\/install-infrastructure-agent\/.<\/p>\n\n\n\n<p><strong>Step 2: Enable JMX monitoring<\/strong><\/p>\n\n\n\n<p>Once the infrastructure agent is installed, you need to enable JMX monitoring. You can do this in the New Relic UI or by editing the infrastructure agent configuration file.<\/p>\n\n\n\n<p>To enable JMX monitoring in the New Relic UI:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to&nbsp;<strong>one.newrelic.com<\/strong>.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Integrations<\/strong>.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Add integration<\/strong>.<\/li>\n\n\n\n<li>Select&nbsp;<strong>JMX<\/strong>&nbsp;and click&nbsp;<strong>Add<\/strong>.<\/li>\n\n\n\n<li>Click\u00a0<strong>Enable<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-110-1024x616.png\" alt=\"\" class=\"wp-image-41200\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-110-1024x616.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-110-300x180.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-110-768x462.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-110.png 1344w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-111-1024x393.png\" alt=\"\" class=\"wp-image-41201\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-111-1024x393.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-111-300x115.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-111-768x295.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-111.png 1246w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"699\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-112-1024x699.png\" alt=\"\" class=\"wp-image-41202\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-112-1024x699.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-112-300x205.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-112-768x524.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-112.png 1204w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"792\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-113.png\" alt=\"\" class=\"wp-image-41203\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-113.png 1003w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-113-300x237.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-113-768x606.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"825\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-114-1024x825.png\" alt=\"\" class=\"wp-image-41204\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-114-1024x825.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-114-300x242.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-114-768x619.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/10\/image-114.png 1047w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To enable JMX monitoring in the infrastructure agent configuration file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the infrastructure agent configuration file in a text editor.<\/li>\n\n\n\n<li>Find the&nbsp;<code class=\"\">integrations<\/code>&nbsp;section.<\/li>\n\n\n\n<li>Add the following lines to the&nbsp;<code class=\"\">integrations<\/code>&nbsp;section:<\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">jmx:\n  enabled: <span class=\"hljs-literal\">true<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Save the configuration file and restart the infrastructure agent.<\/li>\n<\/ol>\n\n\n\n<p><strong>Step 3: Configure the JMX integration<\/strong><\/p>\n\n\n\n<p>Once JMX monitoring is enabled, you need to configure the JMX integration. You can do this in the New Relic UI or by editing the infrastructure agent configuration file.<\/p>\n\n\n\n<p>To configure the JMX integration in the New Relic UI:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to&nbsp;<strong>one.newrelic.com<\/strong>.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Integrations<\/strong>.<\/li>\n\n\n\n<li>Click the&nbsp;<strong>JMX<\/strong>&nbsp;integration.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Configure<\/strong>.<\/li>\n\n\n\n<li>Configure the integration settings.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Save<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>To configure the JMX integration in the infrastructure agent configuration file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the infrastructure agent configuration file in a text editor.<\/li>\n\n\n\n<li>Find the&nbsp;<code>jmx<\/code>&nbsp;section.<\/li>\n\n\n\n<li>Configure the integration settings.<\/li>\n\n\n\n<li>Save the configuration file and restart the infrastructure agent.<\/li>\n<\/ol>\n\n\n\n<p>For more information on how to configure the JMX integration, see the New Relic documentation: https:\/\/docs.newrelic.com\/docs\/infrastructure\/host-integrations\/host-integrations-list\/jmx-monitoring-install\/.<\/p>\n\n\n\n<p><strong>Step 4: Restart the infrastructure agent<\/strong><\/p>\n\n\n\n<p>Once you have configured the JMX integration, you need to restart the infrastructure agent for the changes to take effect.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/721ee44bbfa0e40fbe3fded6753932df.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>To set up New Relic JMX monitoring, follow these steps: Step 1: Install the New Relic infrastructure agent If you haven&#8217;t already, install the New Relic infrastructure agent on your server. Follow the instructions on the New Relic website: https:\/\/docs.newrelic.com\/docs\/infrastructure\/install-infrastructure-agent\/get-started\/install-infrastructure-agent\/. Step 2: Enable JMX monitoring Once the infrastructure agent is installed, you need to enable&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41194","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=41194"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41194\/revisions"}],"predecessor-version":[{"id":41205,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41194\/revisions\/41205"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}