Out of memory issue

38 views
Skip to first unread message

bri...@gmail.com

unread,
Mar 26, 2013, 3:03:15 PM3/26/13
to zo...@googlegroups.com
Helllo,

I came across the out of memory issue in my web application. We have created the heap dump on OOM. After analyzing the heap dump, I figured out that there are 57 objects of SearchIndexManager.java and 163 object of BoboIndexReader.java. Which are root cause of the OOM.


While debugging the source code, I figured out that SearchIndexManager object has been created when Zoiesystem object is created. Which we are creating only once at the time of system start up. so wondering how come it creates so many objects ?

Label Number Of Objects Used Heap Size Retained Heap Size Retained Heap, %
proj.zoie.impl.indexing.internal.SearchIndexManager 57 4,104 988,058,840 43.89%
com.browseengine.bobo.api.BoboIndexReader 163 20,864 814,357,896 36.18%
proj.zoie.impl.indexing.internal.IndexReaderDispenser$InternalIndexReader 5 640 171,706,296 7.63%

Any help is greatly appreciated.

Brij

bri...@gmail.com

unread,
Apr 4, 2013, 3:45:29 PM4/4/13
to zo...@googlegroups.com
Hello,

I have observed that this issue is resolved in Zoie 3.2. For zoie 2.0. So Ideal approach is to upgrade the library to latest version. however after analysis of Heap dump, GC roots and debugging of source code zoie 3.2 jar source. I have modified the shutdown method of Zoiesystem.java.

OptimizeScheduler scheduler = _diskLoader.getOptimizeScheduler();
scheduler.shutdown() 

It fixes the memory leaks. 

Best Regards,
Brij

John Wang

unread,
Apr 6, 2013, 9:18:31 AM4/6/13
to zoie
Thanks Brij!

Can you send a pull request for Zoie with your fix?

-John


--
You received this message because you are subscribed to the Google Groups "zoie" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zoie+uns...@googlegroups.com.
To post to this group, send email to zo...@googlegroups.com.
Visit this group at http://groups.google.com/group/zoie?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brijrajsinh Jhala

unread,
Apr 8, 2013, 3:19:07 PM4/8/13
to zo...@googlegroups.com, John Wang
Hello John,

Thanks for considering this fix to merge. however to be honest, I don't know how to create fork from repository. Currently I have attached source code to my eclipse workspace and make the changes.


I would appreciate if you explain or provide some guideline to fork the repository and pull request for it ?

Best Regards,
Brij




On Sat, Apr 6, 2013 at 4:02 PM, John Wang <john...@gmail.com> wrote:
Hi Brij:

    If you would fork a clone of the repo and make the changes you suggested. You can send me a pull request and I can merge it into the main code base, and you get aknowlegement for the fix.

-John


On Sat, Apr 6, 2013 at 10:43 AM, Brij <bri...@gmail.com> wrote:
Hey John,

Thanks for your response. I do not understand 

Pull request ? Could you please elaborate it ?

Best regards,

Brij
You received this message because you are subscribed to a topic in the Google Groups "zoie" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zoie/hSbEMFQ-yKc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to zoie+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages