title: How to avoid truncated stack traces with Java Flight Recorder
body: <p>I am using Oracle <a href="https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm" rel="nofollow">Java Flight Recorder</a> to collect stack trace samples of a Java application. Theses stack traces allows me to eventually produce a <a href="https://github.com/chrishantha/jfr-flame-graph" rel="nofollow">CPU Flamegraph</a>.</p>
  
  <p>My issue is that stack traces deeper than 64 frames are truncated by Java Flight Recorder. It's very easy to observe in the Flamegraph and using a debugger I can observe that no <code>FLRStackTrace</code> has more than 64 <code>FLRFrame</code>s and that almost all stack traces with 64 frames have their TruncationState set to <code>TRUNCATED</code>.</p>
  
  <p>Does anyone know if this 64 frames limit can be increased ? Flamegraphs are useless if the stack traces are incomplete.</p>