i have developed JSF web application that uses Hibernate.
server machine is strong so i dont care about memory;)
now i must create its equivalent as desktop SWT app.
obviously i want to reuse Hibernate logic from web app.
but my desktop app consumes too much ram.
before that code my app consumes 20MB ram:
Code:
sessionFactory = new Configuration().configure(doc).buildSessionFactory();
and after it app consumes 35MB ram.
(that code maps abut 40 classes and about 60 collections)
doest it have to be so?
can i reduce memory consumction?
scale of my desktop app data is 100 smaller that server data so
i dont need any performance tuning - just low memoty consumction:)
cheers