Support deals with a considerable number of performance cases, and often for those we'll need to get a customer to enable GC logging and then generate and send us a Support Zip, or a compressed folder of their logs. This can often add another step for the customer to both enable GC logging and then wait for the problem to replicate itself. Sometimes this can take days, and meanwhile the customers instance is not in the best state. If they had GC logs enabled by default, when submitting that ZIP we'd have them straight away and can analyse them immediately. This would be a huge win for helping us make our customers awesome.
The current setenv.sh & setenv.bat files have the below arguments set in them:
However this by itself will not provide helpful logs, we really need the following as well, as in the Garbage Collection Performance Problems KB:
That directory will vary depending on where JIRA has been installed as well, ideally if we could set it with an environment variable or hardcode it based on the installed / changes to $JIRA_HOME, that would be amazing.
If you could add log rotation to those logs as well that would be AWESOME.
JDK 7 includes automatic GC log rotation options. More in http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
The size of the log file at which point the log will be rotated, must be >= 8K.