Hello, Andi.
>> The problem is that it does not frees large object IndexSearcher which >> has not any reference to it. I did .close() on it and del it. >> Why does not it unreleased? AV> Because the garbage collector runs when it wants to, not when you tell it to. AV> Also, I am not sure under which circumstances, if any, the garbage collector AV> returns memory to the OS. That is a question for [EMAIL PROTECTED] It does not recycle IndexSearche at all. even there is no any free memory or much time spent after "del IndexSearcher". >> >> YS> Is there a way to start garbage collector manually to free memory >> YS> taken by PyLucene objects? >> YS> I have IndexSearcher's object with size of 2Gb. When I want to >> YS> recreate this object I would like to free existent one and then create >> YS> new one. >> >> YS> i = IndexSearcher(fsDir) >> >> YS> # perfom some searches >> YS> ... >> >> YS> i.close() >> YS> del i >> >> YS> # mem is still busy by old object >> YS> # we need to remove old object from memory. >> >> YS> i = IndexSearcher(fsDir) >> YS> i.search(..) >> >> YS> # here we have memory occupied by two big objects >> >> YS> Yura Smolsky. >> >> >> YS> _______________________________________________ >> YS> pylucene-dev mailing list >> YS> [email protected] >> YS> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev >> >> >> YS> _______________________________________________ >> YS> pylucene-dev mailing list >> YS> [email protected] >> YS> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev >> >> >> >> >> Yura Smolsky. >> >> >> Yura Smolsky. _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
