Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDOQuery / SessionManager memory leak?
[CDO] CDOQuery / SessionManager memory leak? [message #890679] Fri, 22 June 2012 20:39 Go to next message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
Hello,

I am having once again a problem Rolling Eyes . The Java VM was running wild and memory was full. I identified these classes among others:
       42:      43521    1740840 org.eclipse.emf.cdo.internal.common.CDOQueryInfoImpl
       59:      43521    1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue
       60:      43521    1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue$QueueEntry
       61:      43521    1044504 java.util.concurrent.PriorityBlockingQueue
       62:      43521    1044504 java.util.concurrent.locks.ReentrantLock$FairSync
       63:      43521    1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue$BlockingCloseableIteratorImpl
       43:      43520    1740800 org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext
       51:      43520    1392640 org.eclipse.emf.cdo.internal.server.QueryResult
       74:      43520     696320 java.util.concurrent.FutureTask
       75:      43520     696320 org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext$1


CDO: 4.1-RC4 (S20120612-1449)

I thought I forget to close the CloseableIterator but then I looked where these objects were referenced.
They are referenced in 'ISessionManager' under the Session.listeners.

If I produce nice request 20 wait a bit and again 20 the 'Session.listeners' isn't growing.

If I do a brutal loop with 10000, 3320 listeners remain. (In this case I used 'CDOQuery.getResult', but with 'CDOQuery.getResultAsync' I have same problem)

Under Mac OS X and Linux I can reproduce this situation. Under Windows It is perhaps harder to reproduce?

Regards,

Per Sterner
Re: [CDO] CDOQuery / SessionManager memory leak? [message #890790 is a reply to message #890679] Sat, 23 June 2012 03:46 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 22.06.2012 22:39, schrieb Per Sterner:
> Hello,
>
> I am having once again a problem :roll: . The Java VM was running wild and memory was full. I identified these
> classes among others:
>
> 42: 43521 1740840 org.eclipse.emf.cdo.internal.common.CDOQueryInfoImpl
> 59: 43521 1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue
> 60: 43521 1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue$QueueEntry
> 61: 43521 1044504 java.util.concurrent.PriorityBlockingQueue
> 62: 43521 1044504 java.util.concurrent.locks.ReentrantLock$FairSync
> 63: 43521 1044504 org.eclipse.emf.cdo.common.util.CDOQueryQueue$BlockingCloseableIteratorImpl
> 43: 43520 1740800 org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext
> 51: 43520 1392640 org.eclipse.emf.cdo.internal.server.QueryResult
> 74: 43520 696320 java.util.concurrent.FutureTask
> 75: 43520 696320 org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext$1
>
>
> CDO: 4.1-RC4 (S20120612-1449)
Thankks for testing our RCs ;-)

> I thought I forget to close the CloseableIterator but then I looked where these objects were referenced.
> They are referenced in 'ISessionManager' under the Session.listeners.
Which of the above objects exactly?

> If I produce nice request 20 wait a bit and again 20 the 'Session.listeners' isn't growing.
I can't remember what exactly a nice request is. A linux thingy?

> If I do a brutal loop with 10000, 3320 listeners remain. (In this case I used 'CDOQuery.getResult', but with
> 'CDOQuery.getResultAsync' I have same problem)
Sounds like something we should investigate. Please submit a bugzilla. Is it possible that you copy one of our test
cases and try to reproduce this effect. That would help to get a fix into the first 4.2 M-build.

> Under Mac OS X and Linux I can reproduce this situation. Under Windows It is perhaps harder to reproduce?
I just have a Windows box at hand here. A test case may help to sort out OS-specific behaviour.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] CDOQuery / SessionManager memory leak? [message #890797 is a reply to message #890790] Sat, 23 June 2012 04:13 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 23.06.2012 05:46, schrieb Eike Stepper:
> [...] That would help to get a fix into the first 4.2 M-build.
Sorry, I meant the first 4.1 M-build ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] CDOQuery / SessionManager memory leak? [message #891340 is a reply to message #890790] Sun, 24 June 2012 18:45 Go to previous message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
Hello Eike,

The bugzilla ID is 383379.

>> They are referenced in 'ISessionManager' under the Session.listeners.
>Which of the above objects exactly?

In the listener list there are instances of 'org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext$1'


>> If I produce nice request 20 wait a bit and again 20 the 'Session.listeners' isn't growing.
>I can't remember what exactly a nice request is. A linux thingy?
I am sorry. I forgot some words. With a loop of 20 requests the problem did not occur. With 1000 or 10000 it occurs.

Regards,

Per Sterner
Previous Topic:Contributing extended models in Eclipse and as stand-alone EMF.
Next Topic:Contributing adapter factories via extensions.
Goto Forum:
  


Current Time: Fri Apr 19 10:05:38 GMT 2024

Powered by FUDForum. Page generated in 0.01891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top