[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: very Large memory java jobs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 09 Oct 2002 10:59 pm, Kristian G. Kvilekval wrote:
> We have several bio-computing experiments that need over
> 2GB of heap.  We are running on linux-2.4.19 on machines
> with 4GB of memory.
>
> $ java -version
> java version "1.3.1"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> Blackdown-1.3.1-FCS)
> Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)
>
> Allocating 1.9GB appears to work (will crash sometime though).
>
> $ java -Xmx1900m J
>
> Allocating 2GB and above always fails.
>
> $java -Xmx2000m J
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> Can anybody suggest a solution or work around.

It looks like you dont have himem properly configured in your kernel. You 
should be able to get a heap of 4GB - the java vm internal memory etc so i 
would say at least 3.7GB on a bad day. I would check how you have your kernel 
configured. The kernel may also not be seeing all of your memory, this is 
easily fixed by passing the mem=** option to the kernel, this is documented 
in the linux kernel source (normally /usr/src/linux/Documentation).

This should point you in the right direction

Tom

- -- 
Email: tb100@doc.ic.ac.uk || Jabber: tombadran@jabber.com
Homepage:   http://www.doc.ic.ac.uk/~tb100
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9pS7ZXCpWOla2mCcRAq5gAJ4xWkKUQGlvr8DtSZHtmH5uq8qlMACdFaI7
bw7uZ/o0acyRyzEnLbqQWvs=
=XTGG
-----END PGP SIGNATURE-----



Reply to: