SoftReferences not cleaned up

yu.zhang at oracle.com yu.zhang at oracle.com
Mon Jul 10 16:30:21 UTC 2017


Can you add PrintReferenceGC to print out number of references for each gc?

Thanks

Jenny


On 07/10/2017 05:52 AM, Nicolae Mihalache wrote:
> I didn't have verbose gc enabled but I did enable it, and  here is the 
> log in the last 3 days:
> https://drive.google.com/drive/u/0/folders/0B8_hkIRtZSShdkdUTGhRMjNPVVk
>
>
> The "Full GC" is related to a jmap -histo:live I was running.
>
> On Fri, Jul 7, 2017 at 11:16 PM, Bernd Eckenfels 
> <ecki at zusammenkunft.net <mailto:ecki at zusammenkunft.net>> wrote:
>
>     Can you upload the verbose GC log somewhere? I suspect you don't
>     see old/mixed GCs since 30h.
>
>     Gruss
>     Bernd
>     -- 
>     http://bernd.eckenfels.net
>     ------------------------------------------------------------------------
>     *From:* hotspot-gc-use <hotspot-gc-use-bounces at openjdk.java.net
>     <mailto:hotspot-gc-use-bounces at openjdk.java.net>> on behalf of
>     Nicolae Mihalache <xpromache at gmail.com <mailto:xpromache at gmail.com>>
>     *Sent:* Friday, July 7, 2017 1:58:11 PM
>     *To:* hotspot-gc-use at openjdk.java.net
>     <mailto:hotspot-gc-use at openjdk.java.net>
>     *Subject:* SoftReferences not cleaned up
>     Hello,
>
>     I have problems understanding why the SoftReferences are not
>     cleaned up.  This is my version of java:
>     java -version
>     java version "1.8.0_92"
>     Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
>     Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
>
>     and I run it with the options -Xmx512m  -XX:SoftRefLRUPolicyMSPerMB=1
>
>     Still the number of SoftReferences keep increasing and I see that
>     some of them are 30+ hours old. I have a heap dump:
>     https://drive.google.com/open?id=0B8_hkIRtZSShNUtTZUx3UTFuMEk
>     <https://drive.google.com/open?id=0B8_hkIRtZSShNUtTZUx3UTFuMEk>
>
>     I don't know how to debug further, any hint would be appreciated.
>
>     thanks,
>     nicolae
>
>     _______________________________________________
>     hotspot-gc-use mailing list
>     hotspot-gc-use at openjdk.java.net
>     <mailto:hotspot-gc-use at openjdk.java.net>
>     http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>     <http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use>
>
>
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20170710/53457ef6/attachment.html>


More information about the hotspot-gc-use mailing list