memory « Update « JPA Q&A





1. Hibernate: Save Double to Database as Int    stackoverflow.com

does anyone know how I can create a Java POJO which has stores a double in memory but an integer on disk? I would like to store these objects to ...

2. java persistence memory leaks    stackoverflow.com

I have 1M rows in a table and I want to get all of them. But when I try to get all rows with jpa by pagination then I get java ...

3. JPA (or other alternatives) for persisting in-memory queue    stackoverflow.com

I have an application which uses an im-memory implementation of Queue. I need to add persistence to this queue "with as less changes to my code". I want to use JPA ...

4. Hibernate: Persisting objects leading to a memory leak    stackoverflow.com

I might have some design concept wrong. If I have a table with 10000 rows means I'll have 10000 Objects? I ask because I got a leak, and using Jconsole and Eclipse ...

5. save file(>50MB) file using byte[] causes out of memory e    forum.hibernate.org

It is more likely that this is the jvm issue - not the hibernate one. Comment out the part where you would normaly call persistence layer and try to upload file - I guess it will throw the same exception. Anyway you should increase the heap stack for java i.e.: java -Xmx256M -jar yourapp.jar I do not know how do you ...

7. Memory Consumption with persistence-unit    forum.hibernate.org

Hello, I use : jboss 4.2 Hibernate EntityManager 3.2.1.GA Hibernate Annotations 3.2.1.GA Hibernate 3.2.3 I have defined many persistence unit (nearly 40) in my persistence.xml file. Each persistence unit is linked to a Datasource defined in db-ds.xml file. When jboss has successfully started I see that it uses 1 Gb of memory. No user has connected yet ! After investigation (heap ...

8. Persistent main-memory objects    forum.hibernate.org

Hello, I have a general question. If I do a simple query using Hibernate/JPA, say to fetch all those customers that fulfill some condition. And the result comes back with thousands of entries. Now I associate this result to a locally-defined list of the same Entity type: List result = // My Query for (Customers c: result){ // do something ...