jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sstrickland <sstrickl...@costco.com>
Subject Re: Creating Nodes is Excruciatingly Slow
Date Wed, 11 Apr 2007 16:51:01 GMT

I searched my jar files and did not find anything having "bundle" in the
name.  The persistence managers I have are:
     DatabasePersistencemanager.class  
     DerbyPersistencemanager.class
     JNDIDatabasePersistencemanager.class
     OraclePersistencemanager.class
     SimpleDBPersistencemanager.class

How do I change this to a bundle persistence manager?  In my
StartServer.class, I have the following code:
                // Register the repository in JNDI
    	Hashtable env = new Hashtable();
    	env.put(Context.INITIAL_CONTEXT_FACTORY,
    	     
"org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory");
    	env.put(Context.PROVIDER_URL, "localhost");
    	InitialContext ctx = new InitialContext(env);
    	RegistryHelper.registerRepository(ctx, 
    	       "repo", 
    	        configFile, 
    	        repHomeDir, 
    	        true);

My classpath contains:

      <classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="var" path="WAS_EXTDIR/log4j-1.2.13.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-jcr-rmi-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jcr-1.0.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/slf4j-log4j12-1.0.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/concurrent-1.3.4.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-core-1.1.1.jar"/>
	<classpathentry kind="var"
path="WAS_EXTDIR/jackrabbit-jcr-commons-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/jackrabbit-api-1.2.3.jar"/>
	<classpathentry kind="var" path="WAS_EXTDIR/lucene-1.4.3.jar"/>
	<classpathentry kind="output" path="bin"/>
      </classpath>


My repository.xml has:
       <PersistenceManager
 	class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">   
	<param name="driver" value="com.ibm.as400.access.AS400JDBCDriver" />
	<param name="url" 
		value="jdbc:as400://ISERIES/MYSCHEMA;
			errors=basic;
			trace=false;
			thread used=false;
			naming=system;
			libraries=*LIBL,wbtstdta,wbtstexc"/>
	/>
	<param name="user" value="xxxxxx" />
	<param name="password" value="xxxxxx" />
	<param name="schema" value="db2"/>
	<param name="schemaObjectPrefix" value="PEP_"/>
	<param name="externalBLOBs" value="false" />
   </PersistenceManager>

Do I need another jar?

Thank you,

Skip






Jukka Zitting wrote:
> 
> Hi,
> 
> On 4/11/07, sstrickland <sstrickland@costco.com> wrote:
>> I use a db2 database on an iSeries (AS400) to store my project.  I
>> connect
>> just fine, and I can create nodes, child nodes and grandchild nodes,
>> along
>> with appropriate properties.  It's just that it is so very slow.  20-30
>> seconds per node!  Am I doing anything wrong?
> 
> You are probably running the content repository on a separate server
> than the database. The database persistence manager performance is
> quite sensitive to network latency, so the roundtrip time to the
> database server should be < 10ms.
> 
> I assume you currently use the default database persistence manager in
> Jackrabbit 1.x. You might want to try the bundle persistence manager
> in the Jackrabbit trunk since it's not as latency-constrained as the
> current database persistence manager.
> 
> BR,
> 
> Jukka Zitting
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-Nodes-is-Excruciatingly-Slow-tf3556976.html#a9943316
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Mime
View raw message