jython memory usage

Robin Becker robin at jessikat.fsnet.co.uk
Thu Sep 5 10:57:13 EDT 2002


In article <3d774f40$1_1 at news.bluewin.ch>, Samuele Pedroni <pedronis at bluewin.ch> writes
>Ok, I have discovered an undocumented fact and maybe relevant fact.
.......
>Now one can log class loading, you can edit jython.bat and
>put -verbose:class in there:
>
>"..java.exe" -verbose:class "-Dpython.home=..."
>
>then running jython.bat <the-mem-overflowing-code>
>
>you should get an initial burst of [Loaded <classname>]
>and then normally nothing or a pattern of
>


OK I get over 600 lines at the initial burst which ends with
.......
[Loaded sun.reflect.GeneratedMethodAccessor18]
[Loaded sun.reflect.GeneratedMethodAccessor19]
[Loaded org.python.modules.MD5Object]
[Loaded reportlab.lib.fonts$py]
[Loaded java.io.RandomAccessFile from C:\Program Files\Java\j2re1.4.0_01\lib\rt.jar]
[Loaded sun.reflect.GeneratedMethodAccessor20]

memory usage climbs continuously and then
Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 32756 bytes
C:\jython-2.1\reportlab\test>

>[Loaded ...]
>...
>[Unloading class ...]
>
>If you get an increasing sequence of [Loaded ...] without corresponding
>[Unloading class ...] then we have reduced
>the possible suspects.
>
>regards.

-- 
Robin Becker



More information about the Python-list mailing list