On Mon, Oct 24, 2005 at 04:27:28PM +0200, Christian Hammers wrote: > Hello > > With Debian (Sarge+2.6.9) on a machine with 4GB RAM, I cannot get SUNs > Java (1.4.2-02) to allocate >1GB of heap RAM. > > This works on a RedHat machine though. Now our customer wants > this to be fixed, if we don't want to switch to RedHat :-( > Any ideas what this might be? Missing Kernel feature, too old libc6 > (malloc)? > > $ java -Xmx3500m -cp . HelloWorld Hello World > Error occurred during initialization of VM > Could not reserve enough space for object heap > AIUI, by defult the Linux kernel will not allow any userspace process to allocate >1GB RAM. There are patches that change this. If it works with a particular version of Red Hat's kernel, I would grab the sources and config and make a Debianized kernel package from it.
-Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto
pgp4kOikpvNjc.pgp
Description: PGP signature