can't compile jdk on machine with limited ram
Panagiotis Astithas
past at ebs.gr
Fri Apr 8 01:23:22 PDT 2005
Joe wrote:
> Hope this is the right place for this question.
>
> I'm trying to compile the sun jdk14 port but I'm getting out of memory
> errors. This is an old machine with only 64mb of ram but I have a
> whole 10gb drive as my swap space. When I get this error, the process
> size in memory is only around 100mb (it goes up to 120mb at other times
> and is fine). I've tried killing every process that is not essential
> to free up mem but it still dies. So my question is, has anyone
> compiled the jdk on a machine with 64mb or less? and are there options
> I can set to reduce the memory needed while compiling? If it is
> important, I'm using FreeBSD 5.3-RELEASE. Thanks.
>
>
> This is the error message:
>
> Compiling
> /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp
> virtual memory exhausted: Cannot allocate memory
> gmake[3]: *** [graphKit.o] Error 1
> gmake[3]: Leaving directory
> `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
> gmake[2]: *** [the_vm] Error 2
> gmake[2]: Leaving directory
> `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
> gmake[1]: *** [product] Error 2
> gmake[1]: Leaving directory
> `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp'
> gmake: *** [product] Error 2
> *** Error code 2
Have you tried adding more swap?
Cheers,
Panagiotis
More information about the freebsd-java
mailing list