<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Memory on Personal weblog</title>
    <link>https://carl.duevel.online/tags/memory/</link>
    <description>Recent content in Memory on Personal weblog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 22 Jan 2022 18:30:50 +0100</lastBuildDate>
    <atom:link href="https://carl.duevel.online/tags/memory/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Why does MaxRAMPercentage stop working at heaps of ~ 30 GB?</title>
      <link>https://carl.duevel.online/blog/max_ram_percentage/</link>
      <pubDate>Sat, 22 Jan 2022 18:30:50 +0100</pubDate>
      <guid>https://carl.duevel.online/blog/max_ram_percentage/</guid>
      <description>&lt;p&gt;&#xA;The other day at work a Clojure program on a machine with 100 GB ran into OutOfMemory&#xA;errors. A quick look at the metrics showed that the heap was only at about 30 GB&#xA;though. Checking the JVM flags I found a configuration that is commonplace:&lt;/p&gt;&#xA;&lt;div class=&#34;src src-bash&#34;&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;-XX:MaxRAMPercentage&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;80&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;So one would assume that the JVM could have sized the heap much larger than it&#xA;actually did. Thanks to docker this behavior can be observed quite easily by&#xA;doing a few tests like this one:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
