当前位置:网站首页>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!!!
边栏推荐
- 如何让别人看不懂你的 JS 代码?把你当大佬!
- leetcode/两个链表的第一个重合节点
- 阿里架构师整理一份企业级SSM架构实战文档,让你熟悉底层原理
- 郭晶晶家的象棋私教,好家伙是个机器人
- The 6th "Blue Hat Cup" National College Student Network Security Skills Competition Semi-Final Part WriteUp
- 网络基础(第一节)
- 一文读懂NFT数字藏品为何风靡全球?
- 技术人必看!数据治理是什么?它对数据中台建设重要吗?
- CodeForces - 628D (digital dp)
- CodeForces - 628D (数位dp)
猜你喜欢

可视化服务编排在金融APP中的实践

16. Getting Started with Pytorch Lightning

人脸考勤是选择人脸比对1:1还是人脸搜索1:N?

Network Fundamentals (Section 1)

加密游戏:游戏的未来

mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull

时间序列的数据分析(五):简单预测法

22年BATJ大厂必问面试题(复盘):JVM+微服务+多线程+锁+高并发

个推数据资产管理经验 | 教你打造数据质量心电图,智能检测数据“心跳”异常

你是怎么知道数据库 Htap 能力强弱的?怎么能看出来
随机推荐
国外媒体宣发怎样做才可以把握重点
网络基础(第一节)
LeetCode 24. 两两交换链表中的节点
APP automation testing practice based on UiAutomator2+PageObject mode
托米的咒语
郭晶晶家的象棋私教,好家伙是个机器人
Excel function formulas - LOOKUP function
这三个 Go 水平自测题,你手写不出来还是先老实上班吧,过来看看
Analysis of the implementation principle of UUID from the perspective of source code
孩子自律性不够?猿辅导:计划表要注意“留白”给孩子更多掌控感
SMIC CIM localization project suspended?Rising software: not shut down, changed to remote development!
Servlet---解决post请求中中文乱码问题
LeetCode 369. Plus One Linked List
你有一份斗破苍穹词库,请查收
dedecms supports one-click import of Word content
解决 idea 单元测试不能使用Scanner
It is rumored that Samsung 3nm has won the second customer, and the current production capacity is in short supply
LeetCode 21. Merge two ordered linked lists
An enhanced dynamic packet buffer management. The core part of the paper
Golang分布式应用之etcd