Whenever I run tomcat, I get this error
/Library/Tomcat/bin/catalina.sh: line 236: -XX:MaxPermSize=512m: command not found
though the tomcat starts after deployment but after sometime i do get outofmemory errors.
I looked at catalina.sh:236
and I see this line there
JAVA_OPTS=-server -XX:MaxPermSize=512m -Xms512m -Xmx1024m -Xss64M
whats wrong here ?