[问题描述]tomcat服务启动失败,系统提示错误代码4.[原因分析]查找tomcat的logs目录下stdout.log日志,发现一句话: Error occurred during initialization of VMCould not reserve enough space for object heap翻译:VM初始化时发生错误无法为对象堆保留足够的空间 于是,猜测是配置的jvm内存问题,即jvm启动时内存不足引起.[解决办法]打开注册表,修改jvm内存设置,JvmMs和JvmMx