当前位置:网站首页>Deploy the project halfway through the follow-up
Deploy the project halfway through the follow-up
2022-08-10 12:32:00 【lonelyMangoo】
Overview
After the last time I gave up halfway, I talked to my friends about this problem, so I improved it, althoughIn the end it failed.
nacos persist to database
A friend said that it may not be persisted to the database, resulting in too much local memory usage and crashing the system. I think it makes sense and changed it to persist to the database.
Action:
- Find the sql file and put it in the database
nacos-mysql.sql is required, just import the database - Modify the configuration file
Enter application.properties
Just modify these data, don't forget to delete the previous comments - Test
Add in the upper right corner
Conclusion
It's definitely not the reason. First of all, I didn't find the statement that database persistence is added, but there is no local persistence; second, data is only added by manual configuration, and the service will not be started, so even if it is, it has no effect.; Third, one more database operation feels that it also increases the pressure on the server.
Continue to reduce jvm parameters and nacos parameters
java -jar -Xms32m -Xmx128m front-1.0-SNAPSHOT.jar
And change the parameters of nacos to 64, 64, 40
This can run two jar packages at the same time, so it is effective
It's still a server reason
But I suddenly found that the interfaces I have been testing all use redis for caching, so I tried many times
- front.jar+gateway.jar can run common interface
- See if redis works normally - yes
- front.jar running the cache interface can run, the cache works normally
- front.jar+gateway.jar runs the cache interface and crashes directly
- Use redis first, then run front.jar, everything is normal, start gateway.jar, crash
So I came to the conclusion that my previous operation was not a problem, simply started too many services, the server can't stand it!!!
边栏推荐
- An enhanced dynamic packet buffer management.论文核心部分
- HDU 6040 Hints of sd0061 (技巧)
- Analysis of the name matching process between the LCD driver and the device (Tiny4412)
- 一文读懂NFT数字藏品为何风靡全球?
- LeetCode 25. A set of K flipped linked lists
- 阿里云贾朝辉:云XR平台支持彼真科技呈现国风科幻虚拟演唱会
- LeetCode 362. Design Hit Counter(计数器)
- 阿里架构师整理一份企业级SSM架构实战文档,让你熟悉底层原理
- 孩子自律性不够?猿辅导:计划表要注意“留白”给孩子更多掌控感
- 【list合并】多个list合并为一个list
猜你喜欢
如何培养ui设计师的设计思维?
2016,还是到了最后
Database management tool: dynamic read-write separation
制品库是什么?
Crypto Gaming: The Future of Gaming
Network sockets (UDP and TCP programming)
阿里架构师整理一份企业级SSM架构实战文档,让你熟悉底层原理
7. Instant-ngp
mpf6_Time Series Data_quandl_correct kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull
CLIP还能做分割任务?哥廷根大学提出一个使用文本和图像prompt,能同时作三个分割任务的模型CLIPSeg,榨干CLIP能力...
随机推荐
The author of open source also has a life problem
三星计划2023年开始在越南生产半导体零部件
吃透Chisel语言.36.Chisel实战之以FIFO为例(一)——FIFO Buffer和Bubble FIFO的Chisel实现
Analysis of the name matching process between the LCD driver and the device (Tiny4412)
Threshold-based filtering buffer management scheme in a shared buffer packet switch core part of the paper
LeetCode 369. Plus One Linked List(链表加1)
CodeForces - 628D (digital dp)
IDC第一的背后,阿里云在打造怎样的一朵“视频云”?
LeetCode 445. Adding Two Numbers II
7、Instant-ngp
How many constants and data types do you remember?
LeetCode 92. Reverse Linked List II
Database management tool: dynamic read-write separation
16、Pytorch Lightning入门
Excel函数公式大全—LOOKUP函数
有哪些好用的性能测试工具推荐?性能测试报告收费标准
An enhanced dynamic packet buffer management. The core part of the paper
【Redis】内存回收策略
APP automation testing practice based on UiAutomator2+PageObject mode
LT8911EXB MIPI CSI/DSI转EDP信号转换