Problem discovery
1. Start one of the Nacos clusters
2. Query the number of starts through the number of starts in the cluster command
ps -ef|grep nacos|grep -v grep|wc -l
This is the second startup. One has been started before, so the problem comes. Why is it still one after the second startup
3. Use the tail-f command to read the contents of the file loop, monitor the growth of the file and find out the reason
tail -f 文件路径 #The file path is given after the start command
Normal start
Second startup error
From the Nacos startup log information, we can see that the memory is insufficient
4. Check the memory usage through the free -h command
There is only 70m of available memory left
5. By viewing startup.sh file to view the JVM startup command
– xms2g represents 2G of initially allocated memory
– xmx2g represents the maximum value of JVM memory
– xmn1g represents 1g of Cenozoic memory;
Solution:
1. Increase system memory
2. Modify the startup parameters of the JVM in the startup script and reduce the memory allocated to the JVM
Allocate according to your current usage mode and the memory of your virtual machine
After modification, it is started successfully
Read More:
- [Solved] Nacos2.1.1 Startup Error: nacos is starting with standalone
- [Solved] redis Error: Can‘t save in background fork Cannot allocate memory
- [Solved] Nacos Startup Error: [db-load-error]load jdbc.properties error
- [Solved] nacos Startup Error: Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
- [Solved] Nacos Start Error: failed to req API:127.0.0.1:8848/nacos/v1/ns/service/list. code:503 msg: server is DOWN now
- How to Solve “Error db.num is null” when starting Nacos
- [Solved] Docker Startup Error: panic: runtime error: invalid memory address or nil pointer dereference
- Node Memory Overflow: FATAL ERROR: Reached heap limit Allocation failed – JavaScript heap out of memory
- [Solved] sparkSQL Error: WARN TaskMemoryManager: Failed to allocate a page (bytes), try again.
- [Solved] Mycat Startup Error: ERROR Startup failed: Timed out waiting for a signal from the JVM
- Nacos Error: server is DOWN now, please try again later! [How to Solve]
- [Solved] Failed to allocate graph: MYRIAD device is not opened.
- How to Solve Redis Cluster Build Error
- How to Solve kubelet starts error (k8s Cluster Restarted)
- Nacos Click service offline error: caused: errCode: 500, errmsg: do metadata operation failed;
- [Solved] failed to req API:localhost:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException
- PyCharm Error: RuntimeError: CUDA out of memory [How to Solve]
- [Solved] elasticsearch Error: Failed: 1: this action would add [6] total shards, but this cluster currently has [2
- K8s cluster initialization error: Port 6443 is in use [Solved]
- UnknownHostException error when connecting to Mongo cluster Java