Coder Social home page Coder Social logo

Comments (5)

chewiebug avatar chewiebug commented on July 2, 2024

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.

ecki avatar ecki commented on July 2, 2024

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.

chewiebug avatar chewiebug commented on July 2, 2024

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.

dferrao avatar dferrao commented on July 2, 2024

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.

chewiebug avatar chewiebug commented on July 2, 2024

I close this issue since I can't see a decent solution (see my above comment).

from gcviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.