Comments (5)
Hi,
Thanks for mentioning this issue.
I can't reproduce the error messages you have copied above using -XX:+ExplicitGCInvokesConcurrent. So the gc log input would help (please use [email protected] to send the log).
Second question: What version of the JDK and what other options did you use to produce this log?
Regards, Jörg
from gcviewer.
The Message looks like
-XX:+PrintGCApplicationConcurrentTime and -XX:+PrintGCApplicationStoppedTime
BTW: in my tests the stopped time is often little bit higher than the GC durations, so might be worth parsing.
Bernd
from gcviewer.
Hi David
Bernd was right, the lines causing the parser exceptions are not caused
by -XX:+ExplicitGCInvokesConcurrent but by
-XX:+PrintGCApplicationConcurrentTime and
-XX:+PrintGCApplicationStoppedTime.
The explanation for the exceptions is easy: The gc algorithm is
concurrent, so sometimes the log output contains mixed lines which were
written at the same time by different threads and were not synchronized
before being written to the log file.
Example:
2012-08-23T04:32:38.692-0400: Application time: 0.0001990 seconds
154.700: [CMS-concurrent-sweep-start]
About half of the first line (without "Application time") is part of the
CMS-concurrent-sweep-start event, which finishes on the second line.
"Application time..." is a different event written in the middle of the
first event. The problem is, that the parser doesn't expect this mix of
lines and can't recover from it.
The solution is difficult, because there is no real pattern to these
mixed lines. I have implemented a solution for a few cases where
stop-the-world events are involved to improve accuracy of the GCViewer
graph, but the code tends to get tricky because of the lack of the patterns.
Since they don't appear too often in my experience, I consider this low
priority.
Regards, Jörg
from gcviewer.
Ok. Thank you for taking a look.
Regards
David
On 29 Aug 2012 22:56, "chewiebug" [email protected] wrote:
Hi David
Bernd was right, the lines causing the parser exceptions are not caused
by -XX:+ExplicitGCInvokesConcurrent but by
-XX:+PrintGCApplicationConcurrentTime and
-XX:+PrintGCApplicationStoppedTime.The explanation for the exceptions is easy: The gc algorithm is
concurrent, so sometimes the log output contains mixed lines which were
written at the same time by different threads and were not synchronized
before being written to the log file.Example:
2012-08-23T04:32:38.692-0400: Application time: 0.0001990 seconds
154.700: [CMS-concurrent-sweep-start]About half of the first line (without "Application time") is part of the
CMS-concurrent-sweep-start event, which finishes on the second line.
"Application time..." is a different event written in the middle of the
first event. The problem is, that the parser doesn't expect this mix of
lines and can't recover from it.The solution is difficult, because there is no real pattern to these
mixed lines. I have implemented a solution for a few cases where
stop-the-world events are involved to improve accuracy of the GCViewer
graph, but the code tends to get tricky because of the lack of the
patterns.Since they don't appear too often in my experience, I consider this low
priority.Regards, Jörg
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-8133653.
from gcviewer.
I close this issue since I can't see a decent solution (see my above comment).
from gcviewer.
Related Issues (20)
- Total promotion can get negative HOT 8
- 时间区间缺少png自动选择功能 HOT 1
- Error parsing openjdk 11 logs HOT 1
- OpenJDK - additional tags fail parsing HOT 1
- SEVERE [DataReaderFactory]: Failed to recognize file format. HOT 5
- macOS - Application hangs when quitting
- Error when open file HOT 2
- Parse problem for Java 11 Unified GC logging format HOT 1
- GCViewerForQianKunZhao HOT 1
- What do you think of changing the license to Apache 2.0? HOT 3
- Failed to parse gc event "Merge Heap Roots" on Adopt OpenJDK 17 HOT 1
- The reported freed memory is incorrect
- Java 17 ready version ? HOT 1
- Tenured Generation graph not showing up when using openJDK 11 HOT 2
- The environment variable JAVA_HOME is not correctly set. HOT 1
- Wrong graph display when open series HOT 4
- Parse xml G1GC on openjdk9 error
- Interactive Action of mouse movement on chart HOT 2
- Support graphical display of metaspace? HOT 1
- Release 1.37
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcviewer.