ObjectDB ObjectDB

Garbage Free Persistence?

#1

Hi,

I am trying to make my application garbage free.

I noticed ObjectDB is not garbage free - I noticed that by persisting the same object 1mio times - and I can see the java garbage collector kicking and the usedHeap increasing.

Is there a way to persist entities in a garbage free manner?

Thanks

EKK

edit
delete
#2

ObjectDB uses the Java heap as ordinary Java applications, so there is no way to avoid garbage (which should be collected of course by the Garbage Collector).

ObjectDB Support
edit
delete
#3

Some logger are now garbage free - like log4j - they do it by avoiding the creation of temporary objects - It should be a way to do the same with ObjectDB maybe. It is critical feature low latency (GC free) application - where GC pauses should be avoided.

 

edit
delete
#4

ObjectDB is more complex than log4j (and still the garbage free version of log4j doesn't support all the features yet, does it?)

Anyway, the benefit of moving to garbage free is unclear, as modern garbage collectors are fast and object reusing doesn't usually improve performance. If you can show clear benefits in moving of ObjectDB to garbage free we may consider this is as a possible future feature.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.