About memory

forum_thread

JPA and handling large data sets

This is not a rellay ObjectDB problem, rather a JPA problem. Our web-based DB supports Hibernate or JPA (ElicpseLink/ObjectDB). We implemented a export/import class to export the whole database or single datasets (domains) in a persistence layer/database independent format. This class works fine - DB exports form a Hibernate/MySQL base via the independent formt to ObjectDB is possible. But exporting large binary data sets is very slow. To avoid memory problems the binary data type is read step by step during the export with the  query/setFirstResult() & setMaxResults().... exporting large binary data sets is very slow. To avoid memory problems the binary data type is read step by step during the export ...

 
issue

Monitoring and Performance counters

After checking last patch from build 2.1.1_01, I started to think about some kind o monitoring tools in ODB. Those tools could look similar to MySQL 'show innodb status', where you can get some informations about how DB is doing. It would be nice to monitor: - inserts/s, updates/s, deletes/s, reads/s - total inserts, update, deletes, reads - I/O operations/s - caches current usage - uptime from last start - caches hit rate - total sessions from clients ... hit rate - total sessions from clients - memory usage (for heap space tuning?) The easiest way to obtain this ...

 
issue

OutOfMemoryError, if close the entity manager

Hello, why this error occurs during close the entity manager?   ... and data had to be moved from a temporary file to main memory. The exception is not related particularly to closing an ...

 
forum_thread

Using of Second Level Cache

In our use case we want to find some entity types always again very quickly by primary key or query in many short transactions. The entity MyEntity1 and its relationships to MyEntity2/MyEntity3 was load and the entity MyEntity1 is taken in the second level cache, the other entity types not. Are the relationships to MyEntity2/MyEntity3 still always referenced although the entity manager is closed, so that the memory for MyEntity2 and MyEntity3 can never be released by garbage collector? ... although the entity manager is closed, so that the memory for MyEntity2 and MyEntity3 can never be released by garbage collector? ...

 
issue

ODB Doctor Stops Progressing (runs forever)

Hi, ... hitting some sort of resource constraints, possibly memory.  Can you please assist in troubleshooting?    ...

 
forum_thread

how to create in memery database in objectdb

plz can u give or help me how to create in memory database in objectdb   with example ... plz can u give or help me how to create in memory database in objectdb   with example ...

 
forum_thread

List managed entities for a given entity manager

Hi, Is there a way to find the number of managed entities given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful. Thanks, EKK ... given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot ...

 
forum_thread

Significant I/O costs during batch update or insert data.

Our application has some complex entities. We do batch update(merge detached entity) every 2 minutes. We find the period significant IO costs these days, and disappeared when turn off the batch updating. 1.ObjectDB is in embedded mode. 2.ObjectDB version is 2.3.7 3.Database file size is nearly 600mb and increasing. ... that are not enhanced by ObjectDB, which may increase memory usage and cause paging. If you still experience a problem with ...

 
forum_thread

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains  @Lob @Basic(fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing (but without loading content of the photos) I get java.lang.OutOfMemoryError: Java heap space (the server is started with -Xmx4096M). Heap dump shows that there are very much space is used by contents of the photos despite of using fetch = FetchType.LAZY. How can I fix this memory issue? ... of using fetch = FetchType.LAZY. How can I fix this memory issue? edit ...

 
forum_thread

RT Java application recording into 100DB run OOM after a few hours.

Hi, I am running a java application that records data from 100 feeds into 100 different database - this is done is one thread. It works fine several hours - and suddenly i got an out of memory issue (I checked there is no leak in java - I cleared the entity manager every 10 new entity). 1/ I use the default objectDb.conf (i mean i dont use any - so it must be using the default somewhere). 2/ Using Netbeans, I profiled the application and I noticed that there is one thread (ODB FileWriter) running for each open DB. ... It works fine several hours - and suddenly i got an out of memory issue (I checked there is no leak in java - I cleared the entity manager ...