{"id":386,"date":"2012-02-20T22:35:20","date_gmt":"2012-02-20T22:35:20","guid":{"rendered":"http:\/\/emtunc.org\/blog\/?p=386"},"modified":"2013-06-15T13:08:46","modified_gmt":"2013-06-15T12:08:46","slug":"assigning-jmeter-the-right-amount-of-memory","status":"publish","type":"post","link":"https:\/\/emtunc.org\/blog\/02\/2012\/assigning-jmeter-the-right-amount-of-memory\/","title":{"rendered":"Assigning JMeter the Right Amount of Memory"},"content":{"rendered":"<p>This article is a quick overview of what I think the ideal limit for the Java Virtual Machine heap size should be in JMeter.<\/p>\n<p><!--more--><br \/>\nIt depends what sort of systems and protocols you are running load tests against but typically the heap size should be a comfortable 512-1024M.<\/p>\n<p>My team ran in to problems which we originally thought were performance related but turned out to be JVM heap size issues on the load injector.<\/p>\n<p>Further diagnostics showed that the heap size we originally set (&gt; 5GB as the load injector box was very big) was too much for JMeter to manage effectively.<\/p>\n<p>The only logical explanation I can think of as to why more memory would cause a detrimental impact on JMeter is that more CPU cycles are spent trying to manage this large amount of memory instead of actually using it efficiently.<\/p>\n<p>Therefore I suggest setting a comfortable 512-1024M and not something ridiculously over the top like 8GB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is a quick overview of what I think the ideal limit for the Java Virtual Machine heap size should be in JMeter.<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[52,65,64,66],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-tech","tag-jmeter","tag-jvm","tag-load-injector","tag-memory"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1trTO-6e","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":3,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":920,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions\/920"}],"wp:attachment":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}