Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] OutOfMemory error
[Teneo] OutOfMemory error [message #615409] Wed, 06 February 2008 14:20
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member

Martin has helped me get this far with a large model. I now get

log4j:WARN No appenders could be found for logger
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

I have eclipse set top run with these parameters

D:\eclipse\eclipse.exe -vmargs -Xmx1024M -XX:PermSize=64M

I am using the latest (as of Monday) version of Teneo. I notice the
process doing the work when running my Hib DataStore init (as below)
only uses 100MB. It there some way of increasing the memory available to
this process? There are over 1000 tables being generated.

There is nothing in the error log window from the time I run this.

// the name of the datastore
String hbName = "MyGenSec";
// the name of the database, this database should exist but does not
need to contain tables
String dbName = "gensechib";
// Set the database information, Environment is
final Properties props = new Properties();
props.setProperty(Environment.DRIVER, "com.mysql.jdbc.Driver");
props.setProperty(Environment.USER, "root");
props.setProperty(Environment.PASS, "passw0rd");
props.setProperty(Environment.URL, "jdbc:mysql://" +
// props.setProperty(PersistenceOptions.ID_FEATURE_AS_PRIMARY_K EY,
// create the HbDataStore
HbDataStore hbds = HbHelper.INSTANCE.createRegisterDataStore(hbName);

// sets its epackages stored in this datastore
hbds.setEPackages(new EPackage[]{GensecPackage.eINSTANCE});

// set the relational database to use and other properties
// to set Teneo specific options call hbds.setPersistenceProperties

// initialize, also creates the database tables
hbds.initialize(); }

Previous Topic:Hibernate-CDO
Next Topic:@ManyToOne not working correctly
Goto Forum:

Current Time: Sat Sep 19 16:28:05 GMT 2020

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

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

Back to the top