Skip to content

Instantly share code, notes, and snippets.

@elifarley
Last active January 5, 2024 07:52
Show Gist options
  • Select an option

  • Save elifarley/217226b2d13a3cf0770d to your computer and use it in GitHub Desktop.

Select an option

Save elifarley/217226b2d13a3cf0770d to your computer and use it in GitHub Desktop.

Revisions

  1. elifarley revised this gist Dec 20, 2016. 2 changed files with 7 additions and 5 deletions.
    9 changes: 5 additions & 4 deletions 1: jboss4-java-service-wrapper.conf
    Original file line number Diff line number Diff line change
    @@ -29,10 +29,11 @@ wrapper.java.additional.40=-Dcom.sun.management.jmxremote
    wrapper.java.additional.41=-Dcom.sun.management.jmxremote.ssl=false
    wrapper.java.additional.42=-Dcom.sun.management.jmxremote.authenticate=false
    wrapper.java.additional.43=-Dcom.sun.management.jmxremote.port=%JMXREMOTE_PORT%
    wrapper.java.additional.44=-Djava.rmi.server.hostname=%SELF_IP%
    wrapper.java.additional.45=-Djboss.platform.mbeanserver
    wrapper.java.additional.46=-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
    wrapper.java.additional.47=-Dorg.tanukisoftware.wrapper.WrapperManager.mbean.DISABLED=false
    wrapper.java.additional.44=-Dcom.sun.management.jmxremote.rmi.port=%JMXREMOTE_RMI_PORT%
    wrapper.java.additional.45=-Djava.rmi.server.hostname=%SELF_IP%
    wrapper.java.additional.46=-Djboss.platform.mbeanserver
    wrapper.java.additional.47=-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
    wrapper.java.additional.48=-Dorg.tanukisoftware.wrapper.WrapperManager.mbean.DISABLED=false

    wrapper.java.additional.60=-XX:+UnlockDiagnosticVMOptions
    wrapper.java.additional.61=-XX:+PrintFlagsFinal
    3 changes: 2 additions & 1 deletion 2: jbossctl.conf
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,8 @@ export APP_GROUP=$(id -ng $JBOSS_USER)
    export SELF_IP="$(hostname -i)"
    export JBOSS_LOGS="/var/logs/$JBOSS_INSTANCE_NAME/system"
    export JBOSS_PARTITION_NAME=${JBOSS_PARTITION_NAME:-"partition-env1"}
    export JMXREMOTE_PORT=23418
    export JMXREMOTE_PORT=9910
    export JMXREMOTE_RMI_PORT=9911
    export JBOSS_MEMORY_XMS=-Xms10G
    export JBOSS_MEMORY_XMX=-Xmx10G
    export JBOSS_MEMORY_XSS=-Xss256k
  2. elifarley revised this gist Apr 24, 2015. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,7 @@
    -XX:MaxMetaspaceSize=200m
    -XX:MinMetaspaceFreeRatio=0
    -XX:MaxMetaspaceFreeRatio=100
    -XX:ReservedCodeCacheSize=350M
    -XX:+AlwaysPreTouch
    # See http://www.dataforte.net/blog/2010/03/12/java-and-large-memory-pages-on-linux/
    # See http://www.oracle.com/technetwork/java/javase/tech/largememory-jsp-137182.html
    @@ -35,7 +36,16 @@
    -XX:+UseG1GC
    -XX:MaxGCPauseMillis=200
    -XX:GCPauseIntervalMillis=8000
    # -XX:ConcGCThreads=10
    -XX:+UnlockExperimentalVMOptions
    # Default is 5
    -XX:G1NewSizePercent=10
    # Default is 60
    -XX:G1MaxNewSizePercent=80
    # Decrease if gc.log has 'to-space exhausted' (default is 45)
    #-XX:InitiatingHeapOccupancyPercent=30
    # Increase if gc.log has 'concurrent humongous allocation'
    -XX:G1HeapRegionSize=12m
    # -XX:ConcGCThreads=8
    -XX:+UseStringDeduplication
    -XX:StringDeduplicationAgeThreshold=3

  3. elifarley revised this gist Apr 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@
    -server
    -Xverify:none

    -Xms600m
    -Xms600m # ignored when UseLargePages is active
    -Xmx600m # Should be less than 4 GB or at least equal or less than ~26 G. See 'Zero-Based Compressed Ordinary Object Pointers'
    -XX:MetaspaceSize=200m
    -XX:MaxMetaspaceSize=200m
  4. elifarley revised this gist Apr 23, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,7 @@
    # https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt
    # Online calculator: http://www.peuss.de/node/67
    -XX:+UseLargePages
    # grep -i huge /proc/meminfo

    # See http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html
    -XX:+UseG1GC
  5. elifarley revised this gist Apr 23, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,8 @@
    -XX:+AlwaysPreTouch
    # See http://www.dataforte.net/blog/2010/03/12/java-and-large-memory-pages-on-linux/
    # See http://www.oracle.com/technetwork/java/javase/tech/largememory-jsp-137182.html
    # https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt
    # Online calculator: http://www.peuss.de/node/67
    -XX:+UseLargePages

    # See http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html
  6. elifarley revised this gist Apr 23, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,6 @@
    # See http://www.dataforte.net/blog/2010/03/12/java-and-large-memory-pages-on-linux/
    # See http://www.oracle.com/technetwork/java/javase/tech/largememory-jsp-137182.html
    -XX:+UseLargePages
    # -XX:+UseLargePagesIndividualAllocation

    # See http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html
    -XX:+UseG1GC
  7. elifarley revised this gist Apr 23, 2015. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    # See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html
    # See https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm
    # See http://normanmaurer.me/blog_in_progress/2013/11/07/Inline-all-the-Things/
    # See http://stas-blogspot.blogspot.com.br/2011/07/most-complete-list-of-xx-options-for.html

    # -XX:+LogCompilation
    # -XX:+PrintInlining
    @@ -22,10 +23,17 @@
    -XX:MaxMetaspaceSize=200m
    -XX:MinMetaspaceFreeRatio=0
    -XX:MaxMetaspaceFreeRatio=100
    -XX:+AlwaysPreTouch
    # See http://www.dataforte.net/blog/2010/03/12/java-and-large-memory-pages-on-linux/
    # See http://www.oracle.com/technetwork/java/javase/tech/largememory-jsp-137182.html
    -XX:+UseLargePages
    # -XX:+UseLargePagesIndividualAllocation

    # See http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html
    -XX:+UseG1GC
    -XX:MaxGCPauseMillis=200
    -XX:GCPauseIntervalMillis=8000
    # -XX:ConcGCThreads=10
    -XX:+UseStringDeduplication
    -XX:StringDeduplicationAgeThreshold=3

    @@ -35,10 +43,17 @@
    -XX:InlineSmallCode=2000

    -XX:+UnlockDiagnosticVMOptions
    -XX:+PrintCommandLineFlags
    -XX:+PrintFlagsFinal
    # See http://javajee.com/string-interning-and-performance-tuning-in-java
    -XX:+PrintStringTableStatistics
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:HeapDumpPath=java_pid.hprof
    -Xloggc:gc.log
    -XX:+UseGCLogFileRotation
    -XX:NumberOfGCLogFiles=10
    -XX:GCLogFileSize=1048576
    -XX:+PrintGCApplicationStoppedTime
    -XX:+PrintGCDetails
    -XX:+PrintGCDateStamps
    -XX:+PrintGCTimeStamps
  8. elifarley revised this gist Apr 20, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions 0: jvm-options-java8.conf
    Original file line number Diff line number Diff line change
    @@ -50,3 +50,6 @@
    -XX:+PrintTenuringDistribution
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread

    # Enable if you want to debug
    # -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
  9. elifarley revised this gist Apr 20, 2015. 3 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  10. elifarley renamed this gist Apr 20, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  11. elifarley revised this gist Apr 20, 2015. 3 changed files with 90 additions and 0 deletions.
    71 changes: 71 additions & 0 deletions jboss4-java-service-wrapper.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,71 @@
    # Java Additional Parameters
    wrapper.java.additional.1=-Djava.awt.headless=true
    wrapper.java.additional.2=-Djava.net.preferIPv4Stack=true

    wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000
    wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000

    wrapper.java.additional.5=-server
    wrapper.java.additional.6=%JBOSS_MEMORY_XMS%
    wrapper.java.additional.7=%JBOSS_MEMORY_XMX%
    wrapper.java.additional.8=%JBOSS_MEMORY_XSS%
    wrapper.java.additional.9=-XX:MetaspaceSize=256m
    wrapper.java.additional.10=%JBOSS_MEMORY_MAXPERMSIZE%
    wrapper.java.additional.11=-XX:MinMetaspaceFreeRatio=0
    wrapper.java.additional.12=-XX:MaxMetaspaceFreeRatio=100

    wrapper.java.additional.20=-XX:+UseG1GC
    wrapper.java.additional.21=-XX:MaxGCPauseMillis=300
    wrapper.java.additional.22=-XX:GCPauseIntervalMillis=8000
    wrapper.java.additional.23=-XX:+UseStringDeduplication
    wrapper.java.additional.24=-XX:StringDeduplicationAgeThreshold=3

    wrapper.java.additional.30=-XX:+AggressiveOpts
    wrapper.java.additional.31=-XX:MaxTrivialSize=12
    wrapper.java.additional.32=-XX:MaxInlineSize=270
    wrapper.java.additional.33=-XX:InlineSmallCode=2000

    wrapper.java.additional.40=-Dcom.sun.management.jmxremote
    wrapper.java.additional.41=-Dcom.sun.management.jmxremote.ssl=false
    wrapper.java.additional.42=-Dcom.sun.management.jmxremote.authenticate=false
    wrapper.java.additional.43=-Dcom.sun.management.jmxremote.port=%JMXREMOTE_PORT%
    wrapper.java.additional.44=-Djava.rmi.server.hostname=%SELF_IP%
    wrapper.java.additional.45=-Djboss.platform.mbeanserver
    wrapper.java.additional.46=-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
    wrapper.java.additional.47=-Dorg.tanukisoftware.wrapper.WrapperManager.mbean.DISABLED=false

    wrapper.java.additional.60=-XX:+UnlockDiagnosticVMOptions
    wrapper.java.additional.61=-XX:+PrintFlagsFinal
    wrapper.java.additional.62=-XX:+HeapDumpOnOutOfMemoryError
    wrapper.java.additional.63=-XX:HeapDumpPath=%JBOSS_LOGS%/java_pid.hprof
    wrapper.java.additional.64=-Xloggc:%JBOSS_LOGS%/gc.log
    wrapper.java.additional.65=-XX:+PrintGCDetails
    wrapper.java.additional.66=-XX:+PrintGCDateStamps
    wrapper.java.additional.67=-XX:+PrintGCTimeStamps
    # wrapper.java.additional.68=-XX:+PrintStringDeduplicationStatistics
    wrapper.java.additional.69=-XX:+G1PrintRegionLivenessInfo
    wrapper.java.additional.70=-XX:+G1SummarizeConcMark
    wrapper.java.additional.71=-XX:+G1SummarizeRSetStats
    wrapper.java.additional.72=-XX:+PrintAdaptiveSizePolicy
    wrapper.java.additional.73=-XX:+PrintTenuringDistribution
    wrapper.java.additional.74=-XX:+G1TraceConcRefinement
    wrapper.java.additional.75=-XX:+TraceGCTaskThread

    wrapper.java.additional.90=%JBOSS_REMOTE_DEBUG%

    wrapper.java.additional.100=-Dprogram.name=run-wrapper.sh
    wrapper.java.additional.101=-Dorg.jboss.resolver.warning=true
    wrapper.java.additional.102=-Dsun.lang.ClassLoader.allowArraySyntax=true
    wrapper.java.additional.103=-Djboss.server.log.dir=%JBOSS_LOGS%
    wrapper.java.additional.104=-Djboss.partition.name=%JBOSS_PARTITION_NAME%
    wrapper.java.additional.105=-Djava.endorsed.dirs=%JBOSS_HOME%/lib/endorsed
    wrapper.java.additional.106=-D{{c["jboss.service.binding.set"]}}
    wrapper.java.additional.107=-Dm2-repo=%M2_REPO%


    # Application parameters. Add parameters as needed starting from 1
    wrapper.app.parameter.1=org.jboss.Main
    wrapper.app.parameter.2=-b
    wrapper.app.parameter.3=0.0.0.0
    wrapper.app.parameter.4=-c
    wrapper.app.parameter.5=%JBOSS_INSTANCE_NAME%
    19 changes: 19 additions & 0 deletions jbossctl.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    export LANG="pt_BR.UTF-8"
    export DISABLE_JSW=""
    export JBOSS_INSTANCE_NAME="JB1-ENV1"
    export SERVERGROUP_NAME=${JBOSS_INSTANCE_NAME#*[-_]}
    export JAVA_HOME="/opt/jdk-8"
    export JBOSS_HOME=${JBOSS_HOME:-"/opt/jboss-4.2.2.GA-jdk6"}
    export JBOSS_INSTANCE_HOME="$JBOSS_HOME/server/$JBOSS_INSTANCE_NAME"
    export M2_REPO="/opt/shared-libs"
    export JBOSS_USER=${JBOSS_USER:-"jboss"}
    export APP_GROUP=$(id -ng $JBOSS_USER)
    export SELF_IP="$(hostname -i)"
    export JBOSS_LOGS="/var/logs/$JBOSS_INSTANCE_NAME/system"
    export JBOSS_PARTITION_NAME=${JBOSS_PARTITION_NAME:-"partition-env1"}
    export JMXREMOTE_PORT=23418
    export JBOSS_MEMORY_XMS=-Xms10G
    export JBOSS_MEMORY_XMX=-Xmx10G
    export JBOSS_MEMORY_XSS=-Xss256k
    export JBOSS_MEMORY_MAXPERMSIZE=-XX:MaxPermSize=256m
    export JBOSS_REMOTE_DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
    File renamed without changes.
  12. elifarley revised this gist Apr 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,9 @@
    -Dfile.encoding=UTF-8
    -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
    -Dawt.useSystemAAFontSettings=lcd
    -Djava.net.preferIPv4Stack=true
    -Dsun.java2d.opengl=true
    -Dsun.java2d.d3d=false
    -Djava.net.preferIPv4Stack=true

    -server
    -Xverify:none
  13. elifarley revised this gist Apr 17, 2015. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -12,19 +12,28 @@
    -Djava.net.preferIPv4Stack=true
    -Dsun.java2d.opengl=true
    -Dsun.java2d.d3d=false

    -server
    -Xverify:none

    -Xms600m
    -Xmx600m # Should be less than 4 GB or at least equal or less than ~26 G. See 'Zero-Based Compressed Ordinary Object Pointers'
    -XX:MetaspaceSize=200m
    -XX:MaxMetaspaceSize=200m
    -XX:MinMetaspaceFreeRatio=0
    -XX:MaxMetaspaceFreeRatio=100

    -XX:+UseG1GC
    -XX:MaxGCPauseMillis=200
    -XX:GCPauseIntervalMillis=8000
    -XX:+UseStringDeduplication
    -XX:StringDeduplicationAgeThreshold=3

    -XX:+AggressiveOpts
    -XX:MaxTrivialSize=12
    -XX:MaxInlineSize=270
    -XX:InlineSmallCode=2000

    -XX:+UnlockDiagnosticVMOptions
    -XX:+PrintFlagsFinal
    -XX:+HeapDumpOnOutOfMemoryError
    @@ -41,7 +50,3 @@
    -XX:+PrintTenuringDistribution
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread
    -XX:+AggressiveOpts
    -XX:MaxTrivialSize=12
    -XX:MaxInlineSize=270
    -XX:InlineSmallCode=2000
  14. elifarley revised this gist Apr 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,13 @@
    # -XX:+LogCompilation
    # -XX:+PrintInlining

    -server
    -Dfile.encoding=UTF-8
    -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
    -Dawt.useSystemAAFontSettings=lcd
    -Djava.net.preferIPv4Stack=true
    -Dsun.java2d.opengl=true
    -Dsun.java2d.d3d=false
    -server
    -Xverify:none
    -Xms600m
    -Xmx600m # Should be less than 4 GB or at least equal or less than ~26 G. See 'Zero-Based Compressed Ordinary Object Pointers'
  15. elifarley revised this gist Apr 17, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,6 @@
    -XX:StringDeduplicationAgeThreshold=3
    -XX:+UnlockDiagnosticVMOptions
    -XX:+PrintFlagsFinal
    –XX:+PrintCodeCache
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:HeapDumpPath=java_pid.hprof
    -Xloggc:gc.log
  16. elifarley revised this gist Apr 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,6 @@
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread
    -XX:+AggressiveOpts
    -XX:MaxInlineSize=270
    -XX:MaxTrivialSize=12
    -XX:MaxInlineSize=270
    -XX:InlineSmallCode=2000
  17. elifarley revised this gist Apr 17, 2015. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,8 @@
    # See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
    # See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html
    # See https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm
    # See http://normanmaurer.me/blog_in_progress/2013/11/07/Inline-all-the-Things/

    # -XX:InlineSmallCode=1500
    # -XX:MaxInlineSize=270
    # -XX:MaxTrivialSize=12
    # -XX:+LogCompilation
    # -XX:+PrintInlining

    @@ -29,6 +27,7 @@
    -XX:StringDeduplicationAgeThreshold=3
    -XX:+UnlockDiagnosticVMOptions
    -XX:+PrintFlagsFinal
    –XX:+PrintCodeCache
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:HeapDumpPath=java_pid.hprof
    -Xloggc:gc.log
    @@ -44,3 +43,6 @@
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread
    -XX:+AggressiveOpts
    -XX:MaxInlineSize=270
    -XX:MaxTrivialSize=12
    -XX:InlineSmallCode=2000
  18. elifarley revised this gist Apr 17, 2015. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,12 @@
    # See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
    # See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html
    # See http://normanmaurer.me/blog_in_progress/2013/11/07/Inline-all-the-Things/

    # -XX:InlineSmallCode=size
    # -XX:MaxInlineSize=size
    # -XX:MaxTrivialSize=size
    # -XX:+PrintInlining
    # -XX:InlineSmallCode=1500
    # -XX:MaxInlineSize=270
    # -XX:MaxTrivialSize=12
    # -XX:+LogCompilation
    # -XX:+PrintInlining

    -server
    -Dfile.encoding=UTF-8
  19. elifarley revised this gist Apr 17, 2015. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    # See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
    # See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html

    # -XX:+AggressiveHeap ?
    # -XX:InlineSmallCode=size
    # -XX:MaxInlineSize=size
    # -XX:MaxTrivialSize=size
    # -XX:+PrintInlining
    # -XX:+LogCompilation

    -server
    -Dfile.encoding=UTF-8
    @@ -15,7 +16,7 @@
    -Dsun.java2d.d3d=false
    -Xverify:none
    -Xms600m
    -Xmx600m
    -Xmx600m # Should be less than 4 GB or at least equal or less than ~26 G. See 'Zero-Based Compressed Ordinary Object Pointers'
    -XX:MetaspaceSize=200m
    -XX:MaxMetaspaceSize=200m
    -XX:MinMetaspaceFreeRatio=0
    @@ -41,7 +42,4 @@
    -XX:+PrintTenuringDistribution
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread
    -XX:+UnlockExperimentalVMOptions
    -XX:+AggressiveOpts
    -XX:+DoEscapeAnalysis
    -XX:+UseCompressedOops
  20. elifarley revised this gist Apr 17, 2015. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,11 @@
    # See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

    # -XX:+AggressiveHeap ?
    # -XX:InlineSmallCode=size
    # -XX:MaxInlineSize=size
    # -XX:MaxTrivialSize=size
    # -XX:+PrintInlining

    -server
    -Dfile.encoding=UTF-8
    -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
  21. elifarley created this gist Apr 16, 2015.
    39 changes: 39 additions & 0 deletions jvm-options-java8.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    -server
    -Dfile.encoding=UTF-8
    -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
    -Dawt.useSystemAAFontSettings=lcd
    -Djava.net.preferIPv4Stack=true
    -Dsun.java2d.opengl=true
    -Dsun.java2d.d3d=false
    -Xverify:none
    -Xms600m
    -Xmx600m
    -XX:MetaspaceSize=200m
    -XX:MaxMetaspaceSize=200m
    -XX:MinMetaspaceFreeRatio=0
    -XX:MaxMetaspaceFreeRatio=100
    -XX:+UseG1GC
    -XX:MaxGCPauseMillis=200
    -XX:GCPauseIntervalMillis=8000
    -XX:+UseStringDeduplication
    -XX:StringDeduplicationAgeThreshold=3
    -XX:+UnlockDiagnosticVMOptions
    -XX:+PrintFlagsFinal
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:HeapDumpPath=java_pid.hprof
    -Xloggc:gc.log
    -XX:+PrintGCDetails
    -XX:+PrintGCDateStamps
    -XX:+PrintGCTimeStamps
    -XX:+PrintStringDeduplicationStatistics
    -XX:+G1PrintRegionLivenessInfo
    -XX:+G1SummarizeConcMark
    -XX:+G1SummarizeRSetStats
    -XX:+PrintAdaptiveSizePolicy
    -XX:+PrintTenuringDistribution
    -XX:+G1TraceConcRefinement
    -XX:+TraceGCTaskThread
    -XX:+UnlockExperimentalVMOptions
    -XX:+AggressiveOpts
    -XX:+DoEscapeAnalysis
    -XX:+UseCompressedOops