G1GC and finalizer queue
Hongkai Liu
hongkai.liu at ericsson.com
Wed Oct 19 20:16:01 UTC 2016
Hi,
our application (Gerrit) consumes more and more memory and Yourkit showed up with 18M Jdbc4PreparedStatement<http://grepcode.com/file/repo1.maven.org/maven2/postgresql/postgresql/9.1-901.jdbc4/org/postgresql/jdbc4/Jdbc4PreparedStatement.java> objects in "pending finalization" which uses up 21G of mem.
The heap is taken immediately after two GCs.
I wonder why those objects survived of GCs.
According to Yourkit doc<https://www.yourkit.com/docs/java/help/reachability.jsp>, the objects in "pending finalization" are from the class with an implemenation of finalize() method while Jdbc4PreparedStatement<http://grepcode.com/file/repo1.maven.org/maven2/postgresql/postgresql/9.1-901.jdbc4/org/postgresql/jdbc4/Jdbc4PreparedStatement.java> is without it.
Is it about G1GC?
Any hint is appreciated.
BR,
Hongkai
================================
Here are the screenshots of Yourkit and App info.
[cid:82499a3c-9de5-4ae9-b0f3-c9f2e173aa40]
[cid:5dd8cdb6-7736-4294-9bc5-698ad47ecf29]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20161019/742c4e20/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2016-10-19 15:51:04.png
Type: image/png
Size: 54687 bytes
Desc: Screenshot from 2016-10-19 15:51:04.png
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20161019/742c4e20/04-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2016-10-19 15:53:51.png
Type: image/png
Size: 27127 bytes
Desc: Screenshot from 2016-10-19 15:53:51.png
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20161019/742c4e20/51-0001.png>
More information about the hotspot-gc-use
mailing list