-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Persistence.createEntityManagerFactory and memory usage
PostPosted: Thu Feb 05, 2015 10:02 am 
Newbie

Joined: Thu Feb 05, 2015 9:53 am
Posts: 1
Hi Everyone,
I apologize if this is something discussed before, I haven't found anything on this topic.
I have a console application with only this line:
Code:
Persistence.createEntityManagerFactory("x");

It uses a shared library containing persistance.xml and all the entities. My problem is that it uses a large ammount of memory: around 500MB on a 2GB ram server, and around 750 on a 8 GB ram worstation. The web applications running on that server use much less memory, using the same code, database and persistance.xml. What's the reason? Can I limit it? Even the -Xmx parameter doesn't work.

Any help would be seriously appreciate, help out a confused programmer.

Thanks and Best Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.