while(snapshots.size()>getKeepSnapshotsCount()) {
snapshots.removeLast();
}
// publish app event
appCtx.publishEvent(new StatSnapshotEvent(this,snapshot));
// temporary workaround for
// [ 996161 ] Fix DNSJava issues (memory) -- replace with JNDI-DNS?
// http://sourceforge.net/support/tracker.php?aid=996161
Lookup.getDefaultCache(DClass.IN).clearCache();