I've created a test OpenVZ VPS with 1GB RAM (CentOS 6.3 64 bit) and installed Sun's Java 7 via RPM onto it.
When I try the command "java -version", it gives me this error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.
Here are 2 screenshots of user_beancounters and htop to show that it shouldn't have a problem with not having enough memory:
http://puu.sh/1xwxB
http://puu.sh/1xwDl
Any help is appreciated.