JDK-8059216 : Make PrintGCApplicationStoppedTime print information about stopping threads
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-09-26
  • Updated: 2015-06-03
  • Resolved: 2014-10-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u80Fixed 8u40Fixed 9 b40Fixed
Related Reports
Relates :  
Description
Currently the PrintGCApplicationStoppedTime flag only prints the total time the application was stopped. In some cases it is very interesting to know how long it took to stop or start all threads. We should add that information to the output.

Note that PrintGCApplicationStoppedTime is a misleading name since it tracks all safepoints and not just GC pauses. See JDK-6924453.
Comments
From en email conversation with Mattis Castegren: I think it would be good to get one line when the threads starts to be stopped. This makes it easier to correlate to other logs. Also, if the JVM hangs during the stopping, we will at least get the output. Howabout 156651.955: [Stopping Threads] 156664.310: [GC concurrent-root-region-scan-start] ... 156664.355: Total time for which application threads were stopped: 12.4237013 seconds, Stopping threads took: 4.71 seconds, Starting threads took 0.01 seconds. /Mattis
29-09-2014