Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 18:38:16 +0100
From:      Maciej Suszko <maciej@suszko.eu>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-java@FreeBSD.org
Subject:   Re: compile/run 32bit java/jdk16 on amd64
Message-ID:  <20081216183816.23aa210c@suszko.eu>
In-Reply-To: <4947C3CD.4060006@icyb.net.ua>
References:  <20081215201420.2d47fd67@suszko.eu> <4947905F.6020005@icyb.net.ua> <4947C3CD.4060006@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/DP.q9QQ84j35C2cR2BL=I.M
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Andriy Gapon <avg@icyb.net.ua> wrote:
> on 16/12/2008 13:26 Andriy Gapon said the following:
> > on 15/12/2008 21:14 Maciej Suszko said the following:
> >> Hello,
> >>
> >> Is it possible to build java/jdk16 for 32bit environment using
> >> amd64 world, or are there any tricks to run fully functional 32bit
> >> jdk16 on amd64?
> >> My goal is to have a machine with more than 4GB of RAM (I'd like to
> >> avoid using PAE) and be able to run multiple java processes, which
> >> can consume ~2GB of RAM each. Using 64bit jdk16 the memory
> >> consumption is even doubled, so that's not the way I'd like to
> >> go...
> >=20
> > I've recently had some negative experience *building* java/jdk15
> > port in stable/7 i386 jail on stable/7 amd64 host. Although
> > diablo-jdk-1.5 seems to have worked fine for bootstrapping. Just in
> > case: for threads I am using libthr.
> >=20
> > Reference:
> > http://lists.freebsd.org/pipermail/freebsd-java/2008-November/007763.ht=
ml
> >=20
>=20
> Heh, I've just tried the same with diablo-jdk16 and jdk16 and all
> worked fine. Wonder if the 1.5 problem could have been caused by
> something related to compat-6x in i386 jail.

Hi Andriy,

I was rather thinking about building/using 32bit jdk in 64bit world
directly, not using any jail. From what I observed - one of the problems
is that jdk built inside 32bit world is linked against ld-elf.so.1
(maybe not java binary itself but some libs or so) which on the amd64
arch is ld-elf32.so.1.

It would be great to be able to build all the jdk required libs as
32bit (using COMPAT_IA32), let's say in /opt, then build jdk using
those libs - in /opt as well... and that's the solution I'm looking for.

Another option might be porting Java Performance Release, which has
feature called CompressedOops - it looks very promising.

The worst case for me is to use PAE and 32bit world - have you got any
negative experience using it (especially with jdk)?
--=20
regards, Maciej Suszko.

--Sig_/DP.q9QQ84j35C2cR2BL=I.M
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAklH54gACgkQCikUk0l7iGqBcQCbBkFC98TYJbcckxpOOpHckvOe
sbsAn0vrwSBTtrY97z2tYUa35ZV614CU
=MzxG
-----END PGP SIGNATURE-----

--Sig_/DP.q9QQ84j35C2cR2BL=I.M--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081216183816.23aa210c>