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
Hi,

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

log4j:WARN No appenders could be found for logger
(org.eclipse.emf.teneo.hibernate.HbHelper).
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
-XX:MaxPermSize=128M

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
org.hibernate.cfg.Environment
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://192.168.0.3:3306/" +
dbName);
props.setProperty(Environment.DIALECT,
org.hibernate.dialect.MySQLInnoDBDialect.class.getName());
// props.setProperty(PersistenceOptions.ID_FEATURE_AS_PRIMARY_K EY,
"false");
// 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
hbds.setHibernateProperties(props);

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

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


Current Time: Thu Sep 26 06:14:42 GMT 2024

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

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

Back to the top