64 bit needs more memory than 32 bit

D

daniel.shaya

It is clear from writing a simple program that creates Strings, that
almost double the amount of memory is necessary when running on a 64
bit jvm (I tried this on windows).

Is there any way to reduce the amount of memory (a jvm setting or
something) - or is this just the penalty for running on 64bit?

Thanks in advance.

Daniel
 
T

Tom Hawtin

It is clear from writing a simple program that creates Strings, that
almost double the amount of memory is necessary when running on a 64
bit jvm (I tried this on windows).

Is there any way to reduce the amount of memory (a jvm setting or
something) - or is this just the penalty for running on 64bit?

There are two issues here.

Firstly, if you have 64-bit addresses, then they are going to take up
twice as much memory as 32-bit addresses. AIUI, on non-x86 the extra
memory bandwidth can cause a slowdown of around 10-15% (AMD64 is more
than compensated by not sticking too closely to the x86 design).

Secondly, IIRC, client HotSpot does not run on AMD64 (or "EM64-T").
Server HotSpot uses more memory.

Tom Hawtin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top