Sg2.9
Java heap space
Recent RSS
Java heap space
From:  julia
Date:  17. March 2007, 01:10

java. lang. OutOfMemoryError: Java heap space

what to do?!

Re: Java heap space
From:  Jürg Lehni
Date:  18. March 2007, 11:10

You can increase Java's memory by setting the initial an maximal heap size in the jvm.ini file.
This file is not present by default, but you can simply create it in the directory /Scriptographer/java, edit it with any text editor and define the memory settings:

  • Xms defines the initial size
  • Xmx defines the maximum size

Example:

  • Xms40m
  • Xmx512m

This sets 40mb as the initial size, and 512mb as the maximum size.

But be careful, as too high values can crash Scriptographer and Illustrator on startup, depending on your system. Play with the values until you get something decent.

I Hope that helps.

Re: Java heap space
From:  mmmmm......scripts
Date:  26. March 2007, 03:45

I have tried this fix but then am getting an error as CS2 loads saying cannot "create java VM " followed by "cannot create Scriptographer Engine".
I recieve "unknown heap space" error after running raster.js of which only jalf the object is filtered.
Is this a memory problem or a prob with the size/complexity of the resulting image and the settings I entered.

Win XP
CS2
latest vers of scripto
1024mb RAM
P4 3.2Ghz

Also I am using Java SE 6

cheers

Re: Java heap space
From:  Jürg Lehni
Date:  26. March 2007, 04:02

Try different values. It probably means that Java cannot create the JVM because you want to give it more memory than available in your system.

Re: Java heap space
From:  mmmmm......scripts
Date:  26. March 2007, 06:57

thanks for the quick response.
That got it going but after running an object raster illustrator freezes and hangs.
Would it be better to run Java SE 5, is that even available now?

Re: Java heap space
From:  Jürg Lehni
Date:  9. April 2007, 15:40

I don't think Java SE 5 would make a difference. Maybe you are just using far too big images? Try scaling them down and then rasterizing the again at 72DPI.

Re: Java heap space
From:  Jürg Lehni
Date:  14. July 2007, 18:25

Today I finally found the source of this memory problem. It was related to caching of Java object wrappers and circular references that did not allow wrapper objects to be garbage collected. Exptect an update soon.

Re: Java heap space
From:  B
Date:  18. January 2013, 15:30

Jurg Lehni i'm experiencing the same issue now. How can i solve this? I'm getting this message "OutOfMemoryError: Java heap space" and the left thing to do is close the illustrator. :(

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Growth2 and its partner 03.08.12