<div dir="ltr">We'd need more details to give you much more than "Using JMX or jstat would be easiest"<div><br></div><div>Example:</div><div><div>./jstat -gc 27104</div><div> S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC     YGCT    FGC    FGCT     GCT   </div>
<div>20928.0 21312.0  0.0   4864.0 305728.0 128383.7  262656.0   223537.3  170240.0 130738.6    295    6.912  10      8.268   15.180</div></div><div><br></div><div><a href="http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstat.html">http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstat.html</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 1:05 PM, Vimal Shah <span dir="ltr"><<a href="mailto:vimals@sokikom.com" target="_blank">vimals@sokikom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Does anyone have a step by step guide to getting monitoring (heap stack) set up of a Java app on an Amazon VPC box? The application is smartfoxserver and it's on Ubuntu 12.04.</div>


<div><br></div><div>I've scratched the surface on the following:<br clear="all"><div><ul><li><a href="https://code.google.com/p/javamelody/" target="_blank">https://code.google.com/p/javamelody/</a><br></li><li><a href="http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html" target="_blank">http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html</a><br>


</li><li><a href="http://jamonapi.sourceforge.net/" target="_blank">http://jamonapi.sourceforge.net/</a><br></li></ul><div><br></div></div><div>Application code changes aren't within my reach at the moment. An apt-get install of a monitoring tool on the server under question would be ideal. If this tool can have low overhead even better.</div>


<div><br></div><div>Thank you all in advance.</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><font size="3"><div style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Vimal (rhymes with Kimmel) Shah</font></div>


<div style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,helvetica,sans-serif;font-size:13px">Front-End / Infrastructure Engineer</span></div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Sokikom<br>


Mobile: <a href="tel:%28480%29%20752-9269" value="+14807529269" target="_blank">(480) 752-9269</a><br>Email:<font color="#500050">   </font><a href="mailto:vimals@sokikom.com" style="color:rgb(42,93,176)" target="_blank">vimals@sokikom.com</a></font></span><div style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">


<font face="arial, helvetica, sans-serif">Web:<font color="#500050">    </font><font color="#3333FF" style="color:rgb(42,93,176)"><a href="http://www.sokikom.com/" style="color:rgb(42,93,176)" target="_blank">www.sokikom.com</a></font></font></div>


<div><font face="arial, helvetica, sans-serif"><br></font></div></font><div><div style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Follow us: <a href="http://www.twitter.com/sokikom" style="color:rgb(42,93,176)" target="_blank">twitter.com/sokikom</a></div>


<div style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Like us: <a href="http://www.facebook.com/sokikom" style="color:rgb(42,93,176)" target="_blank">facebook.com/sokikom</a></div></div>
</font></span></div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>James McPhee<br>
<a href="mailto:jmcphe@gmail.com">jmcphe@gmail.com</a>
</div>