Large number of tables and Hibernate memory consumption
Posted
by
Vedran
on Stack Overflow
See other posts from Stack Overflow
or by Vedran
Published on 2012-11-26T14:47:48Z
Indexed on
2012/11/29
11:05 UTC
Read the original article
Hit count: 182
I'm working on a large ERP project which has database model with about 2100 tables. With "only" 500 tables mapped with Hibernate, application deployed on the web server takes about 3GB of working memory.
Is there any way to reduce Hibernate's metamodel memory footprint when using that many tables in one persistence unit? Or should I just give up on ORMs and go with plain old JDBC (or even jOOQ)?
Right now I'm using Hibernate 4.1.8, Spring 3.1.3, JBoss AS 7.1 and working with MSSQL database.
Edit:
JavaMelody memory histogram output - with 2000 generated test tables that are a bit smaller in scope from the original db model (hence 'only' 1.3GB of spent memory)
© Stack Overflow or respective owner