From jeroenooms at gmail.com  Wed Aug 13 15:58:44 2014
From: jeroenooms at gmail.com (Jeroen Ooms)
Date: Wed, 13 Aug 2014 15:58:44 +0200
Subject: [Rd] Compilation problems
In-Reply-To: <915151407574618@web19m.yandex.ru>
References: <915151407574618@web19m.yandex.ru>
Message-ID: <CABFfbXsqrSypnfiCHSuF3o+MRspmysGL3aY6OXx0_Czz2NjaEg@mail.gmail.com>

On Sat, Aug 9, 2014 at 10:56 AM, Andr? Z. D. A. <andrezda10 at yandex.com> wrote:
> Could not create the Java virtual machine.
> Error occurred during initialization of VM
> Could not reserve enough space for object heap

I have seen this error before when running java inside a vm container
(openvz, lxc) where the kernel does not give java permission to query
the amount of available memory, and hence java assumes it must be 0.
In these cases you need to manually set the MaxHeapSize by passing a
parameter to java, see:
http://stackoverflow.com/questions/4401396/could-not-reserve-enough-space-for-object-heap.

I am not sure where in the compilation that java gets invoked, and if
there is a way to pass parameters. Perhaps you can use the
_JAVA_OPTIONS environment variable.



[Rd] Compilation problems
Jeroen Ooms