gpt4 book ai didi

Java HotSpot(TM) 64 位服务器 VM 警告 : failed; error ='Not enough space' (errno=12)

转载 作者:行者123 更新时间:2023-12-05 06:19:14 34 4
gpt4 key购买 nike

遇到以下错误 - 在安装和运行我自己的应用程序时。

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000000008a660000, 1973026816, 0) failed; error='Not enough space' (errno=12)

KiB Mem : 3852964 total, 358468 free, 3011660 used, 482836 buff/cache

KiB Swap: 0 total, 0 free, 0 used. 515060 avail Mem

空间分配如下我的系统正在消耗空间,详情如下

Filesystem      Size  Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 377M 42M 335M 12% /run
/dev/xvda1 97G 47G 51G 48% /
tmpfs 1.9G 188K 1.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/loop1 18M 18M 0 100% /snap/amazon-ssm-agent/1566
/dev/loop2 92M 92M 0 100% /snap/core/8689
/dev/loop0 90M 90M 0 100% /snap/core/8268
/dev/loop3 18M 18M 0 100% /snap/amazon-ssm-agent/1480
tmpfs 377M 0 377M 0% /run/user/1001
tmpfs 377M 32K 377M 1% /run/user/119
tmpfs 377M 0 377M 0% /run/user/1000

有什么帮助吗?

最佳答案

Java HotSpot(TM) 64-Bit Server VM warning :

There is insufficient memory for the Java Runtime Environment tocontinue.

Native memory allocation (malloc) failed to allocate xxxxx bytes forcommitting reserved memory.

Possible reasons:

  • The system is out of physical RAM or swap space
  • In 32 bit mode, the process size limit was hit

Possible solutions:

  • Reduce memory load on the system
  • Increase physical memory or swap space
  • Check if swap backing store is full
  • Use 64 bit Java on a 64 bit OS
  • Decrease Java heap size (-Xmx/-Xms)
  • Decrease number of Java threads
  • Decrease Java thread stack sizes (-Xss)
  • Set larger code cache with -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

有关问题和解决方案的更多信息,请访问:

Memory problem: 'error=12, Not enough space'

Forking JVM: error=12, Cannot allocate memory or error=12, Not enough space

ERROR: "Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000aaaa0000, 178978816, 0) failed; error=Cannot allocate memory"

当然Java HotSpot VM Options也会很有用。

关于Java HotSpot(TM) 64 位服务器 VM 警告 : failed; error ='Not enough space' (errno=12),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60865325/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com