openjdk,icedtea - Xmx option mandatory

Mark Wielaard mark at klomp.org
Mon Aug 4 05:35:19 PDT 2008


Hi Roberto,

On Mon, 2008-08-04 at 14:23 +0200, Roberto Mannai wrote:
> On 8/4/08, Andrew Haley <aph at redhat.com> wrote:
> > Roberto Mannai wrote:
> >
> > > For a test I've just installed:
> > > java-1_7_0-icedtea
> > > on my opensuse11 box.
> > >
> > > "java -version" command crashes with an error. In order to work, I
> > > must use the  -Xmx option, also with 1m:
> > >
> > > java -Xmx1m -version
> > >
> > > Any reason for it? Is it a bug?
> >
> > It must be.  How much memory have you got?
>
> My system has 512 mb of RAM, on a 32 bit processor.
> 
> If I try to set the Xms option, java complains it is larger than max
> size, so in my opinion the jvm does not allocate any default xmx
> parameter.
> 
> The error is:
> "Could not reserve enough space for object heap''
> 
> The same message occurs also with java-1_6_0-openjdk.

That is strange. Can you give us some more information?

How exactly did you install icedtea/openjdk?

Was is it a precompiled package, if so from where?
If not, how did you configure and compile from source?

Do other opensuse users have the same issue?

What is the exact command given and output?
Both for the failing and the working -Xmx1m -version case?
(Best to copy/paste the command line completely, any output, including
errors, stacktraces and the output of -version is interesting.)

Thanks,

Mark




More information about the distro-pkg-dev mailing list