系统运行内存是16g,之前运行四五个系统都没事,最近突然报错,日志显示
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 1048576 bytes for AllocateHeap
Possible reasons:
The system is out of physical RAM or swap space
The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
Possible solutions:
Reduce memory load on the system
Increase physical memory or swap space
Check if swap backing store is full
Decrease Java heap size (-Xmx/-Xms)
Decrease number of Java threads
Decrease Java thread stack sizes (-Xss)
Set larger code cache with -XX:ReservedCodeCacheSize=
JVM is running with Zero Based Compressed Oops mode in which the Java heap is
placed in the first 32GB address space. The Java Heap base address is the
maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
to set the Java Heap base and to place the Java Heap above 32GB virtual address.
This output file may be truncated or incomplete.
Out of Memory Error (memory/allocation.inline.hpp:61), pid=5824, tid=0x000000000000330c
JRE version: (8.0_271-b09) (build )
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.271-b09 mixed mode windows-amd64 compressed oops)
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
--------------- T H R E A D ---------------
...
网上各种搜,有的说环境变量JAVA_OPTS
有的说调整交换空间
但是问题依然没有得到解决,根本也不用加内存条,因为是同样的主机机器,同事的都可以,就我的不行
希望大佬们遇到这样的给指导下
使用任务管理器查看一下哪几个程序占用内存过高,尝试杀掉其进程后再运行你的运行的程序。