On 5/10/06, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
On Fri, May 05, 2006 at 01:43:41PM +0200, Stefan Guggisberg wrote:
> On 5/5/06, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
> >Hi there!
> >We are facing some strange issues: there are about 4000 nodes we are
> >trying to
> >save into repository with
> >org.apache.jackrabbit.core.fs.local.LocalFileSystem
> >and org.apache.jackrabbit.core.state.xml.XMLPersistenceManager
> >
> >for some reason it takes about 20 minutes to save session (we are doing
> >session.save after we imported each ~400 nodes).
> >
> >Any ides how to speed up this?
>
> don't use XMLPersistenceManager; you should use jr's default configuration
> (i.e. DerbyPersistenceManager) instead.

I have almost same results with DerbyPersistenceManager for now. It takes
about 15-20 minutes to flush... Any ideas?

some guesses:
- did you start with an empty repository? note that modifying the <Workspace>
 element in repsitory.xml does not affect existing workspace.xml files.
- is your jvm heap size appropriate?
- how do you import those nodes? can you provide a test case?


Here is my repository config below:

<?xml version="1.0"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository" />
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager class="cms.security.LuceneAccessManagerImpl"/>
        <LoginModule class="cms.auth.EasyLoginModule" />
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />

    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}" />
        </FileSystem>

        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" value="jdbc:derby:${wsp.home}/db;create=true" />

            <param name="schemaObjectPrefix" value="${wsp.name}_" />
        </PersistenceManager>
        <SearchIndex 
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index" />
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/versions">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/versions" />
        </FileSystem>
        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" 
value="jdbc:derby:${rep.home}/version/db;create=true" />
            <param name="schemaObjectPrefix" value="version_" />
        </PersistenceManager>
    </Versioning>
</Repository>


--
Eugene N Dzhurinsky

Reply via email to