title: what is the default max Codecache size in Java 8
body: <p>What is the default maximum Codecache size for an Oracle Java 8 64-bit server VM?  </p>
  
  <p>I believe the relevant setting is ReservedCodeCacheSize.  I have seen two different values for the default ReservedCodeCacheSize:</p>
  
  <ul>
  <li><a href="https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm" rel="nofollow">This Oracle page</a> says it is 48M.</li>
  <li>The following command says it is ~250M:</li>
  </ul>
  
  <blockquote>
  <pre><code>$ java -XX:+PrintFlagsFinal -version -server | grep ReservedCodeCacheSize
  uintx ReservedCodeCacheSize                     = 251658240        {pd product}
  java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27
  Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
  $ uname -va
  Linux tst-job3 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>
  </blockquote>