Re: Space leak with lazy sequences.

2009-12-01 Thread rzeze...@gmail.com
I'm having similar problems, but am hesitant to post until I do some further analysis. However, I thought I'd share some techniques I'm trying to use to hunt down my memory leak. First, you can make GC verbose. -verbose:gc For even more detail, add the following. -XX:+PrintGCTimeStamps

Re: Space leak with lazy sequences.

2009-11-27 Thread Miron Brezuleanu
Hi, not sure if it works here, but what about adapting advice from Stuart Halloway's Programming Clojure (pages 159-160, 'Losing your head') and use a function returning a sequence instead of a 'bound by let' name (the actual advice in the book is to use functions returning sequences instead of

Re: Space leak with lazy sequences.

2009-11-27 Thread David Brown
On Fri, Nov 27, 2009 at 01:52:05PM +0200, Miron Brezuleanu wrote: not sure if it works here, but what about adapting advice from Stuart Halloway's Programming Clojure (pages 159-160, 'Losing your head') and use a function returning a sequence instead of a 'bound by let' name (the actual advice in

Re: Space leak with lazy sequences.

2009-11-26 Thread David Brown
On Thu, Nov 26, 2009 at 04:00:34PM -0800, David Brown wrote: For now, I'll do without the with-open, since in this particular case, errors are going to be fairly fatal anyway. BTW, I still haven't been able to figure out how to write this function without hanging onto the collection across the

Re: Space leak with lazy sequences.

2009-11-26 Thread David Brown
On Thu, Nov 26, 2009 at 05:05:17PM -0800, David Brown wrote: On Thu, Nov 26, 2009 at 04:00:34PM -0800, David Brown wrote: For now, I'll do without the with-open, since in this particular case, errors are going to be fairly fatal anyway. BTW, I still haven't been able to figure out how to write