[
https://issues.apache.org/jira/browse/SAMZA-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743079#comment-13743079
]
Chris Riccomini commented on SAMZA-20:
--------------------------------------
I don't think injecting the bash date command has quite the same behavior as
-XX:+UseGCLogFileRotation. It seems like everyone mis-understood me at the
lunch table. :) What I'm after is GC log rolling of a still-running process,
not rolling the logs when the process restarts.
RFE 6941923 (referenced in the Stack Overflow link) allows you to specify:
{noformat}
1) -XX:+UseGCLogRotation must be used with
-Xloggc:<filename>
2) -XX:NumberOfGClogFiles=<number of files> must be >=1, default is one
3) -XX:GCLogFileSize=<number>M (or K) default will be set to 512K
{noformat}
> Roll gc logs in run-class.sh
> ----------------------------
>
> Key: SAMZA-20
> URL: https://issues.apache.org/jira/browse/SAMZA-20
> Project: Samza
> Issue Type: Bug
> Reporter: Chris Riccomini
>
> The run-class.sh script defaults to setting up a gc.log file, if SAMZA_OPTS
> is undefined.
> Newer versions of Java 6, and Java 7 allow you to roll gc log files with
> -XX:+UseGCLogFileRotation. See
> http://stackoverflow.com/questions/3822097/rolling-garbage-collector-logs-in-java
> for details.
> Should also validate that the change doesn't break with older Java 6 versions.
> Also, [~sureshms] was saying that there's an alternate way to do this. Suresh
> - care to chime in?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira