<p class="">NotificationMemoryMonitor uses
MemoryPoolMXBean.setUsageThreshold() to define the memory threshold for triggering
a notification.<span style>  </span>Based on the javadoc for
MemoryPoolMXBean, I think usageThreshold <span style> </span>is independent of whether GC has completed.<span style>  </span>There’s another threshold that takes GC into
account, though. <span style> </span>MemoryPoolMXBean.setCollectionUsageThreshold()
specifies a threshold to be checked after recycling unused objects.</p>

<p class="">This blog post has a nice example of usage threshold vs.
collection usage threshold:<span style>  </span><a href="http://techblug.wordpress.com/2011/07/21/detecting-low-memory-in-java-part-2/">http://techblug.wordpress.com/2011/07/21/detecting-low-memory-in-java-part-2/</a></p>





<p class="">Is the intention with Mondrian memory monitoring to notify whenever
the memory threshold exceeded, or just post-garbage collection?</p>

<p class=""> </p>