484 words

Suspected memory leak

#1
2012-01-22 21:46

Hi,

We are running soak testing with Object DB and it is showing signs of memory leak: used memory is growing overtime until Object DB JVM fails with OutOfMemoryException. Object DB is running in a separate JVM. All the config is attached.

We are continuing to investigate this and will create memory dump next time this happens. In the meantime, could you please check if there is anything wrong with our configuration?

Kind regards,

Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #9
#2
2012-01-23 05:01

Currently there is no known open memory leak issue in ObjectDB. But if it is not something in your application (such as EntityManager instances that are not closed) it might be an ObjectDB issue.

In case of OutOfMemoryError the stack trace usually doesn't help, so please prepare a heap dump.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #881
#3
2012-01-25 00:43

Hi,

I've reproduced this problem and created the heap dump. Please see the attached screenshots from MAT. The configuration files for this test environment are also attached.

The heap dump is 600MB compressed, could you please give me an upload location to upload it? 

Regards,

Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #10
#4
2012-01-25 01:07

You can use FTP to upload large files:

Host: objectdb.com, Username: public, Password: public

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #883
#5
2012-01-25 01:13

The screen shots may indicate a problem in the page cache (which keeps too many pages).

This could be the result fixes in build 2.3.5_* and 2.3.6_*.

Is this issue new? Does it happen also when using version 2.3.5 or earlier?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #884
#6
2012-01-25 01:26

We have not tried this test with earlier versions. I'll try and let you know.

Regards,
Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #11
#7
2012-01-25 01:26

Hi,

I've uploaded the heap dump, it's called natmaclin_heap.zip. Will try the 2.3.5 version now. 

Regards,

Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #12
#8
2012-01-25 02:27

Hi,

The version 2.3.5 looks the same, I've uploaded heap dump for it to natmaclin_heap235.zip

Regards,

Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #13
#9
2012-01-25 07:07

I am afraid the test case is needed in order to understand this issue. Can you upload it?

It is probably doesn't matter if this test is complex and the source code is not required, since the purpose is only bringing ObjectDB to that state on run. Unfortunately the information in the heap dump is insufficient.

 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #885
#10
2012-01-25 08:20

Could you please give me an e-mail address I can send the instructions to? I cannot to publish it on the forum.

Thanks,

Natalia.

natmaclin
natmaclin's picture
Joined on 2011-11-04
User Post #14
#11
2012-01-25 08:32

Please open a private support ticket.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #886
#12
2012-02-06 09:09

For anyone else that experiences similar memory problems - it was found out that this was not exactly a memory leak, but in some cases ObjectDB memory consumption might be just too high, and this can be fixed by setting the configuration.

The following configuration elements are particularly relevant:

  • The <processing> element - try reducing the number of threads and the cache size (notice that this setting is per open database, so this is especially important for applications that use many open databases).
  • The <temp> element - try reducing the threshold, e.g. from 64MB to 8MB (notice that this setting is per value list, and each transaction or query execution could use several values lists, so high database activity may lead to using many value lists of up to 64MB each, when the default configuration is used).

In addition, if the problem is caused by heavy queries - defining new indexes (but see this issue) may help.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #906

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel