Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

The case for 32-bit Java on 64-bit Ubuntu is no longer endorsed.

...

not that popular, however, on Cloud where memory is a premium 32-bit can result in significant savings.

For example, originally Confluence on 32-bit required less than 1GB of memory while 64-bit was 2x. Some readings cite Java 64-bit have improved memory performance using compression type scans., but as of Java 64-bit 1.8u92, this is still not the case.

If you try and install 32-bit Java on 64-bit Ubuntu you will get an error,

This is because the 32-bit library support is not installed,

For Ubuntu 13 and higher, For Ubuntu 16

Code Block
languagebash
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libstdc++6:i386
Code Block
languagebash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libgcc1:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libc6:i386 libgcc1:i386 libstdc++6:i386
0 upgraded, 5 newly installed, 0 to remove and 13 not upgraded.
Need to get 2,763 kB of archives.
After this operation, 12.1 MB of additional disk space will be used.


For Ubuntu 13 and above multiarch has also been removed for direct dependencies,

...

Code Block
languagebash
 sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

 


For Ubuntu 12 to 12.04, ia32-lib has been removed in favour of multiarch,

...