When starting tomcat I get the error
Not able to reserve enough space for Object Heap
Not able to create Java virtual machine
I googled a bit and it seems that this is a common problem but the fix which was mentioned everywhere does not work for me.
Every place where this problem was mentioned said "set CATALINA_HOME or JAVA_OPTS." I set the values for both the variables and reserved enough space for head and permsize but still I am facing the same issue.
On a lighter node: I have verified that there is enough space available for allocation.
I am using 32 bit stack and I am setting following values for JAVA_OPTS and CATALINA_OPTS
-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m