tomcat setenv.sh 「爱情、让人受尽委屈。」 2022-06-08 08:51 265阅读 0赞 https://gist.github.com/patmandenver/cadb5f3eb567a439ec01 <table style="border-spacing:0px; border-collapse:collapse; color:rgb(36,41,46); font-size:14px"> <tbody style=""> <tr style=""> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Cutom Environment Variables for Tomcat</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>###########################################</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre</td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> PATH=<span style="">${JAVA_HOME}</span>/bin:<span style="">${PATH}</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>###########################################</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> JAVA_OPTS</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> You could do all this in one export command</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> But I am going to be long winded and explain</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Why and add links</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Oracle Notes</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> - https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> - A good visual</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> https://redstack.wordpress.com/2011/01/06/visualising-garbage-collection-in-the-jvm/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>############################################</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -server</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Select the java HotSpot Server JVM</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> The 64-bit version of the JDK support only the Server VM,</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> so in that case the option is implicit</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> ... so it's redundant to today's world but it make me feel good.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span>-server<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -Xms/Xmx</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Xms Sets the initial size of the Heap</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Xmx sets the Maximum size of the Heap.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://stackoverflow.com/questions/16087153/what-happens-when-we-set-xmx-and-xms-equal-size</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://crunchify.com/jvm-tuning-heapsize-stacksize-garbage-collection-fundamental/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -Xms1024M -Xmx1024M<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -NewSize/MaxNewSize</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Set the size of the young generation</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Most newly created objects are made here</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Objects taht did not become unreachbale and survice the young</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Generation heap are copied to the Old Generation</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> See http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> https://redstack.wordpress.com/2011/01/06/visualising-garbage-collection-in-the-jvm/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:NewSize=512m -XX:MaxNewSize=512m<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -PermSize/MaxPermSize</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Store classes and interned character strings</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://stackoverflow.com/questions/12114174/what-does-xxmaxpermsize-do</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Warning!</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Decprecated in Java 8!! replace -XX:MetaspaceSize !!!</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:PermSize=256m -XX:MaxPermSize=256m<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -UseConcMarkSweepGC</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Also called the low latency GC since pausing time is very short</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> When this is enabled it also enabled</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -XX:+UseParNewGC Potentially speed up your generation GC</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> by a factor equal to the number of CPUS</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> (see http://stackoverflow.com/questions/2101518/difference-between-xxuseparallelgc-and-xxuseparnewgc)</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:+UseConcMarkSweepGC<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -XX:+CMSIncrementalMode</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> I am not going to set this one but it's worthe mentioning</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> It has been deprecated in Java 8. It is useful when you have 1 or 2</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> CPU machine. It helps reduce latency by doing smaller garbage collections</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> see thies sites for details</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.fixdeveloper.com/2014/03/jvm-tuning-cmsincrementalmode-overrides.html</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#icms</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -CMSClassUnloadingEnabled</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> In an old school java program classes are forever. But with</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Modern languages like Groovy... Classes are created at runtime, every</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> scirpt may create a few new classes. With this set the PermGen space will</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Be garbage collecte3d. Without this you have a memory Leak.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Must also have UseConcMarkSweepGC set for this to work.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://stackoverflow.com/questions/3334911/what-does-jvm-flag-cmsclassunloadingenabled-actually-do</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:+CMSClassUnloadingEnabled<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -DisableExlicitGC</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Explicit calls to System.gc() are completely ignored</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://stackoverflow.com/questions/12847151/setting-xxdisableexplicitgc-in-production-what-could-go-wrong</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:+DisableExplicitGC<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -HeapDumpPath</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Set the file where the heap dump will write out its error</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -XX:HeapDumpPath=/10x13/logs/tomcat8/java_heapdump_pid_%p.log<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -java.awt.headless</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Basically tell the JVM not to load awt libraries</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Your server is not a desktop app, there is more to this rule than that.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> If you want to go into it check out.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> https://blog.idrsolutions.com/2013/08/what-is-headless-mode-in-java/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.oracle.com/technetwork/articles/javase/headless-136834.html</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -Djava.awt.headless=true<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -java.security.egd</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> This one is abit of a debate</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> If you don't set this it will use /dev/random on startup</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> which can block and make tomcat startup slower.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> But it's technically more secure... but no one has shown</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> a way to break the results of urandom which is faster.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> For more details see.</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.2uo.de/myths-about-urandom/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> JAVA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$JAVA_OPTS</span> -Djava.security.egd=file:/dev/./urandom<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>################################################</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> CATALINA_OPTS</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> This are basically JAVA_OPTS but only used by tomcat</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> and only run on Tomcat start see</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://stackoverflow.com/questions/11222365/catalina-opts-vs-java-opts-what-is-the-difference</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> for more details</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)">#</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>###############################################</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> -jmcremot..</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> Turn onthe jmxremote so you can use JConsole or VisualVM</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> to monito the jvm remotely</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> See</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.mkyong.com/tomcat/jconsole-jmx-remote-access-on-tomcat/</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span> http://www.javaworld.com/article/2072322/from-jconsole-to-visualvm.html</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$CATALINA_OPTS</span> -Dcom.sun.management.jmxremote<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$CATALINA_OPTS</span> -Dcom.sun.management.jmxremote.port=9090<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$CATALINA_OPTS</span> -Dcom.sun.management.jmxremote.authenticate=false<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$CATALINA_OPTS</span> -Dcom.sun.management.jmxremote.ssl=false<span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(106,115,125)"><span style="">#</span>This gets the local IP address</span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> IP_ADDR=<span style="color:rgb(3,47,98)"><span style="">`</span>ip route get 8.8.8.8 <span style="color:rgb(215,58,73)">|</span> awk <span style=""> <span style="">'</span>{print $NF; exit}<span style="">'</span></span><span style="">`</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OPTS=<span style="color:rgb(3,47,98)"><span style="">"</span><span style="color:rgb(36,41,46)">$CATALINA_OPTS</span> -Djava.rmi.server.hostname=<span style="color:rgb(36,41,46)">$IP_ADDR</span><span style="">"</span></span></td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> </td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_HOME=/10x13/apps/tomcat8</td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_OUT=/10x13/logs/tomcat8/catalina.out</td> </tr> <tr style=""> <td style="padding:0px 10px; width:50px; min-width:50px; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; line-height:20px; text-align:right; white-space:nowrap; vertical-align:top"> </td> <td style="padding:0px 10px; position:relative; line-height:20px; vertical-align:top; overflow:visible; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; word-wrap:normal; white-space:pre"> <span style="color:rgb(215,58,73)">export</span> CATALINA_PID=/var/run/tomcat8/tomcat.pid</td> </tr> </tbody> </table>
相关 tomcat 1. c/s: 客户端和服务端 : 例如QQ; 安全, 升级比较麻烦 b/s: 浏览器和服务端: 只需要编写服务端; 不安全 2. web资源介绍: 灰太狼/ 2022年06月14日 08:49/ 0 赞/ 58 阅读
相关 tomcat Tomcat 1.概述 通过上面的讲解大家对JSP与Servlet已经有所理解,最起码知道它们是做什么的,说到底它们都是程序设计语言,是帮助我们更好的编写程序。大家都知 缺乏、安全感/ 2022年06月11日 07:55/ 0 赞/ 386 阅读
相关 Tomcat Tomcat简介 WEB服务器与应用服务器的概念 WEB服务器:专门处理HTTP请求,提供WEB信息浏览服务。 应用服务器:可解析运行后台代码,为应用 客官°小女子只卖身不卖艺/ 2022年06月07日 03:07/ 0 赞/ 248 阅读
相关 Tomcat 1.基本调优 bin/catalina.sh 加一行 JAVA\_OPTS='-Xms128m -Xmx512m -XX:PermSize=128m' 2.设置脚本开机启 r囧r小猫/ 2022年05月31日 22:48/ 0 赞/ 190 阅读
相关 tomcat 一、安装Tomcat5.5.20 1、下载安装包 <table> <tbody> <tr> <td><span><strong>代码:</stro 一时失言乱红尘/ 2022年05月11日 12:16/ 0 赞/ 104 阅读
相关 tomcat 前文: 对tomcat的构的初步解析 一、web服务器 ![watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_te 偏执的太偏执、/ 2022年03月19日 16:58/ 0 赞/ 67 阅读
相关 tomcat tomcat结构 模块组成结构 Tomcat的核心组件就Connector和Container,一个Connector+一个Container(Engine)构成一个 ﹏ヽ暗。殇╰゛Y/ 2022年03月16日 07:51/ 0 赞/ 111 阅读
相关 Tomcat [Tomcat][] Tomcat运行在JVM之上,它和HTTP服务器一样,绑定IP地址并监听TCP端口,同时还包含以下指责: 1. 管理Servlet程序的生命周期 左手的ㄟ右手/ 2022年01月28日 13:21/ 0 赞/ 150 阅读
相关 Tomcat tomcat目录层次结构 ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6L 我会带着你远行/ 2021年11月17日 09:02/ 0 赞/ 209 阅读
相关 Tomcat Tomcat文件目录 |-bin: 存放tomcat的命令。 |- conf: 存放tomcat的配置信息。其中server.xml文件是核心的配置文件。 ゝ一世哀愁。/ 2021年09月11日 05:40/ 0 赞/ 301 阅读
还没有评论,来说两句吧...