{"id":874,"date":"2019-06-26T17:31:54","date_gmt":"2019-06-26T15:31:54","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/?p=874"},"modified":"2019-09-01T16:49:20","modified_gmt":"2019-09-01T14:49:20","slug":"long-lived-jvm-applications-memory-usage-tuning","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/","title":{"rendered":"Long-lived JVM applications memory usage tuning"},"content":{"rendered":"<p>A few days have passed since the last blog post about <a href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/jvm-memory-usage-monitoring-tools\/\">jvm memory usage monitoring tools<\/a>, and I have learned so much about patterns of JVM memory usage and magic flags to use to influence it. I still can&#8217;t call myself an expert, but judging from the corpus of stackoverflow posts about jvm and memory, at least I&#8217;m not totally clueless. :-)<\/p>\n<p><strong>EDIT<\/strong>: this post has now been further extended and published on the <a href=\"https:\/\/kahoot.com\/tech-blog\/optimizing-jvm-memory-usage-in-kahoot-gameservers\/\">newly published Kahoot engineering blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days have passed since the last blog post about jvm memory usage monitoring tools, and I have learned so much about patterns of JVM memory usage and magic flags to use to influence it. I still can&#8217;t call myself an expert, but judging from the corpus of stackoverflow posts about jvm and memory, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[542,512],"tags":[548,546,85,551,544,550,549,545,547],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Long-lived JVM applications memory usage tuning - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Long-lived JVM applications memory usage tuning - Random hacking\" \/>\n<meta property=\"og:description\" content=\"A few days have passed since the last blog post about jvm memory usage monitoring tools, and I have learned so much about patterns of JVM memory usage and magic flags to use to influence it. I still can&#8217;t call myself an expert, but judging from the corpus of stackoverflow posts about jvm and memory, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-26T15:31:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-01T14:49:20+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Long-lived JVM applications memory usage tuning\",\"datePublished\":\"2019-06-26T15:31:54+00:00\",\"dateModified\":\"2019-09-01T14:49:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\"},\"wordCount\":87,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"glibc\",\"heap\",\"java\",\"jps_stat\",\"jvm\",\"jvmtop\",\"MALLOC_ARENA_MAX\",\"memory\",\"native memory\"],\"articleSection\":[\"Development\",\"Operations\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\",\"name\":\"Long-lived JVM applications memory usage tuning - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2019-06-26T15:31:54+00:00\",\"dateModified\":\"2019-09-01T14:49:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Long-lived JVM applications memory usage tuning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Long-lived JVM applications memory usage tuning - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/","og_locale":"en_US","og_type":"article","og_title":"Long-lived JVM applications memory usage tuning - Random hacking","og_description":"A few days have passed since the last blog post about jvm memory usage monitoring tools, and I have learned so much about patterns of JVM memory usage and magic flags to use to influence it. I still can&#8217;t call myself an expert, but judging from the corpus of stackoverflow posts about jvm and memory, [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/","og_site_name":"Random hacking","article_published_time":"2019-06-26T15:31:54+00:00","article_modified_time":"2019-09-01T14:49:20+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Long-lived JVM applications memory usage tuning","datePublished":"2019-06-26T15:31:54+00:00","dateModified":"2019-09-01T14:49:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/"},"wordCount":87,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["glibc","heap","java","jps_stat","jvm","jvmtop","MALLOC_ARENA_MAX","memory","native memory"],"articleSection":["Development","Operations"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/","name":"Long-lived JVM applications memory usage tuning - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2019-06-26T15:31:54+00:00","dateModified":"2019-09-01T14:49:20+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2019\/06\/long-lived-jvm-applications-memory-usage-tuning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Long-lived JVM applications memory usage tuning"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/874"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":9,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}