Statement : JVM Log file rotation parameters
Solution :
Add the below parameters in the start.bat/start.sh file of AEM:
XX:+HeapDumpOnOutOfMemoryError
|
— Write an heapdump if the JVM runs out of heap
space
|
XX:+HeapDumpOnCtrlBreak
|
— On windows create an heapdump when pressing ctrl+break
|
verbose:gc
|
— Verbose garbage collection logging
|
XX:+PrintGCTimeStamps
|
— Print timestamps in the GC log
|
XX:+PrintGCDetails
|
— Even more GC information
|
Xloggc:gc.log
|
— Write the GC logs to this file and not to
stdout
|
XX:+UseGCLogFileRoatation
|
— Enable
GC log rotation
|
XX:+NumberOfGCLogFiles=10
|
—Keep 10 versions of that GC log file
|
JVM Parameter
|
Description
|
|
|
§
verbose:gc
|
§
verbose garbage collection logging
|
§
XX:+PrintGCTimeStamps
|
§
print timestamps in the GC log
|
§
XX:+PrintGCDetails
|
§
even more GC information
|
§
Xloggc:gc.log
|
§
write the GC logs to this file and not to stdout
|
§
XX:+UseGCLogFileRoatation
|
§
(since Java 6u32 or Java 7u2) — enable GC log rotation
|
§
XX:+NumberOfGCLogFiles=10
|
§
(since Java 6u32 or Java 7u2) — and keep 10 versions of that GC
log file
|
Log file rotation related findings
Finding ID
|
Title
|
Total Risk
|
Effort to fix
|
LR1
|
verbose:gc
|
Medium
|
Low
|
LR2
|
XX:+PrintGCTimeStamps
|
Medium
|
Low
|
LR3
|
XX:+PrintGCDetails
|
Medium
|
Low
|
LR4
|
Xloggc:gc.log
|
Medium
|
Low
|
LR5
|
XX:+UseGCLogFileRoatation
|
Medium
|
Low
|
LR6
|
XX:+NumberOfGCLogFiles=10
|
Medium
|
Low
|
We stumbled over here by a different page and thought
ReplyDeleteI may as well check things out. I like what I see so now i
am following you. Look forward to exploring your web page
for a second time.
What's up, I read your blog like every week. Your humoristic style is awesome, keep
ReplyDeleteup the good work!
Hi there great blog! Does running a blog like this take a great deal of work?
ReplyDeleteI've very little understanding of programming but I was hoping to start my own blog soon. Anyhow,
if you have any suggestions or techniques for new blog owners please share.
I understand this is off subject but I simply wanted to
ask. Appreciate it!
Heya i am for the primary time here. I came across this board
ReplyDeleteand I in finding It really helpful & it helped me out much.
I'm hoping to present one thing again and help others like you aided me.