OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000001faf3e50000
背景
早上在用IDEA构建项目的时候,爆出了以下问题。
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000001faf3e50000, 65536, 0) failed; error='页面文件太小,无法完成操作。' (DOS error/errno=1455)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 65536 bytes for Failed to commit area from 0x000001faf3e50000 to 0x000001faf3e60000 of length 65536.
# An error report file with more information is saved as:
# E:\project\hs_err_pid31108.log
错误信息
根据提示,直接找到对应的错误日志。
错误日志主要内容如下:
--------------- S U M M A R Y ------------Command Line: -Dmaven.multiModuleProjectDirectory=E:\project\hs-mall\code\service\chuangyue-mall -Dmaven.home=D:\Program Files\apache-maven-3.8.1 -Dclassworlds.conf=D:\Program Files\apache-maven-3.8.1\bin\m2.conf -Dmaven.ext.class.path=D:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\plugins\maven\lib\maven-event-listener.jar -javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\lib\idea_rt.jar=61563:D:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\bin -Dfile.encoding=UTF-8 org.codehaus.classworlds.Launcher -Didea.version=2021.3.2 -s D:\Program Files\apache-maven-3.8.1\conf\settings.xml -Dmaven.repo.local=E:\repo clean install -P devHost: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 16 cores, 31G, Windows 10 , 64 bit Build 19041 (10.0.19041.1566)
Time: Mon May 30 10:42:27 2022 中国标准时间 elapsed time: 46.413183 seconds (0d 0h 0m 46s)--------------- T H R E A D ---------------Current thread (0x0000011769c96000): JavaThread "C2 CompilerThread3" daemon [_thread_in_native, id=14764, stack(0x0000000d71700000,0x0000000d71800000)]Current CompileTask:
C2: 46413 16870 ! 4 lombok.javac.JavacAST::drill (146 bytes)Stack: [0x0000000d71700000,0x0000000d71800000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x5f7e5a]
V [jvm.dll+0x77ff2e]
V [jvm.dll+0x7815ff]
V [jvm.dll+0x781cc3]
V [jvm.dll+0x247408]
...--------------- P R O C E S S ---------------Threads class SMR info:...Events (20 events):
Event: 45.849 loading class lombok/launch/Main
Event: 45.849 loading class lombok/launch/Main done
Event: 45.849 loading class lombok/launch/ShadowClassLoader
Event: 45.849 loading class lombok/launch/ShadowClassLoader done
Event: 45.920 loading class lombok/launch/AnnotationProcessorHider$AstModificationNotifierData
Event: 45.920 loading class lombok/launch/AnnotationProcessorHider$AstModificationNotifierData done
...Dynamic libraries:
0x00007ff6cf5f0000 - 0x00007ff6cf5fd000 D:\Program Files\JDK\jdk11\bin\java.exe
0x00007ffb1caf0000 - 0x00007ffb1cce5000 C:\Windows\SYSTEM32\ntdll.dll
...dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;D:\Program Files\JDK\jdk11\bin;C:\Windows\SYSTEM32;C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e;D:\Program Files\JDK\jdk11\bin\server;D:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\bin;C:\Users\Admin\AppData\Local\TempVM Arguments:
jvm_args: -Dmaven.multiModuleProjectDirectory=E:\project\hs-mall\code\service\chuangyue-mall -Dmaven.home=D:\Program Files\apache-maven-3.8.1 -Dclassworlds.conf=D:\Program Files\apache-maven-3.8.1\bin\m2.conf ...[Global flags]intx CICompilerCount = 12 {product} {ergonomic}uint ConcGCThreads = 3 {product} {ergonomic}uint G1ConcRefinementThreads = 13 {product} {ergonomic}size_t G1HeapRegionSize = 2097152 {product} {ergonomic}uintx GCDrainStackTargetSize = 64 {product} {ergonomic}size_t InitialHeapSize = 536870912 {product} {ergonomic}size_t MarkStackSize = 4194304 {product} {ergonomic}
...Logging:
Log output configuration:#0: stdout all=warning uptime,level,tags#1: stderr all=off uptime,level,tagsEnvironment Variables:
略--------------- S Y S T E M ---------------OS: Windows 10 , 64 bit Build 19041 (10.0.19041.1566)
OS uptime: 7 days 0:10 hoursCPU:total 16 (initial active 16) (8 cores per cpu, 2 threads per core) family 6 model 165 stepping 5 microcode 0xc8, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx, fmaMemory: 4k page, system-wide physical 32701M (7169M free)
TotalPageFile size 68058M (AvailPageFile size 5M)
current process WorkingSet (physical memory assigned to process): 3380M, peak: 3380M
current process commit charge ("private bytes"): 3816M, peak: 3816Mvm_info: OpenJDK 64-Bit Server VM (11.0.11+9) for windows-amd64 JRE (11.0.11+9), built on Apr 20 2021 21:22:09 by "" with MS VC++ 15.9 (VS2017)END.
根据log的内容分析,应该是内存撑不住,爆了。
我看了下我的操作,我发现因为我允许多项目启动。同时启动了多个服务和调试。
中间还有个XXL-job服务。我也是醉了。
所以导致项目内存不够了。
解决方案
那么很简单,直接把所有的项目stop掉,然后重新构建就可以了。
其实IDEA自带了Profiler窗口,你可以直接查看这个窗口就知道哪个占用了内存了。
总结
问题都会有的,关键是要稳住,不要慌,错误日志越多,定位问题就越简单。
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000001faf3e50000相关推荐
- OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f6cb1055000, 16384, 0) failed; erro
背景 今天突然网站不能访问了. 赶紧重启下服务.发现提示服务未启动. 服务是什么时候关的呢? 赶紧把catalina.out文件下到本地. 然后开始定位问题点. 问题 找了半天,终于发现了问题 Ope ...
- 启动Kafka失败Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 107
报错信息: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 107374 ...
- 解决:Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000, 986513408,
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.只是想启动elasticsearch,报错如题: Java HotSpot(TM) 64-Bit ...
- kafka启动报错Java HotSpotTM 64-bit Server VM warning:INFO: os::commit_memory
版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/qq_39501726/article/details/81938695 kafka启动报错 ...
- OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 5726797824, 0) failed;
1.背景 一个进程突然自停,再次启动时报错 2.原因 内存没有释放,无限吃内存导致.(着重查看交换空间) 3.解决办法 释放内存 切换到root用户 #cd /proc/sys/vm/ #free – ...
- 【Java】OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes…… 的解决方法
遇到报错:OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because boo ...
- OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstra
报错OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootst ...
- OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one......
启动kafka的脚本程序报如下所示的错误: OpenJDK 64-Bit Server VM warning: If the number of processors is expected to i ...
- 问题:OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one...
问题:OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, t ...
- 解决ES内存不足问题-OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, se
ES启动不起来,查看日志发现报错 OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, setting it ...
最新文章
- mysql 集群实践_MySQL Cluster集群探索与实践
- quartz java web_java web定时任务---quartz
- python日期函数引用_Python pandas.to_datetime函数方法的使用
- static unsigned short,int ,char
- 2010世界杯主题曲夏奇拉献唱《Waka Waka》
- Spine学习六 - 碰撞检测
- 光是无限远服务器有道馆吗,光是无限远服务器客户端
- JAVA三大框架SSH和MVC
- html新建文件夹,JS实现新建文件夹功能
- HEVC学习笔记(二)整体介绍
- 关于C语言的system函数用法
- 计算方法:三次样条插值原理
- 视频监控存储特点分析
- mysql mdl锁_MySQL锁系列3 MDL锁
- Skywalking环境搭建及demo实战
- 2020云盘点:信创云蓬勃发展,带动中国云计算市场快速增长
- BUUCTF:[SWPUCTF 2016]Web blogsys
- 贴片灯背光源的LED灯珠正负极反了怎么办?
- 网站设计的思考 (转)
- 基恩士系列PLC程序 基恩士KV-N60 PLC程序,搭配松下A5伺服驱动器