Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Application was stopped for >1s but GCViewer shows only 0.12s #25

Closed
ghost opened this Issue May 2, 2012 · 4 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented May 2, 2012

Hello!

I have a log which shows that application was stopped for more than 1second.

-bash-3.2$ grep "stopped" gc.log |grep -v "0."
Total time for which application threads were stopped: 1.0452510 seconds
Total time for which application threads were stopped: 1.2077760 seconds
Total time for which application threads were stopped: 1.8804600 seconds
Total time for which application threads were stopped: 1.7116780 seconds
...

But for some reason GCViewer Y-axis maximum value is 0.12second. If I don't grep the log it seems that everything was fine though really it wasn't.

Here is the log - http://db.tt/dr8mjtou
And the picture - http://db.tt/AbaYsm6p

Thanks!

Owner

chewiebug commented May 2, 2012

Hi,

It looks like those stopped times are not (at least not always) related to garbage collection events. http://stackoverflow.com/questions/6870180/why-are-there-multiple-total-time-for-which-application-threads-were-stopped-l

GCViewer only analyses the GC events and ignores other events.

Regards, Jörg

-------- Original-Nachricht --------

Datum: Wed, 2 May 2012 00:12:28 -0700
Von: ktyurin reply@reply.github.com
An: chewiebug jwu@gmx.ch
Betreff: [GCViewer] Application was stopped for >1s but GCViewer shows only 0.12s (#25)

Hello!

I have a log which shows that application was stopped for more than
1second.

-bash-3.2$ grep "stopped" gc.log |grep -v "0."
Total time for which application threads were stopped: 1.0452510 seconds
Total time for which application threads were stopped: 1.2077760 seconds
Total time for which application threads were stopped: 1.8804600 seconds
Total time for which application threads were stopped: 1.7116780 seconds
...

But for some reason GCViewer Y-axis maximum value is 0.12second. If I
don't grep the log it seems that everything was fine though really it wasn't.

Here is the log - http://db.tt/dr8mjtou
And the picture - http://db.tt/AbaYsm6p

Thanks!


Reply to this email directly or view it on GitHub:
#25

NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

@chewiebug chewiebug added this to the 1.34 milestone Aug 3, 2014

@chewiebug chewiebug self-assigned this Aug 3, 2014

chewiebug added a commit that referenced this issue Aug 3, 2014

Merge branch '#90-application-stopped' (evaluate output generated by …
…`-XX:+PrintGCApplicationStoppedTime` and show in chart / statistics)

addresses issues
- #106 G1; combination of -XX:+PrintGCApplicationStoppedTime, -XX:+PrintTenuringDistribution, -XX:+PrintAdaptiveSizePolicy
- #91 G1; combination of -XX:+PrintGCApplicationStoppedTime, -XX:+PrintTenuringDistribution
- #90 (Oracle Parser without G1); -XX:+PrintGCApplicationStoppedTime
- #25 G1 and others; evaluate -XX:+PrintGCApplicationStoppedTime
Owner

chewiebug commented Aug 3, 2014

Hi,

If you are still listening here: I have merged a branch that adresses your issue. You can download the latest 1.34-SNAPSHOT version. The sample file you posted here, is now parsed and the "application stopped" events evaluated (see changelog).

If you find something missing concerning this issue, please reopen it.

Best regards,
Jörg

@chewiebug chewiebug closed this Aug 3, 2014

@ghost

ghost commented Aug 4, 2014

Much appreciated!

Owner

chewiebug commented Aug 4, 2014

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment