Java garbage collection logging with '0.00' user times

Solution Unverified - Updated -

Issue

  • GC logging initially shows realistic user times:
104.892: [Full GC 1684M->1061M(3584M), 5.2641570 secs]
...
   [Eden: 0.0B(174.0M)->0.0B(179.0M) Survivors: 5120.0K->0.0B Heap: 1684.0M(3584.0M)->1061.9M(3584.0M)]
...
 [Times: user=7.41 sys=0.03, real=5.26 secs]
  • After some period of time, all user times become 0.00:
51678.186: [GC pause (young)
...
   [Eden: 1097.0M(1171.0M)->0.0B(163.0M) Survivors: 18.0M->16.0M Heap: 2952.7M(3584.0M)->1854.3M(3584.0M)]
...
 [Times: user=0.00 sys=0.41, real=0.05 secs]

Environment

  • OpenJDK7 u72
  • GC log is not rotated and is huge (>1GB)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content