java.lang.OutOfMemoryError on x86_64
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Hi,
when I compile VTK 5 (or the CVS version) on either amd64 or em64t, I get a java.lang.OutOfMemoryError just after generating vtkBuildAllDriver.class:
... ... Generating ../../java/vtk/vtkBuildAllDriver.class
The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError make[2]: *** [java/vtk/vtkBuildAllDriver.class] Error 3 make[1]: *** [Wrapping/Java/CMakeFiles/VTKBuildAll.dir/all] Error 2 make: *** [all] Error 2
This always happends when compiling from 'clean'. When I type another 'make' after this error, it nicely compiles and finishes the build.
I have tried this with Blackdown-1.4.2 and with Sun-1.5.0.06. Both give exactly the same error (except Sun says: java.lang.OutOfMemoryError: Java heap space).
The solution is to add -J-Xmx256m to the compile option.
The Linux distribution is Gentoo 2006.0. I have researched this on 3 different installations, either using a Gentoo ebuild, or using the plain 'configure && make'.
References: http://bugs.gentoo.org/show_bug.cgi?id=123178 http://news.gmane.org/gmane.linux.gentoo.java/cutoff=818 http://public.kitware.com/pipermail/vtkusers/2006-March/084065.html
Greetz, Sebastiaan