Java ec2机器中规定的Tomcat 8
这是我的设想:Java ec2机器中规定的Tomcat 8,java,linux,tomcat8,Java,Linux,Tomcat8,这是我的设想: 可用交换内存:4GB Linux 我收到这些警告: Java HotSpot(TM) 64-Bit ServerVM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000540000000, 7158628352, 0) failed; er
Java HotSpot(TM) 64-Bit ServerVM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000540000000, 7158628352, 0) failed; error='Cannot allocate memory' (errno=12)
还有一个错误:
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 7158628352 bytes for committing reserved memory.
An error report file with more information is saved as:
/opt/apache-tomcat-8.0.28/hs_err_pid8656.log
我的机器中的ram内存:
total used free shared buffers cached
Mem: 7986 7839 147 0 94 1390
-/+ buffers/cache: 6354 1632
Swap: 4095 3 4092
WARNING: An attempt was made to authenticate the locked user "root"..
为问题添加更多细节。Linux版本,RAM amount,也发布了位于
/opt/apache-tomcat-8.0.28/hs_err_pid8656.log中的文件内容。关于tomcat8配置的一些细节,也许还有关于交换使用的一些细节(在linux终端上使用:htop
或top
解释了第一个警告,解释了选项MaxPermSize
的弃用。解释了第二个警告。关于错误,我建议您按照建议或警告检查ram使用情况:尝试验证锁定的用户“root”有了这个警告,我已经在tomcat_user.xml中更改了用户名和密码,并重新启动了我的实例。正如您在这里看到的Mem:7986 7839 147 0 94 1390
您的ram已满。您可以自由交换,但如果JVM开始使用,交换性能将下降。