Newbies Michael McCrystal Posted November 15, 2011 Newbies Posted November 15, 2011 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?
john renfrew Posted November 15, 2011 Posted November 15, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now