jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r995436 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Thu, 09 Sep 2010 14:06:36 GMT
Author: stefan
Date: Thu Sep  9 14:06:35 2010
New Revision: 995436

URL: http://svn.apache.org/viewvc?rev=995436&view=rev
Log:
added some log mgs in order to determine repository startup performance

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=995436&r1=995435&r2=995436&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Thu Sep  9 14:06:35 2010
@@ -275,6 +275,7 @@ public class RepositoryImpl extends Abst
         repLock.init(repConfig.getHomeDir());
         repLock.acquire();
 
+        long t0 = System.currentTimeMillis();
         log.info("Starting repository...");
 
         boolean succeeded = false;
@@ -377,7 +378,7 @@ public class RepositoryImpl extends Abst
             }
 
             succeeded = true;
-            log.info("Repository started");
+            log.info("Repository started (" + (System.currentTimeMillis() - t0) + "ms)");
         } catch (RepositoryException e) {
             log.error("failed to start Repository: " + e.getMessage(), e);
             throw e;
@@ -2033,6 +2034,8 @@ public class RepositoryImpl extends Abst
              * {@link org.apache.jackrabbit.core.state.SharedItemStateManager#createRootNodeState}
              */
 
+            log.debug("initializing SearchManager...");
+            long t0 = System.currentTimeMillis();
             // register SearchManager as event listener
             SearchManager searchMgr = getSearchManager();
             if (searchMgr != null) {
@@ -2042,6 +2045,7 @@ public class RepositoryImpl extends Abst
                                 | Event.PROPERTY_CHANGED,
                         "/", true, null, null, false);
             }
+            log.debug("SearchManager initialized (" + (System.currentTimeMillis() - t0) +
"ms)");
         }
 
         /**



Mime
View raw message