Log File rotation in AEM/CQ5

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

4 comments:

  1. We stumbled over here by a different page and thought
    I 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.

    ReplyDelete
  2. What's up, I read your blog like every week. Your humoristic style is awesome, keep
    up the good work!

    ReplyDelete
  3. Hi there great blog! Does running a blog like this take a great deal of work?
    I'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!

    ReplyDelete
  4. Heya i am for the primary time here. I came across this board
    and 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.

    ReplyDelete