compile/run 32bit java/jdk16 on amd64

Maciej Suszko maciej at suszko.eu
Tue Dec 16 09:38:26 PST 2008


Andriy Gapon <avg at 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...
> > 
> > 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.
> > 
> > Reference:
> > http://lists.freebsd.org/pipermail/freebsd-java/2008-November/007763.html
> > 
> 
> 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)?
-- 
regards, Maciej Suszko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-java/attachments/20081216/e54d273f/signature.pgp


More information about the freebsd-java mailing list