Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

32-bit or 64-bit application on 64-bit OS?

We are developing a swing application written by Java which requires only about 128MB memory, and in the short future I don't see it will require much more memory like 4GB. Previously we provide always 3 different releases, one for 32-bit Windows, one for 32-bit Linux and another for 64-bit Linux, with an installer which has JRE included. The 64-bit version was not used by anyone until couple of weeks ago, and an OutOfMemoryException was reported because the application consumes about 40-50% more memory than the 32-bit version.

My question is, is it needed at all for us to provide the 64-bit version for 64-bit Linux if the application will never need to use more than 4GB memory? We had some quick test which revealed that 32-bit version works also on 64-bit Linux. But I'm not sure what could be the cons we would have, e.g. performance and/or compatibility issue?

like image 539
Wayne Xu Avatar asked Mar 03 '11 09:03

Wayne Xu


People also ask

Can I run a 32bit app on a 64bit OS?

The 64-bit versions of Windows don't provide support for 16-bit binaries or 32-bit drivers. Programs that depend on 16-bit binaries or 32-bit drivers can't run on the 64-bit versions of Windows unless the program manufacturer provides an update for the program.

Should I use 32-bit or 64-bit programs?

Choosing Between 32-Bit and 64-Bit Software Heavy programs, like video editors and high-end games, run better in their 64-bit versions. Multi-tasking becomes more efficient, too. On a 64-bit system, if you have a choice between 32-bit and 64-bit apps, always go with 64-bit for best performance.

What happens if you run a 32bit program on a 64-bit system?

In general, you can surely run 32-bit software on a 64 bit PC. All 64 bit systems are compatible with 32-bit programs relying on WOW64, which is the x86 emulator that enables 32-bit Windows-based programs to run seamlessly on 64-bit Windows.

Can 32-bit programs run on 64-bit Windows 10?

In general, yes, you can . the fact that they are 32-bit is irrelevant. Both 64-bit Windows 10 and 32-bit Windows 10 can run 32-bit programs.


2 Answers

If your application provides no improvements for 64-bit host operating systems and is compatible with your 32-bit releases then I see no immediate need to provide it.

However, most, if not all new system are based on x64 architecture where I advocate that also 64-bit software should be the natural default. This needs grows stronger the closer you get to hardware level. I can't tell you how awkard it is to run a virtual operating just to support some 32-bit VPN client.

Promoting the 64-bit client would probably impact your download statistics if you would decide to make it the preferred choice.

like image 151
Johan Sjöberg Avatar answered Sep 23 '22 13:09

Johan Sjöberg


check this 64 bit java

like image 43
Dhananjay Avatar answered Sep 25 '22 13:09

Dhananjay