[Java] Mac: Eclipse: Java Heap Error --- adjustments in build.xml needed
*** Solution:
Remember to add maxmemory="2048m" wherever necessary in your targets to increase heap size in your ant build file. Obviously the number 2048 can get bigger if you want more memory allocated to your target.
-------
Hey Sikuli devs,
first off thanks for making such a great product.
I am experiencing a Java heap error when running my tests. Here is my scenario
Mac OSX 10.6.6
Eclipse
Ant (latest)
Fest (latest)
Jenkins
tests written in Java using your libraries (latest)
java version "1.6.0_22"
in my build xml i set the maxmemory as follows:
<junit forkmode="perTest" printsummary="yes" haltonfailure="no" haltonerror="no" maxmemory="2048m">
The test begins and almost finishes, at the end of the test my build fails with this error:
Java heap space
java.lang.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at sun.java2d.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at com.eharmony.
on the mac I am using its 64bit so i know i can set the memory higher for JVM. Is there something in sikuli I can set
thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #748036.