jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Monteiro <tsmonte...@gmail.com>
Subject Re: session.save() takes too long
Date Mon, 26 May 2008 14:42:58 GMT

Hello Stefan,

thanks for the quick reply. As for your questions:

"what db are you targeting?"

I am currently targeting MySQL, but the application must support other DBs,
this is the reason the repository configuration is geared toward a more
general approach.

"how much memory have you allocated for the jvm?"

Currently, a max of 1024mb is allocated for the jvm. I have tried to ensure
that only the added nodes are in memory during the session.save() through
cleaning the list of nodes after every call (and, thus, the end of the
batch), but i don't really believe this has any impact, since no further
changes are made and tehrefore registered as pending in the Session.

are large binaries involved?

No binaries are involved. The largest data for a single property is a 255
chars string, but even that is hard to come by.

The repository configuration is given below

<code><Repository>
	<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
		
	</FileSystem>
	<Security appName="Jackrabbit">
		<AccessManager
			class="org.apache.jackrabbit.core.security.SimpleAccessManager">
		</AccessManager>

		<LoginModule
			class="org.apache.jackrabbit.core.security.SimpleLoginModule">
			
		</LoginModule>
	</Security>
	<Workspaces rootPath="${rep.home}/workspaces" />
	<Workspace name="${wsp.name}">
		<FileSystem
			class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
			
		</FileSystem>
		<PersistenceManager
		
class="org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager">
			
			
			
		</PersistenceManager>
			<SearchIndex
			class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
			
			
			
			
			
			
			
		</SearchIndex>
	</Workspace>


	<Versioning rootPath="${rep.home}/version">
		<FileSystem
			class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
			
		</FileSystem>

		<PersistenceManager
		
class="org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager">
			
			
			
		</PersistenceManager>
	</Versioning>

	<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
		
	</SearchIndex>

	<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
		
		
	</DataStore>
</Repository></code>


-- 
View this message in context: http://www.nabble.com/session.save%28%29-takes-too-long-tp17471593p17473166.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message