[plt-scheme] DrScheme and memory

From: Chongkai Zhu (mathematica at citiz.net)
Date: Mon Nov 28 10:42:57 EST 2005

>Hi,
>
>DrScheme on my system sometimes starts to collect garbage for a very 
>long time (> 1 minute). Judging from the way my hard disk starts to 
>shuffle, it seems that this is caused by Virtual Memory. My system is 
>OS X 10.3.9 with 512MB RAM. The only remedy I've found so far is to 
>quit the application and then load and run the source again.
>
>Is there a way to force more frequent garbage collections and/or limit 
>the total amount of memory DrScheme uses on OS X? It seems to me that 
>my programs don't really use that much memory and should run without 
>using VM if garbage was collected earlier. Or is that rather unlikely?
>

(collect-garbage) forces an immediate garbage collection. Call it in
your program.

>Related to this: Is there a distribution of DrScheme with the 
>alternative collector 3m for OS X? I'd like to give it a try but I 
>don't think that I can't build it from source on my own, as I don't 
>even have any recent version of Developer Tools installed.

The PLT Scheme Full form http://pre.plt-scheme.org/installers/table.html
contains the 3m collector. By the way, I don't think the 3m collector
will solve your problem.

>Best regards,
>
>Erich

Chongkai



Posted on the users mailing list.