Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Memory usage for complete model access
[CDO] Memory usage for complete model access [message #1773896] Fri, 06 October 2017 09:26 Go to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 109
Registered: July 2015
Senior Member
Hi all,

over time, quite a lot of data accumulated in our CDO repository. We are using an integrated CDO server within our application, and everything was running smoothly so far.

Now, we need access every element of the repository recursively to do some batch changes. We experience, that a lot of memory is required once the data was accessed. Even if a separate session is used and closed after the operation, the memory is not freed.

So I guess the caching is done on server side somehow. Is there any way to trigger some cache cleanup for the server?
Re: [CDO] Memory usage for complete model access [message #1774455 is a reply to message #1773896] Sun, 15 October 2017 05:54 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6542
Registered: July 2009
Senior Member
Hi Robert,

Sorry for the late reply. There was a problem with the RSS feed of the forum and your question wasn't shown earlier.

By default caching is done on both server and client side. The server caches CDORevisions and the client caches CDORevisions and CDOObjects. By default CDORevisions and CDOObjects are cached softly. See AbstractCDORevisionCache.createReference(CDORevision) and AbstractCDOView.initObjectsMap(ReferenceType). In both cases cached memory can be reused for other data as soon as your application stops using (referencing) them.

You say you're using an "integrated" server. That could mean that you're duplicating some caches (namely the revision caches and branch trees) for server and client. The new EmbeddedRepository is more optimized for this use case. See org.eclipse.emf.cdo.examples.embedded.EmbeddedRepositoryExample.

Previous Topic:Execute several wme workflow
Next Topic:TransactionChangeRecorder not added in my CDOObject adapters
Goto Forum:

Current Time: Sat Mar 06 12:34:44 GMT 2021

Powered by FUDForum. Page generated in 0.01628 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top