Hi Jason,

It seems to be updating the VM Memory, but my script still get stuck when creating a dictionary bigger than 56mb.

Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_15
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.lang import Runtime
>>> Runtime.getRuntime().totalMemory()
514523136L
>>> fabiosantos@ubuntu:~$ jython -J-Xms1024m -J-Xmx1024m
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_15
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.lang import Runtime     
>>> Runtime.getRuntime().totalMemory()
1029046272L
>>>



De: Jason Briggs <jasonrbriggs@gmail.com>
Para: Fabio Batalha C Santos Santos <fabiobcs@yahoo.com.br>
Enviadas: Segunda-feira, 19 de Abril de 2010 17:34:02
Assunto: Re: Res: [Jython-users] Jython increase heap in JVM

As a matter of interest, do you see a difference in total memory when you startup Jython without running your script.  For example, I see the following:

$ bin/jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) 
[Java HotSpot(TM) Client VM (Apple Inc.)] on java1.5.0_22
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.lang import Runtime
>>> Runtime.getRuntime().totalMemory()
7991296L
>>> 
$ bin/jython -J-Xms1024m -J-Xmx1024m
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) 
[Java HotSpot(TM) Client VM (Apple Inc.)] on java1.5.0_22
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.lang import Runtime
>>> Runtime.getRuntime().totalMemory()
1065484288L
>>> 


On 19 Apr 2010, at 21:00, Fabio Batalha C Santos Santos wrote:

Sorry for the mistake in the example, but in the real test I put the hyphens.


De: Jason Briggs <jasonrbriggs@gmail.com>
Para: Fabio Batalha C Santos Santos <fabiobcs@yahoo.com.br>
Enviadas: Segunda-feira, 19 de Abril de 2010 16:53:16
Assunto: Re: [Jython-users] Jython increase heap in JVM

You're missing a couple of hyphens.  Try:

jython -J-Xms1024m -J-Xmx1024m myscript.py


On 19 Apr 2010, at 20:15, Fabio Batalha C Santos Santos wrote:

Hi All,

I'm having problems to setup the JVM heap space when running a jython script. I'm calling my script using the -J parameter once I'm with jython 2.5.x

example: >jython -JXms1024m -JXmx1024m myscript.py

The problem is, I'm creating a huge dictionary in the heap but the heap crashs when the dictionary is around 56mb

Thanks in advance for the help.





------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users