I have java options set to -Xms1024M inside environment variables. I am using windows 7 as the operating system. However if i try to run any java program i get error Could not reserve enough space for 1048576KB object Heap
I checked my RAM usage and i see that there is plenty of memory available. Resource monitor shows below stats:
Hardware reserved:207 MB In Use:5855 MB Modified:44 MB Standby:7849 MB Free:2276 MB
Available:10139 MB Cached:7908 MB Total:16177 MB Installed: 16384 MB
Can anyone help how this can be resolved and explain how exactly allocation works with respect to RAM. I believe that as memory is available, there should be some way to allocated it