{"id":2358,"date":"2022-08-30T15:24:12","date_gmt":"2022-08-30T15:24:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/error-invalid-com-sun-management-jmxremote-port-number-8999-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:12","modified_gmt":"2022-08-30T15:24:12","slug":"error-invalid-com-sun-management-jmxremote-port-number-8999-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/error-invalid-com-sun-management-jmxremote-port-number-8999-collection-of-common-programming-errors\/","title":{"rendered":"Error: Invalid com.sun.management.jmxremote.port number: 8999-Collection of common programming errors"},"content":{"rendered":"<p>I have a CentOS+CPanel+Tomcat+Spring+MySQL+Flex architecture.<\/p>\n<p>I need to monitor my application&#8217;s memory because Tomcat is crashing from time to time. I read that JMX + Jconsole its a great choice. So i&#8217;m setting those variables in <code>CATALINA_OPTS<\/code> (in CPanel, you add the options in a file called <code>tomcat.options<\/code>). But I get an invalid port error. I tried with several port numbers: 8181, 8999, 3000. This is a <code>tomcat.options<\/code> file that doesn&#8217;t work:<\/p>\n<pre><code>-Dcom.sun.management.jmxremote  \n-Dcom.sun.management.jmxremote.port=8999  \n-Dcom.sun.management.jmxremote.ssl=false  \n-Dcom.sun.management.jmxremote.authenticate=false  \n-Djava.rmi.server.hostname=li170-64\n<\/code><\/pre>\n<p>I googled the error and could not find anyone else with the same error. What&#8217;s wrong?<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:18:49. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have a CentOS+CPanel+Tomcat+Spring+MySQL+Flex architecture. I need to monitor my application&#8217;s memory because Tomcat is crashing from time to time. I read that JMX + Jconsole its a great choice. So i&#8217;m setting those variables in CATALINA_OPTS (in CPanel, you add the options in a file called tomcat.options). But I get an invalid port error. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2358","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2358"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2358\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}