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

Add Java Garbage Collection parser #161

Open
otisg opened this issue Apr 12, 2019 · 4 comments
Open

Add Java Garbage Collection parser #161

otisg opened this issue Apr 12, 2019 · 4 comments
Assignees

Comments

@otisg
Copy link
Member

otisg commented Apr 12, 2019

Note that different JVMs have different GC log patterns. We could pick a few from the most popular JVMs/versions.

@prog8
Copy link

prog8 commented Apr 12, 2019

JVM GC logs format depends not only on JVM version but also JVM settings used to start JVM.

We can look here to get inspirations: https://github.com/chewiebug/GCViewer/tree/develop/src/main/java/com/tagtraum/perf/gcviewer/imp

An example for G1 logs parser: https://github.com/chewiebug/GCViewer/blob/develop/src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderSun1_6_0G1.java

Notice that extracting valuable numeric data is not trivial but hopefully doable with simple JS regexps. @megastef could you take a quick look at the example of parser to see how much effort would it require on LA side to prepare regular expressions which can handle it?

This one also looks interesting. Maybe can be useful: https://github.com/Mortinke/logstash-pattern/blob/master/logstash/etc/logstash/patterns/gc

@radu-gheorghe
Copy link
Contributor

Here's a sample G1 GC log from OpenJDK 11. Running Elasticsearch 7.0, though this shouldn't matter.
gc.log

@megastef
Copy link
Contributor

@radu-gheorghe
Copy link
Contributor

Will do. And get back to you.

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

No branches or pull requests

4 participants