GitLab Mirror pushed to branch trunk at cms-community / hippo-jackrabbit
Commits: 9ca46e9f by Claus Köll at 2018-01-10T13:25:24+00:00 Debug Log git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1820747 13f79535-47bb-0310-9956-ffa450edef68 - - - - - 7c353b03 by Claus Köll at 2018-01-10T13:26:03+00:00 Debug Log git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1820748 13f79535-47bb-0310-9956-ffa450edef68 - - - - - 1 changed file: - jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java Changes: ===================================== jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java ===================================== --- a/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java +++ b/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java @@ -764,10 +764,11 @@ public abstract class AbstractBundlePersistenceManager implements throws ItemStateException { long time = System.nanoTime(); NodePropBundle bundle = loadBundle(id); - cacheMissDuration.addAndGet(System.nanoTime() - time); - cacheMissCounter.incrementAndGet(); + time = System.nanoTime() - time; + cacheMissDuration.addAndGet(time); final long timeMs = time / 1000000; - log.debug("Loading bundle {} in {}ms", id, timeMs); + log.debug("Loaded bundle {} in {}ms", id, timeMs); + cacheMissCounter.incrementAndGet(); if (bundle != null) { bundle.markOld(); bundles.put(id, bundle, bundle.getSize()); @@ -798,13 +799,14 @@ public abstract class AbstractBundlePersistenceManager implements private void putBundle(NodePropBundle bundle) throws ItemStateException { long time = System.nanoTime(); storeBundle(bundle); + time = System.nanoTime() - time; if (auditLogger.isDebugEnabled()) { - auditLogger.debug("{} ({})", bundle.getId(), bundle.getSize()); + auditLogger.debug("{} ({})", bundle.getId(), bundle.getSize()); } - writeDuration.addAndGet(System.nanoTime() - time); - writeCounter.incrementAndGet(); + writeDuration.addAndGet(time); final long timeMs = time / 1000000; log.debug("Stored bundle {} in {}ms", bundle.getId(), timeMs); + writeCounter.incrementAndGet(); bundle.markOld(); View it on GitLab: https://code.onehippo.org/cms-community/hippo-jackrabbit/compare/18016b37dfa5f4be92ec1c1c5ad1ddee15a816fe...7c353b03c19ddba939c118167c98b289b87d4c86 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-jackrabbit/compare/18016b37dfa5f4be92ec1c1c5ad1ddee15a816fe...7c353b03c19ddba939c118167c98b289b87d4c86 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn