Re: PermGen growth

2009-01-25 Thread Greg Harman
I see, so running (permGen) 10 times from the REPL is not the same as, say, (dotimes [_ 10] (permGen)), because there's an understood (eval) around anything executed directly in the REPL. Thanks. On Jan 25, 9:33 am, Christian Vest Hansen wrote: > When the reader has a top-level expression in th

Re: PermGen growth

2009-01-25 Thread Christian Vest Hansen
To clarify: On Sun, Jan 25, 2009 at 3:08 PM, Greg Harman wrote: > > I believe you, but I don't understand why. I'm doing nothing but > evaluate my test function over and over. Exactly. This input is evaluated and compiled over and over. > Since no new functions are > being defined, The expres

Re: PermGen growth

2009-01-25 Thread Christian Vest Hansen
When the reader has a top-level expression in the REPL, it gets evaluated. Evaluation goes through the Compiler which generates bytecode from your forms. Before the bytecode can be executed, it needs to be loaded into the JVM, and that happens by wrapping it in a class and loading that. On Sun, J

Re: PermGen growth

2009-01-25 Thread Greg Harman
I believe you, but I don't understand why. I'm doing nothing but evaluate my test function over and over. Since no new functions are being defined, why would this evaluation use any PermGen? On Jan 25, 5:57 am, Christian Vest Hansen wrote: > Clojure creates class not for every function call, but

Re: PermGen growth

2009-01-25 Thread Christian Vest Hansen
Clojure creates class not for every function call, but for every function definition. The PermGen growth you see is the REPL compiling your input, most likely. On Sun, Jan 25, 2009 at 8:26 AM, Greg Harman wrote: > > I'm trying to debug a problem in one of my programs in which PermGen > usage gr