Recent Posts

    Authors

    Published

    Tag Cloud

    301 302 404 accessibility accounts ACLs advertising aggregation Agile Analytics android APP Article attachments awards backup BCM beta browser business continuity Calendar case-study categories Chrome citigroup cms codes coding standards Complaints contact management software control panel crm CSS customer management software customer relationship system customize database DataModel DDoS demo design designer device compatibility difference distribute a published article via email DND DNS documents drag & drop Editor email EOL erp event Excel featured feeds file manager file sharing file volume Firefox Firewall HA hack Handlebar how-to HTML HTML5 HTTP HTTPS iCal IE Instructions intranet iOS iPad Java JavaScript JDBC JDK Jenkins Job Track Journal JSON JVM landing-page launcher layered database layout logging login mac marketing menu meta Microsoft Outlook mobile module modules mustache navigation NTLM offline page painter password passwords PCI policy poll pricing privacy PROXY publish publisher publsher PWA redirect Redundancy release release-notes Report Tool Reports Responsive ReST RESTFul Rich text RSS Safari sandbox sanity schedule scrum search security SEO sessions setup shipping site builder source spell SQL Injection SSL SSO standards store stSoftware support survey Swagger Task template testimonial Threads timezone tinyMCE Transaction Search trigger twitter twitter bootstrap Ubuntu unit tests unsubscribe URL validation WC3 AAA web folders web services webdav windows 8 wizard workflow WYSIWYG XLS XLST XML XPath XSS

    stServer suggested Java arguments

    Low GC pause with large memory caches will give the highest performance.

    Below are the standard JVM server parameters. 

    G1 Garbage Collector

    • -XX:+UseG1GC
      • Turn on the G1 garbage collector. 
    • -XX:MaxGCPauseMillis=250
      • Target a maximum pause time of no more than 250 milliseconds.  

    Young Generation

    • -XX:PermSize=256m
      • The size of the permanent size. 
    • -XX:MaxPermSize=256m
      • Set the max and start size of the permanent memory segment. 

    DO NOT over tune the G1GC by setting -XX:NewSize=512m -XX:MaxNewSize=512m -XX:SurvivorRatio=2

    Logging Options

    • -verbose:gc
      • Verbosely log the garbage collection. 
    • -XX:+PrintGCDetails
      • Print the GC details
    • -XX:+PrintGCTimeStamps
      • Print the timestamps of when the GC occurred. 
    • -XX:+PrintGCApplicationStoppedTime
      • Print the time that the application was actually stopped. 
    • -XX:+PrintHeapAtGC
      • Print the heap when a full GC

    Miscellaneous Options

    • -server
      • Turn on the server compiler
    • -Xss8M
      • Stack size of 8 megs. 
    • -XX:+ExplicitGCInvokesConcurrent
      • When System.gc() is called do not stop the world. Just schedule a background GC. 
    • -XX:-OmitStackTraceInFastThrow
      • Always show the full stack trace for exceptions like NullPointerException
    • -d64
      • Turn on 64 bit JVM

    References