今天在启动tomcat的时候报 Error occurred during initialization of VM Could not reserve enough space for object heap的错误,查阅了一些资料得出是因为在tomcat的bin目录下,catalina.sh文件的tomcat内存参数配置过大,超过机器的可用内存总数造成的,只需要修改到合适的值即可。