<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Filed as: <a href="https://bugs.openjdk.java.net/browse/JDK-8072498" class="">https://bugs.openjdk.java.net/browse/JDK-8072498</a><div class=""><br class=""></div><div class="">charlie</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 3, 2015, at 7:03 PM, Srinivas Ramakrishna <<a href="mailto:ysr1729@gmail.com" class="">ysr1729@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">Yes, unfortunately, I don't think Jni refs procsing is parallelized, but should be. Please file a bug...</div><div class=""><br class=""></div><div class="">--- Ramki</div><div class=""><br class=""><br class="">ysr1729</div><div class=""><br class="">On Feb 3, 2015, at 16:19, Bill Hastings <<a href="mailto:bllhastings@gmail.com" class="">bllhastings@gmail.com</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">Yes <span style="font-size:12.8000001907349px" class="">-XX:+ParallelRefProcEnabled</span> is enabled.<div class=""><br class=""></div><div class="">Thanks</div><div class="">Bill.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Feb 3, 2015 at 4:09 PM, charlie hunt <span dir="ltr" class=""><<a href="mailto:charlie.hunt@oracle.com" target="_blank" class="">charlie.hunt@oracle.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="">You might try enabling
      -XX:+ParallelRefProcEnabled.<br class="">
      <br class="">
      This will enable multi-threaded reference processing.<br class="">
      <br class="">
      User CPU time vs real time coupled with the JNI Weak Reference
      time suggests single threaded reference processing.<br class="">
      <br class="">
      hths,<br class="">
      <br class="">
      charlie<div class=""><div class="h5"><br class="">
      <br class="">
      On 02/03/2015 05:20 PM, Bill Hastings wrote:<br class="">
    </div></div></div><div class=""><div class="h5">
    <blockquote type="cite" class="">
      <div dir="ltr" class="">Periodically get this in my CMS GC log:<br class="">
        <br class="">
        2015-02-03T03:24:27.419-0800: 17917.047: [Rescan (parallel) ,
        0.0625400 secs]2015-02-03T03:24:27.482-0800: 17917.110: [weak
        refs processing2015-02-03T03:24:27.482-0800: 17917.110:
        [SoftReference, 1 refs, 0.0010820
        secs]2015-02-03T03:24:27.483-0800: 17917.111: [WeakReference, 0
        refs, 0.0015340 secs]2015-02-03T03:24:27.484-0800: 17917.112:
        [FinalReference, 0 refs, 0.0007930
        secs]2015-02-03T03:24:27.485-0800: 17917.113: [PhantomReference,
        0 refs, 0.0008860 secs]2015-02-03T03:24:27.486-0800: 17917.114:
        [<b class="">JNI Weak Reference, 6.1104040 secs], 6.1148360 secs</b>]2015-02-03T03:24:33.596-0800:
        17923.225: [scrub string table, 0.0006670 secs] [1 CMS-remark:
        531682K(5242880K)] 1827698K(7759488K), 6.1785190 secs] [Times:
        user=7.22 sys=0.00, real=6.18 secs]
        <div class=""><br class="">
        </div>
        <div class="">JNI Weak References processing take several seconds. How do
          I remedy this? I use JNA but I do not use any WeakReference
          classes in my application.</div>
        <div class=""><br class="">
        </div>
        <div class="">Regards<br class="">
        </div>
        <div class="">Bill</div>
      </div>
    </blockquote>
    <br class="">
  </div></div></div>

</blockquote></div><br class=""></div>
</div></blockquote></div></div></blockquote></div><br class=""></div></body></html>