download zip of files only
Thu Dec 02 01:03:52 GMT 2021
From /weblog/java/performance
java -XX:+PrintFlagsFinal -version | findstr HeapSize , find out actual Xmx default in bytes - https://www.edureka.co[..]default-parameters-of-xms-and-xmx-in-jvm -XX:+PerfDisableSharedMem , prevent locking by sharedmem in linux - http://www.evanjones.ca/jvm-mmap-pause.html How linkedin turn the GC - http://engineering.linkedin.com[..]ughput-and-low-latency-java-applications Using generational & concurrent GC collector - http://www.javacodegeeks.com[..]/04/ibm-jvm-tuning-gencon-gc-policy.html Full VM option list : http://blogs.sun.com/roller/resources/watt/jvm-options-list.html, update for Java7 - http://nerds-central.blogspot.com[..]ot.com/2011/07/all-jvm-7-xx-options.html http://stas-blogspot.blogspot.com[..]ost-complete-list-of-xx-options-for.html A simplified list for some frequency use options - http://rdafbn.blogspot.com.au[..]rbage-collector-guidelines-and-tips.html HotSpot JVM garbage collection options cheat sheet - http://aragozin.blogspot.com[..]spot-jvm-garbage-collection-options.html http://www.oracle.com[..]va/javase/tech/vmoptions-jsp-140102.html An example and story about effect of difference VM parameter affecting the performance - http://www.javaspecialists.eu/archive/Issue191.html Clear the code cache automatically with -XX:+UseCodeCacheFlushing - http://blogs.amd.com[..]time-for-long-running-java-applications/ Discussion about -XX:MinHeapFreeRatio parameter - http://www.gossamer-threads.com[..]s.com/lists/lucene/java-user/44286#44286 The other detailed guide for VM parameters tuning - http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf Here is a more simple cookbook - http://java.sun.com/performance/reference/whitepapers/tuning.html A outdated (1.4) , compehensive but still not really too detailed, overview of various GC tuning - http://www.petefreitag.com/articles/gctuning/ Some say following VM parameter is good enough -server -Xmx -XX:+UseParallelGC http://blogs.sun.com[..]/page/binublog?entry=java_tuning_for_xml Some say is useful if you have huge memory -XX:+UseLargePages http://blogs.sun.com[..]dagastine?entry=java_se_tuning_tip_large Some say below parameter keep GC in low pause -XX:MaxGCPauseMillis=5000 Some say below parameter are very optimal -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:NewSize=1200m -XX:SurvivorRatio=16 http://www.theserverside.com[..]d.tss?thread_id=41258&ASRC=EM_NNL_347804 Some say those parameter is good -XX:+UseConcMarkSweepGC -XX:ParallelCMSThreads=1 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 http://blog.mikiobraun.de/2010/08/cassandra-gc-tuning.html Just in case anyone is curious, the flags enabled by -XX:+AggressiveOpts in JDK 1.6.0_25 are: -XX:+EliminateAutoBox -XX:AutoBoxCacheMax=20000 -XX:BiasedLockingStartupDelay=500 -XX:+DoEscapeAnalysis -XX:+OptimizeStringConcat -XX:+OptimizeFill Generate dump with OOME - -XX:+HeapDumpOnOutOfMemoryError GC log sample of -XX:+UseConcMarkSweepGC -XX:PrintFLSStatistics=1 -XX:+PrintGCDetails - https://gist.github.com/1329783 A case study of tuning VM GC parameters - http://plumbr.eu[..]ld-you-trust-the-default-settings-in-jvm Explanation for few performance related VM parameters - http://www.techpaste.com[..]ine-options-jvm-performance-improvement/ Show the exact vm flag that java using - http://matthewkwilliams.com[..]/looking-inside-a-jvm-xxprintflagsfinal/ For G1GC - https://dzone.com[..]e-first-garbage-collector-tuning-flags-1 https://ionutbalosin.com[..]otspot-jvm-performance-tuning-guidelines
(google search)
(amazon search)
Tue Feb 10 09:33:40 GMT 2015
From /weblog/java/performance
-XX:+TieredCompilation, -XX:+UseCompressedOops, Escape Analysis and -XX:+UseNUMA - http://docs.oracle.com[..]uides/vm/performance-enhancements-7.html Interestingly, PrintWriter, if pooled, shows considerable performance improvement. The creation of the object is expensive because of a call to get the line separator in its constructor. http://sachinhejip.blogspot.com[..]/08/experiences-in-java-performance.html Experience in twitter - http://www.umbrant.com/blog/2012/twitter_jvm_tuning.html Cases study on how to test performance from using difference GC algo - http://plumbr.eu/blog/g1-vs-cms-vs-parallel-gc A lot of information - http://www.javaadvent.com[..]-1-of-3-synopsis-of-articles-videos.html Basically use lower level construct - http://blog.jooq.org[..]-easy-performance-optimisations-in-java/
(google search)
(amazon search)
Mon Aug 15 15:40:53 GMT 2011
From /weblog/java/performance
Offline parsing heap dump, good for analysis huge heap dump at server with GTK - http://www.eclipse.org[..]index.php?t=rview&goto=703990#msg_703990 Nice explanation of GC - http://redstack.wordpress.com[..]sualising-garbage-collection-in-the-jvm/ Get call back for memory allocation, should be very useful - http://blogs.lessthandot.com[..]s/applying-kanban-to-it-processes-part-2 Detailed discussion of analysis memory consumption in Java - http://kohlerm.blogspot.com[..]mory-consumption-of-netbeans-versus.html it probably one of the nicest feature of java 5 - dump VM for you to analyst http://blogs.sun.com[..]apdumponoutofmemoryerror_option_in_5_0u7 This article present a simple, and possible not accurate method to track object creation and finalization. May be not that useful in general but sometime is convenience - http://www.devx.com/tips/Tip/30833?trk=DXRSS_JAVA checking memory consumption at object level - http://www.jroller.org[..]im?entry=again_about_determining_size_of Sun contain a nice library for we to investigate heap stat - http://elliotth.blogspot.com[..]om/2005/01/java-equivalent-of-heap1.html Use java.util.Observable to Monitor Object State changes - http://www.devx.com/tips/Tip/22592?trk=DXRSS_JAVA
(google search)
(amazon search)
Thu Jan 18 08:05:38 GMT 2007
From /weblog/java/performance
In this article, the authors draw from their practical experience to list and discuss some critical considerations when building J2EE applications so that they can be deployed in a clustered environment without requiring any code changes. http://www.onjava.com/lpt/a/4993 Someone tested that using Terrcotta is much better than RMI broadcast - http://pojomojo.blogspot.com[..]educing-bottlenecks-in-jee-stack_14.html
(google search)
(amazon search)
Thu Oct 12 10:20:38 GMT 2006
From /weblog/java/performance
Improving performance in distributed Web applications * Keep the session minimal - generally a bad idea to store shared objects in the session. * Don't bypass setAttribute - if you just call getAttribute() to retrieve the Vector and then add something to it without then calling setAttribute again, the container might not realize that Vector has been changed. * Use fine-grained session attributes - finer-grained objects in the session rather than one big monolithic object. * Invalidate when done - call HttpSession.invalidate() * Keep the session clean - remove reference to unuse thing to help GC http://www-106.ibm.com/developerworks/library/j-jtp07294.html
(google search)
(amazon search)
Thu Mar 23 07:44:36 GMT 2006
From /weblog/java/performance
Show common pitfall of cleaning up non-memory resource, stream, database resource and class level collection. http://www-128.ibm.com[..]rks/java/library/j-jtp03216.html?ca=drs-
(google search)
(amazon search)
|