[Jython] out of memory during jythonc compilation

Simon Brunning SBrunning at trisystems.co.uk
Tue Nov 12 04:43:25 EST 2002


> From:	Robert Oschler [SMTP:Oschler at earthlink.net]
> > I've had similar problems quite a while ago when Jython was called
> > JPython and had version numbers less than two. Increasing the heap size
> > helped, but you may want to try something more substantial than 50 MB.
> > Give it everything your machine has. I managed to compile everything
> > when the heapsize was at least 256 MB. A fast machine comes handy, too
> :-)
> 
> Yikes!  Ok, will do.  Unfortunately all I have is 256MB and unfortunately
> Dell saw fit to only put two DIMM slots in the system.  Guess I'll have to
> replace the 2 128's with 256's.
 
Always a good idea to upgrade - Java *loves* lots of memory.

But using the -mx switch changes the *maximum* heap size - it will only use
what it needs. (The default value is 64MB.) And if it needs more than you
have, then it will just go to swap. It won't fail, just run slowly.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk





-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list