-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add G1GC & GC log config #616
Conversation
Codecov Report
@@ Coverage Diff @@
## master #616 +/- ##
============================================
+ Coverage 71.94% 72.36% +0.42%
- Complexity 3640 3740 +100
============================================
Files 219 218 -1
Lines 16882 17296 +414
Branches 2399 2437 +38
============================================
+ Hits 12145 12517 +372
- Misses 3475 3498 +23
- Partials 1262 1281 +19
Continue to review full report at Codecov.
|
|
||
# Rolling out detailed GC logs | ||
#JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+UseGCLogFileRotation -XX:GCLogFileSize=10M -XX:NumberOfGCLogFiles=3 \ | ||
# -Xloggc:./logs/gc.log -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a option to switch whether to use g1
case ${arg} in | ||
m) OPEN_MONITOR="$OPTARG" ;; | ||
v) VERBOSE="verbose" ;; | ||
g) GC_OPTION="-g" ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer -g g1
6869b46
to
06bece5
Compare
JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+UseG1GC -XX:+ParallelRefProcEnabled \ | ||
-XX:InitiatingHeapOccupancyPercent=50 -XX:G1RSetUpdatingPauseTimePercent=5" | ||
;; | ||
*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add default "" case
No description provided.