Markus,

On 4/3/07, Markus Barchfeld <[EMAIL PROTECTED]> wrote:


> BTW, 512M is just what I use because I happen to have like 30 eclipse
> plugins in my RDT workspace. I would hope that most Ruby workspaces
> wouldn't approach that level. I play around with RDT in a workspace
> with about 8 rails projects in it, and my profiler says that the
> experimental index holds about 24 MB of index data in memory.




I got the OOM error, too. I had three rails applications with vendor
directories in my workspace. I ran a runtime-workspace and increased
memory to 512m which did not help, too (I added -Xmx512 to the VM
arguments, hope fully it really does what I expect). Only by closing one
of the rails projects I could finally get rid of the OOM error.
(Un-?)fortunately I can not reproduce the error with current HEAD
although I could not see any code change concerning the Indexer.


Well I'm hoping that this was an artifact of the problems in the
RubyModelCache that I mentioned earlier then since it cleared for you. I had
found memory problems/bugs there that I did fix. The Indexer just happened
to exercise the cache a lot so it unearthed the problem quickly.
The bug in question is that the RubyModelCache didn't have a specific cache
for ISourceFolderRoots (because until fairly recently we didn't even have
the notion of them). So they were getting thrown into a plain old HashMap,
and I believe holding onto all of their children. So we were effectively
storing all of the model in a HashMap that didn't overflow or clean up when
it approached the memory cap. There should have been a noticeable memory
difference between versions before my fix to the RubyModelCache file and
after.

Thanks,
Chris
--
http://cwilliams.textdriven.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development

Reply via email to