[英]Java HotSpot(TM) 64-Bit Server VM warning
I have a tomcat as my web-server, it stopped down automatically with the given Error -我有一个 tomcat 作为我的网络服务器,它自动停止并出现给定的错误 -
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f16a8405000, 12288, 0) failed; error='Cannot allocate memory' (errno=12)
i need to figured it out what actually happened ?我需要弄清楚到底发生了什么? and what warning does mean ?
什么警告是什么意思?
There is insufficient memory for the Java Runtime Environment to continue. Java 运行时环境的内存不足,无法继续。
Native memory allocation (malloc) failed to allocate xxxxx bytes for committing reserved memory.本机内存分配 (malloc) 未能为提交保留内存分配 xxxxx 字节。
Possible reasons:可能的原因:
Possible solutions:可能的解决方案:
If you are on Java 8 or later, please also see this question: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize如果您使用的是 Java 8 或更高版本,另请参阅此问题: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize
Java was not able to allocate enough memory, ie it's not Java's heap limit that's in the way but rather no more memory available to be given to Java by OS. Java 无法分配足够的内存,也就是说,妨碍的不是 Java 的堆限制,而是操作系统无法为 Java 提供更多可用内存。 Check that the machine is not running out of memory.
检查机器是否没有内存不足。 And first clean ram or increase ram then check if again there is an out of memory error then increase heap size:
首先清理 ram 或增加 ram 然后检查是否再次出现内存不足错误,然后增加堆大小:
-Xms128m
min(heap size) -Xms128m
min(堆大小)
-Xmx512m
max(heap size) -Xmx512m
最大值(堆大小)
-XX:MaxPermSize
max(perm size) -XX:MaxPermSize
max(烫发尺寸)
There is insufficient memory for the Java Runtime Environment. Java 运行时环境的内存不足。
I was facing the same issue as shown below.我面临着同样的问题,如下所示。
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f80f7000, 20729856, 0) failed;
OpenJDK 64 位服务器 VM 警告:信息:os::commit_memory(0x00000000f80f7000, 20729856, 0) 失败; error='Cannot allocate memory' (errno=12)
错误='无法分配内存' (errno=12)
I solved this by using below steps.我通过使用以下步骤解决了这个问题。
There are processes hanging on to files they've accessed on /tmp有进程挂在他们在 /tmp 上访问过的文件上
Use lsof to check:使用lsof检查:
lsof | grep deleted
It will list processes, Now you can kill those process which will free the space for you.它将列出进程,现在您可以终止那些将为您释放空间的进程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.