[Borges-users] Borges memory management

Eric Hodel drbrain at segment7.net
Fri Apr 9 21:25:39 EDT 2004


Peter Schuller (peter.schuller at infidyne.com) wrote:

> Hello,
> 
> I wrote a simple application with Borges that is similar to SushiNet,
> but so far simpler (a menu component and a data area component).
> 
> The problem is that the more requests that are processed the more
> memory the application allocates. I put 'siege' on it and it grew to
> 150 meg or so before I stopped (I only had it request a single URL;
> always the same).
> 
> I assume this has something to do with storing all the continuations
> and other state necessary for Borges, but I suspect I'm also doing
> something wrong since there doesn't seem to be an upper limit to the
> memory usage. Should I be actively doing something to allow Borges to
> free memory?

There may still be some (many, or one big) bugs that leak resources and
don't clean things up properly.  I wrote ObjectSpaceBrowser
(/usr/local/share/examples/ruby/Borges/ObjectSpaceBrowser.rb) to help me
with that, and it pointed out one problem with the LRUCache (since
fixed).

I haven't yet had the time to look into what else may not be retiring
resources properly.

I've recently made changes to both Borges::ContinuationStore and the
HTML renderer to cut down on the number of temporary objects created.
Perhaps another release is in order.

-- 
Eric Hodel - drbrain at segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/borges-users/attachments/20040409/d2d6fa22/attachment.bin


More information about the Borges-users mailing list