当前位置:网站首页>Dokcer running Nacos container automatic exit problem
Dokcer running Nacos container automatic exit problem
2022-07-22 18:08:00 【[illusory private school]】
High quality resource sharing
Learning route guidance ( Click unlock ) | Knowledge orientation | Crowd positioning |
---|---|---|
🧡 Python Actual wechat ordering applet 🧡 | Progressive class | This course is python flask+ Perfect combination of wechat applet , From the deployment of Tencent to the launch of the project , Create a full stack ordering system . |
Python Quantitative trading practice | beginner | Take you hand in hand to create an easy to expand 、 More secure 、 More efficient quantitative trading system |
Dokcer function Nacos Container auto exit problem
The student party , Rented ECS ,2 nucleus 2G. Use Docker function Nacos The container always exits automatically when it is found .Nacos There is no obvious error message in the log . Check the memory overflow error , The instructions are as follows
journalctl -k | grep -i -e memory -e oom
It happened. OOM error , Automatically killed the related process
Look again Nacos journal , As shown in the figure below , It is found that the heap memory is set too large , Initial heap memory Xms Set up 1G, Maximum heap memory Xmx Set up 1G, The younger generation Xmn Set up 512M.
Problem found , take JVM The heap memory setting is small
I use it docker-compose function Nacos Of related services .Nacos The relevant part Of yml The code is as follows
version: "3.2"
services:
nacos:
image: nacos/nacos-server
environment:
- MODE=standalone
- JVM\_XMS=64m
- JVM\_XMX=64m
- JVM\_XMN=16m
ports:
- "8848:8848"
Remember to look again after starting Nacos Is the log based on the memory you configure , If it doesn't change , It should be yml The format inside is wrong , Then check whether the configuration file you wrote is correct . After rerunning the configuration file , We see the Nacos journal , The configuration is found to be effective
Check the running Docker Containers
docker ps
No automatic exit . But there are new problems .nacos Although it won't quit automatically , But the log also reported that the heap memory overflowed , I forgot to cut the wrong picture , As we all know java Heap memory overflow is enough
Check it out nacos Using memory , Use instruction
ps -aux|grep nacos
It is found that it occupies about 300 many M Physical memory . Then readjust the heap memory in the previous way .
__EOF__
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Kzxhvsb6-1658423659444)(https://blog.csdn.net/xuzhuo123)] Feet on the ground Looking up at the starry sky - Link to this article :https://blog.csdn.net/xuzhuo123/p/16503236.html
- About bloggers : Comments and private messages will be answered as soon as possible . perhaps Direct personal trust I .
- Copyright notice : All articles in this blog except special statement , All adopt BY-NC-SA license agreement . Reprint please indicate the source !
- Solidarity bloggers : If you think the article will help you , You can click the bottom right corner of the article **【[ recommend ](javascript:void(0)】** once .
边栏推荐
猜你喜欢
随机推荐
异常的理解学习
17、 C function pointer and callback function
[cloud native] docker deployment database persistence
MySQL constraints
阿我就是舅舅卡空间
Bigder:35/100 development colleagues said that I tested it myself. But something went wrong after the launch.
GBase8s数据库约束模式的保持
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
十七、C函数指针与回调函数
web3分享
mysql 自增主键出现不连续的原因?
Anaconda 环境迁移
How MySQL queries the data in JSON data
Methodology (I): how to quickly learn a programming language
[paper summary] 2D target detection article summary, continuously updated
Differences between MySQL and MariaDB
[opencv introduction practice] use the front camera of the computer for face detection
Unity TextMeshPro命名空间引用及组件获取
以SPI的仿真文件学习TB写法
How to carry out efficient data governance? Index management and data traceability help!