当前位置:网站首页>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!!!
边栏推荐
- 解决 idea 单元测试不能使用Scanner
- LeetCode 109. Sorted Linked List Conversion Binary Search Tree
- camshift实现目标跟踪
- 如何培养ui设计师的设计思维?
- 7. Instant-ngp
- search--01
- 日记16
- IDC第一的背后,阿里云在打造怎样的一朵“视频云”?
- Excel function formulas - HLOOKUP function
- mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull
猜你喜欢
国外媒体宣发怎样做才可以把握重点
一文详解 implementation api embed
16、Pytorch Lightning入门
Can CLIP also do segmentation tasks?The University of Göttingen proposed a model CLIPSeg that uses text and image prompts to perform three segmentation tasks at the same time, draining CLIP capabiliti
Behind IDC's No. 1 position, what kind of "video cloud" is Alibaba Cloud building?
一文读懂NFT数字藏品为何风靡全球?
Crypto Gaming: The Future of Gaming
Data Analysis of Time Series (5): Simple Prediction Method
可视化服务编排在金融APP中的实践
CLIP还能做分割任务?哥廷根大学提出一个使用文本和图像prompt,能同时作三个分割任务的模型CLIPSeg,榨干CLIP能力...
随机推荐
bat脚本——提取多个文件夹到指定路径
正则表达式常用示例
蚂蚁金服+拼多多+抖音+天猫(技术三面)面经合集助你拿大厂offer
制品库是什么?
如何培养ui设计师的设计思维?
【mysql】explain介绍[通俗易懂]
Does your child lack self-discipline?Ape Counseling: Pay attention to "blank" in the schedule to give children more control
搜索--01
A detailed explanation of implementation api embed
苹果逆势扩大iPhone 14系列备货,总量或达9500万部
What are some useful performance testing tools recommended? Performance testing report charging standards
camshift实现目标跟踪
LeetCode 83. Remove Duplicate Elements in Sorted List
Crypto Gaming: The Future of Gaming
LeetCode50天刷题计划(Day 17—— 下一个序列(14.50-16.30)
dedecms supports one-click import of Word content
托米的咒语
Color map and depth map to point cloud
22年BATJ大厂必问面试题(复盘):JVM+微服务+多线程+锁+高并发
Chapter 5 virtual memory