Skip to main content

Never Used 32-bit JVM on Your 64-bit OS

Do you know that JVM (or JDK) with 32-bit is only able to use the maximum memory of 1.5GB?

I just notice when I install a JVM (without check if it's a 32 bit installer file) on my server of 64-bit OS with the same bit of Tomcat installing, I couldn't extend the memory more than 1.5GB for the application.

To check, 32bits or not

So it's very important to use full capacity of 64-bit OS by using the same for the application architecture.
Understanding of 32-bit & 64-bit, read this post.

Comments

Popular posts from this blog

Exercise 1: 99 Bottles of Beer

Let’s put all your new Java skills to good use with something practical. We need a class with a main(), an int and a String variable, a while loop, and an if test. A little more polish, and you’ll be building that business backend in no time. But before you look at the code on this page, think for a moment about how you would code that classic children’s favorite, “99 bottles of beer.” There’s still one little flaw in our code. It compiles and runs, but the output isn’t 100% perfect. See if you can spot the flaw , and fix it. public class BeerSong { public static void main (String[] args) { int beerNum = 99; String word = “bottles”; while (beerNum > 0) { if (beerNum == 1) { word = “bottle”; // singular, as in ONE bottle. } System.out.println(beerNum + “ ” + word + “ of beer on the wall”); System.out.println(beerNum + “ ” + word + “ of beer.”); System.out.println(“Take one down.”); System.out.println(“Pass it around.”); beerNum = beerNum - 1; if (

Java Hello World!

Hello Java Cambodia! Come to join us to discuss in our Google Group!