当前位置:网站首页>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.jarAnd 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!!!
边栏推荐
- 爱可可AI前沿推介(8.10)
- Configuration swagger
- 配置druid数据源「建议收藏」
- LT8911EXB MIPI CSI/DSI转EDP信号转换
- Does your child lack self-discipline?Ape Counseling: Pay attention to "blank" in the schedule to give children more control
- Ssm framework construction process [easy to understand]
- HDU 4372:Count the Buildings (Stirling数)
- dedecms supports one-click import of Word content
- 技术人必看!数据治理是什么?它对数据中台建设重要吗?
- Data Analysis of Time Series (5): Simple Prediction Method
猜你喜欢

阿里云贾朝辉:云XR平台支持彼真科技呈现国风科幻虚拟演唱会

培训机构学习费用是多少呢?

mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull

面试美团被问到了Redis,搞懂这几个问题,让你轻松吊打面试官

吃透Chisel语言.36.Chisel实战之以FIFO为例(一)——FIFO Buffer和Bubble FIFO的Chisel实现

Data Analysis of Time Series (5): Simple Prediction Method

LT8911EXB MIPI CSI/DSI to EDP signal conversion

2016,还是到了最后

太香了!自从用了这款接口神器,我的团队效率提升了 60%!

StarRocks on AWS 回顾 | Data Everywhere 系列活动深圳站圆满结束
随机推荐
百度用户产品流批一体的实时数仓实践
47Haproxy集群
【集合】HashSet和ArrayList的查找Contains()时间复杂度
What are some useful performance testing tools recommended? Performance testing report charging standards
人脸考勤是选择人脸比对1:1还是人脸搜索1:N?
StarRocks on AWS 回顾 | Data Everywhere 系列活动深圳站圆满结束
Chapter9 : De Novo Molecular Design with Chemical Language Models
2016,还是到了最后
三星计划2023年开始在越南生产半导体零部件
开源的作者,也有个生活问题
LeetCode 146. LRU 缓存
A detailed explanation of implementation api embed
迈矽科推出高性能77GHz毫米波雷达芯片,尚未量产就已获数万颗订单
Excel function formulas - HLOOKUP function
LeetCode 82. Remove Duplicate Elements in Sorted List II
【Redis】内存回收策略
彩色图和深度图转点云
LeetCode 138. Copy a linked list with random pointers
An enhanced dynamic packet buffer management. The core part of the paper
LeetCode 61. 旋转链表