[armedbear-devel] Ugh! java.lang.OutOfMemoryError: PermGen space

Alessio Stalla alessiostalla at gmail.com
Thu Sep 24 19:21:21 UTC 2009


(dotimes (i 100000) (compile 'f (lambda () 42)))

abcl dies with java.lang.OutOfMemoryError: PermGen space

if I use nil instead of f it doesn't die. Also with nil is noticeably faster.

Adding (when (= 999 (mod i 1000)) (room)) in the loop shows that gc is
performed and memory is reclaimed, but apparently there's a leak
somewhere.
I'll try to find out more.

Later,
Ale




More information about the armedbear-devel mailing list