Why I am getting a JVM max heap space error?
===

I am trying to run a certain java program with more than 1024M heap space. Even though I have 4GB of RAM and a 32bit OS, its saying that the max is 1024M. Below is the batch code I am trying to use to start the program:

    @echo off
    java -Xmx2048M -Xms2048M -jar program.jar

Could someone explain why I am getting a JVM "could not reserve enough space" error?