Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] memory consumption keeps building up
[Teneo] memory consumption keeps building up [message #604344] Wed, 04 April 2007 14:19
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member

Every time user creates a project in our application we initialize a new
database (embedded HSQLDB) and hence we have to initialize HbDataStore.
I have number of emf models and nearly 100mb is consumed on each
Before user can create another project, existing opened(if any)
project/database is closed and session is cleared.

These are the steps done on close of project:

session.flush(); //session obtained from teneo
//here shutdown statement is issued for the db and then
HbHelper.INSTANCE.deRegisterDataStore(_dbName); // _dbName is
session factory name
sessionFactory.close(); //session factory obtained from teneo
Runtime runtime = Runtime.getRuntime();

But it seems that emf objects created during models initialization
remains in memory and so if user creates another project then again
100mb is consumed and hence shortly runs out of memory.

So just wondering do I have to do something more about clearing?

Any suggestions to fix it?

Previous Topic:fetching non-containment relations eagerly
Next Topic:[Announce] EMFT JET 0.8.0M6 is available
Goto Forum:

Current Time: Tue Oct 20 12:56:09 GMT 2020

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

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

Back to the top