[Bug 2037] Thread count view queries all summaries for the last hour, every second.
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Thu Jun 2 13:18:59 UTC 2016
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2037
--- Comment #8 from Severin Gehwolf <sgehwolf at redhat.com> ---
(In reply to Jie Kang from comment #7)
> Other plugins like vm-gc and vm-cpu, use DAOs that provide a
> getLatest*(long since, ...) and/or a get*(long since, long to, ...) along
> with code to track the ranges already acquired to reduce the query count
> when updating. This kind of solution could be applied here.
ThreadDao.getThreadSummary(range) is similar to this. The problem here is that
the range is the past hour. Then it repeats this query every second. That is
the first query is fine. The second should not query the last hour anymore. See
comment 3 with suggested fixes.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160602/e4d7fa0f/attachment.html>
More information about the distro-pkg-dev
mailing list