<div dir="ltr"><div>Hi Team, </div><div><br></div><div>I am Gaurav Gupta, Principal Engineer at Amazon India (<a href="mailto:gagup@amazon.com">gagup@amazon.com</a>). My team is trying to enable JFR on production systems for studying any issues using custom events in JMC. Also we plan to study the impact of code changes in our application on system performance by studying JFR dumps using JMC and Flamescope (sub-second profiling).</div><div><br></div><div>We tried enabling JFR in our prod system by adding following JVM args in our application startup (we have not yet added any custom event in our code:</div><div><span style="color:rgb(224,30,90);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-style:normal;font-variant-ligatures:none;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;white-space:pre-wrap;background-color:rgba(29,28,29,0.04);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">-XX:+FlightRecorder -XX:StartFlightRecording=name=SomeServiceJFR,disk=false,path-to-gc-roots=false -XX:FlightRecorderOptions=stackdepth=256,memorysize=60M,numglobalbuffers=2,globalbuffersize=30M,old-object-queue-size=64</span></div><div>(The reason we turned off the disk parameter is to avoid disk space issues during spiky traffic. We plan to take JFR dump on demand basis by running JFR.dump command line option to study application behavior and keep JFR recording on all the time).<br></div><div><br></div><div>We saw the system performance metrics on HeapMemoryAfterGC rising from 5% to 30% (on our test fleet) after starting our application with above JVM args (i.e. with JFR enabled). As per our reading about JFR, it is claimed to be safe in prod systems with continuous JFR profiling. But the rise of the HeapMemory use raised concern. <br><br></div><div>I seek your advice in this regard, if we are missing anything (wrt parameter configuration above) or are there other options to try without affecting the prod system. <br></div><div><br></div><div>Also, is there a slack channel that I join for live discussion in this regard? How can I get added?</div><div><br></div><div>PS: I won't be able to share the JFR dump file outside Amazon as it records events and stack traces for our proprietary software. But I am happy to come to a meeting on slack or other means and discuss this. Slack email: <a href="mailto:gagup@amazon.com">gagup@amazon.com</a><br></div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:garamond,serif;color:rgb(0,0,0)">Best regards,</span><br style="font-family:garamond,serif;color:rgb(153,51,153)"><font style="color:rgb(0,204,204)" size="2"><b style="font-family:garamond,serif">Gaurav Gupta</b><span style="font-family:garamond,serif"></span></font><br style="font-family:courier new,monospace;color:rgb(153,51,153)"><font size="2"></font><br><span style="color:rgb(51,0,153);font-family:garamond,serif">-------------------------------------------------------------------------------------------------------------------------------</span><br style="color:rgb(51,0,153);font-family:garamond,serif"><i style="color:rgb(51,0,153);font-family:garamond,serif">"Perfection is achieved not when there is nothing more to add,but rather when there is nothing more to take away."</i><br></div></div></div></div>