About memory

forum_thread

JDOHelper.isDetached failure ?

Running this example code: ... to support it for non enhanced classes, without causing a memory leak. ObjectDB may be the only JDO implementation that supports ...

 
forum_thread

Multithreading Test and Deadlock

I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread count from 1 to 4 and not only do I found it's slower overall (each thread only needs to insert 250K entities) but the threads are stuck with a deadlock. All threads share the same EntityManagerFactory but they have their own EntityManager. The stack trace is attached. ... maybe in this test 4 threads are slower because of higher memory usage (4 x 10,000 x 100 strings x attribute length => many MBs). ...

 
forum_thread

Removing entity class

Hello, I am using evaluation version of ObjectDB for long term private project. Recently I hit the 10 entities limit and got exception: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long time ago and they were never really used. I deleted them from Java source code, but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count into 10 entities limit. ... to a new database. If the database is larger then memory it may become more difficult. ObjectDB Support ...

 
release

2.4.0

... space. Removed a shutdown hook that leads to memory leak ( issue #63 ). Completed missing documentation ... UPDATE & DELETE queries). Fixed memory leak issues. Fixed server hang and deadlock issues. ...

 
forum_thread

multi thread application, id field sporadically null

We are testing objectDB with a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive sometimes an object from the database with the field that is declared as @Id having the value null (what is not correct, we checked that with the explorer). The class is declared like this: ... ... is setting the id. Maybe you retrieve a cached object from memory, which is a new object that has no id yet. You may want to check if ...

 
release

2.0.1

... a failed find followed by persist. Fixed a memory leakage in eager load of large object graphs. Fixed a ...

 
release

2.0.0

... a failed find followed by persist. Fixed a memory leakage in eager load of large object graphs. Fixed a ...

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... // This is becasue ObjectDB keeps all items in memory during a transaction ... so assuming you have one open database there is a cache memory problem. The heap dump may help in understanding the problem. ...

 
forum_thread

Failed to commit transaction: Java heap space (error 613)

Hi, the following exception occurred in our production machine last night: 2013-07-17 20:41:46,665 pdnsrttor3rc42-WSAgent-2-Existing/16 ERROR ObjectDbMessagePipe - Failed to put a message on queue:  pdnsrttor3rc42-ReportDSGroup_Instance-2 retrying = true [ObjectDB 2.4.6_10] javax.persistence.RollbackException Failed to commit transaction: Java heap space (error 613) We are using ObjectDB 2.4.6_10, JDK 7, and a 30GB heap space. ... the exception mentioned above and instead keep allocating memory until the JVM itself detects an OOME and subsequently terminates the ...

 
issue

Unexpected error when loading all entity instance

Hi, when going through all entity instance to find orphaned entries we get the exception: ... reproduce the error now. It seems there was insufficient memory on the maschine. I will observe the issue and update if I find a way to ... 17:10 Insufficient memory may cause a crash. However, if recovery is enabled then the database ...