Skip to content
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

Use PrintGCDateStamps over PrintGCTimeStamps #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryandunlavy
Copy link
Contributor

Small change to use -XX:+PrintGCDateStamps instead of -XX:+PrintGCTimeStamps for easier parsing of the GC logs. PrintGCTimeStamps will show the number of seconds since Looker started for garbage collection events, whereas PrintGCDateStamps will show the raw timestamps of the GC events.

https://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html

Small change to use -XX:+PrintGCDateStamps instead of -XX:+PrintGCTimeStamps for easier parsing of the GC logs. PrintGCTimeStamps will show the number of seconds since Looker started for garbage collection events, whereas PrintGCDateStamps will show the raw timestamps of the GC events.

https://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
@ryandunlavy
Copy link
Contributor Author

@vince-looker would you mind taking a quick peek at this?

@mconigliaro
Copy link

This only works on Java 8. I had to use -Xlog:gc*:gc.log in 11. See: https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants