Garbage collection problem
HI,can anybody help me with the following garbage collection problem ? I'm trying to develop a test tool which can generate test data systematically for Haskell program, I have finished most of the work so far, however,while testing, the process would be interrupted because of the garbage collection problem with the notice "ERROR - Garbage collection fails to reclaim sufficient space",what shall i do to solve this problem? so that the user may test the possible input of a infinite type all the time as long as he or she wants to. By the way, the interpreter I used was Hugs98. Thank you very much. Best regards Jinping Zhang
Jinping Zhang <zjpzsu@gmail.com> writes:
HI,can anybody help me with the following garbage collection problem ?
It's probably not a problem with garbage collecting as such, but rather that you don't have any. In other words, your program is retaining too much data. Often, this is caused by too much (or sometimes too little) laziness.
By the way, the interpreter I used was Hugs98.
I haven't used Hugs for a while, but with GHC there is heap profiling. The GHC docs describe this fairly well, I think, see: http://www.haskell.org/ghc/docs/latest/html/users_guide/prof-heap.html -k -- If I haven't seen further, it is by standing in the footprints of giants
participants (2)
-
Jinping Zhang -
Ketil Malde