Start JVM with 4G heap size only when running on 64bit machines

We need to fix this so it runs on 32bit machines, because 32bit machine doesn't have 4G memory to address.