| From | Sent On | Attachments |
|---|---|---|
| paduffy | Mar 2, 2007 8:24 pm | |
| Russel Winder | Mar 2, 2007 11:47 pm | |
| paduffy | Mar 3, 2007 6:30 am | |
| Paul King | Mar 3, 2007 11:54 am | |
| paduffy | Mar 3, 2007 5:38 pm | |
| Paul King | Mar 3, 2007 5:45 pm | |
| Antti Karanta | Mar 4, 2007 10:58 pm | |
| Paul King | Mar 5, 2007 1:00 am |
| Subject: | Re: [groovy-user] Increasing heap size when using groovy command? | |
|---|---|---|
| From: | Paul King (pau...@asert.com.au) | |
| Date: | Mar 3, 2007 5:45:01 pm | |
| List: | org.codehaus.groovy.user | |
Are you using the native launcher? On windows try replacing groovy with groovy.exe and on Linux try 'which groovy' (if memory serves).
Paul.
paduffy wrote:
Hmmm...
I get the following...
H:\dbexport>groovy -Xmx512m genDeviceAssoc.groovy Caught: java.io.FileNotFoundException: Xmx512m (H:\dbexport\Xmx512m)
?
Paul King wrote:
paduffy wrote:
Oh well, I was hoping there was a way to simply set this on the groovy command line, per invocation.
Python version of a test app uses a lot of mem but runs fine via simple command line execution. Groovy equivalent is blowing through the heap...thus the question.
Rather not muck around with the env vars unless there is no other way.
I believe you can use -Xmx when using the native launcher:
groovy -Xmx2000M Misc/src/SetTest.groovy
Error occurred during initialization of VM Could not reserve enough space for object heap error: jvm creation failed with code -4: not enough memory
(shown with a too large value to ensure it wasn't being ignored)
Paul.
Russel Winder wrote:
On Fri, 2007-03-02 at 20:24 -0800, paduffy wrote:
Need to bump up the heap when I run groovy at command line. Equivalent of -Xmx, etc.
?
I recollect that it is possible to feed java parameters into a groovy run by using the JAVA_OPT environment variable, so I guess:
JAVA_OPTS="-Xmx..." groovy ...
should do the trick but it does seem a bit clunky.
-- Russel. ==================================================== Dr Russel Winder +44 20 7585 2200 41 Buckmaster Road +44 7770 465 077 London SW11 1EN, UK rus...@russel.org.uk
--------------------------------------------------------------------- To unsubscribe from this list please visit:





