{"id":6963,"date":"2014-05-16T01:14:20","date_gmt":"2014-05-16T01:14:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/java-tomcat-heap-size-question-collection-of-common-programming-errors\/"},"modified":"2014-05-16T01:14:20","modified_gmt":"2014-05-16T01:14:20","slug":"java-tomcat-heap-size-question-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/java-tomcat-heap-size-question-collection-of-common-programming-errors\/","title":{"rendered":"Java\/Tomcat heap size question-Collection of common programming errors"},"content":{"rendered":"<p>To resolve these issues you need to do performance testing. This includes both CPU and memory analysis. The JDK (6) bundles a tool called VisualVM, on my Mac OS X machine this is on the path by default as &#8220;jvisualvm&#8221;. That&#8217;s free and bundled, so it&#8217;s a place to start.<\/p>\n<p>Next up is the NetBeans Profiler (netbeans.org). That does more memory and CPU analysis. It&#8217;s free as well, but a bit more complicated.<\/p>\n<p>If you can spend the money, I highly recommend YourKit (http:\/\/www.yourkit.com\/). It&#8217;s not terribly expensive but it has a lot of built-in diagnostics that make it easier to figure out what&#8217;s going on.<\/p>\n<p>The one thing you can&#8217;t do is assume that just adding more memory will fix the problem. If it&#8217;s a leak, adding more memory may just make it run really badly a bit longer between restarts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To resolve these issues you need to do performance testing. This includes both CPU and memory analysis. The JDK (6) bundles a tool called VisualVM, on my Mac OS X machine this is on the path by default as &#8220;jvisualvm&#8221;. That&#8217;s free and bundled, so it&#8217;s a place to start. Next up is the NetBeans [&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-6963","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6963","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=6963"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6963\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}