简体   繁体   English

Java HotSpot(TM) 64 位服务器 VM 警告

[英]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:可能的原因:

  1. The system is out of physical RAM or swap space系统的物理 RAM 或交换空间不足
  2. In 32 bit mode, the process size limit was hit在 32 位模式下,达到了进程大小限制

Possible solutions:可能的解决方案:

  1. Reduce memory load on the system减少系统内存负载
  2. Increase physical memory or swap space增加物理内存或交换空间
  3. Check if swap backing store is full检查交换后备存储是否已满
  4. Use 64 bit Java on a 64 bit OS在 64 位操作系统上使用 64 位 Java
  5. Decrease Java heap size (-Xmx/-Xms)减少 Java 堆大小 (-Xmx/-Xms)
  6. Decrease number of Java threads减少 Java 线程数
  7. Decrease Java thread stack sizes (-Xss)减少 Java 线程堆栈大小 (-Xss)
  8. Set larger code cache with -XX:ReservedCodeCacheSize=使用 -XX:ReservedCodeCacheSize= 设置更大的代码缓存

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.

相关问题 Java HotSpot(TM)64位服务器VM警告,CentOS,SmartGit,SmartSvn - Java HotSpot(TM) 64-Bit Server VM warning, CentOS, SmartGit, SmartSvn Java HotSpot(TM) 64 位服务器 VM 警告:忽略选项 MaxPermSize - Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize “ Java HotSpot(TM)64位服务器VM警告:无法保留共享内存。 (errno = 12)” - “Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory. (errno=12)” Java HotSpot(TM) 64 位服务器 VM 警告:失败; error='空间不足' (errno=12) - Java HotSpot(TM) 64-Bit Server VM warning: failed; error='Not enough space' (errno=12) OpenJDK 64位服务器VM和Java HotSpot(TM)64位服务器VM - OpenJDK 64-Bit Server VM AND Java HotSpot(TM) 64-Bit Server VM Java HotSpot(TM)64位服务器VM警告由于没有此类文件或目录,无法打开文件logs / gc.log - Java HotSpot(TM) 64-Bit Server VM warning Cannot open file logs/gc.log due to No such file or directory Java HotSpot(TM) 64 位服务器 VM 警告:选项 -Xverify:none 和 -noverify 在 JDK 13 中已弃用,将来可能会被删除 - Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future Eclipse运行项目错误-Java hotspot(TM)64位服务器VM -1.7.0_09 &lt;&gt; 1.5.0 - Eclipse Run a project error - java hotspot(TM) 64-bit server VM -1.7.0_09 <> 1.5.0 我在tomcat中收到“ Java HotSpot(TM)64位服务器VM警告:发生异常java.lang.OutOfMemoryError,将信号SIGTERM调度到处理程序” - I get “Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal SIGTERM to handler” error in tomcat Java HotSpot(TM) 64 位服务器 VM 警告:仅引导加载程序类支持共享,因为已附加引导程序类路径 - Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM