Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4777 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Using ScriptMaster 4.1.2.4 on FMA9, OS X 10.6.

I'm consistently getting this error when trying to zip an 225mb FMP file.

- Am able to use OS X "compress file" to successfully zip the same file.

- Am able to use SciptMaster to zip a smaller file in the same directory.

So... is there a file size limit for this module?

post-105681-0-66793800-1321329412_thumb.

Posted

It is a Java Heap Size issue surely... There's a limit for ALL modules

try running each of these one after the other to give you the memory available...


return java.lang.Runtime.getRuntime().maxMemory()

return java.lang.Runtime.getRuntime().totalMemory()

return java.lang.Runtime.getRuntime().freeMemory()

You might have to change the method to a streaming builder instead of doing it in memory.

I am sure you can't change the size of the Java heap dynamically and I am not sure how to access it for Scriptmaster's use of Groovy.

The Groovy documentation says:

Increasing Groovy's JVM Heap Size

To increase the amount of memory allocated to your groovy scripts, set your JAVA_OPTS environment variable. JAVA_OPTS="-Xmx..."

Except we are not in control of the start up - but there is lots of stuff on t'internet about the -Xmx values

This is helpful.

http://marxsoftware.blogspot.com/2011/02/groovy-uses-javaopts.html

This topic is 4777 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.