From: A B. <AB...@co...> - 2003-09-09 19:52:38
|
Dear All, I'd welcome some input on a memory problem I'm having with an embedded interpreter. The interpreter is running a script from within my app. The script executes fine up to a point, then after a seemingly fixed number of iterations in a loop, the javaw process rapidly consumes all of its available memory. For instance: *** myScript.py *** <..jython code..> #script runs fine up to here for i in range(25000): #the following line prints plenty of available memory #but then stops after ~3500 lines #at which point the javaw memory rockets! print str(Runtime.getRuntime().freeMemory()) <..jython code..> ******************* I have tried: * Changing up and down the javaw -Xms and -Xmx flags for the jvm. * Not printing in the loop. * Decreasing the iterations and looping over two iterators If the loop is excluded from the script, it executes without problem! Any help would really be appreciated, Ant |