当前位置:网站首页>A solution to memory leak in server
A solution to memory leak in server
2022-06-22 02:57:00 【Floating stream】
The story background
A long time ago, I used my cousin's student ID to collect an alicloud low configuration host , I didn't renew any of them until they expired , Fortunately, the renewal was successful before the server data was cleared , But when I log in to the server, I find that the card is not smooth , And found in the server docker Unable to run .
Incident investigation
When running on the server docker I will make the following mistakes :
fatal error: runtime: out of memory It is obvious that the server memory leaks , It burst .
Solution
It is found that the cause is due to a gitlab Process causes , kill gitlab The related process services are used normally, but it is found that the server services cannot be accessed normally in the browser , But the service address ( website ) It's ok ping through , Use netstat -anp | grep :80 Find out nginx I didn't get up .
- Use nginx -s reload An error is as follows
# nginx -s quit
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
- Solution
# Use the following command :
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ( Use nginx -c The parameters of nginx.conf The location of the file )
# Restart again ngin Service started normally , Services in the server can also be accessed normally
nginx -s reload
边栏推荐
- [go language] we should learn the go language in this way ~ a comprehensive learning tutorial on the whole network
- Database interview summary
- Markdown is proficient in Elementary Grammar and is compatible with marktext
- GraphAcademy 课程讲解:《Neo4j 图数据科学简介》
- Implementation of epoll+threadpool high concurrency network IO model
- 从数据库的分类说起,一文了解图数据库
- Database daily question - day 19: top ranked travelers
- 图数据平台解决方案:单节点部署
- Redis6.0 new features (Part 2)
- Using open source software to save an enterprise level map data platform solution
猜你喜欢

Brief analysis of application source code of neo4j intelligent supply chain

web框架概述与程序开发
![[Shangshui Shuo series] day two](/img/05/49e5dd61535d266dc852e910694516.png)
[Shangshui Shuo series] day two

Harmonyos Hongmeng uses ORM bee to access database instances

Implementation principle and application practice of Flink CDC mongodb connector

Installing and using mysql8 under Linux (Reprint)

图书馆管理系统(PHP期末报告)

如何选择合适的 Neo4j 版本(2022版)

Li Kou today's question 1108 IP address invalidation

背光模组的基本结构与应用
随机推荐
[9. submatrix sum]
HarmonyOS鸿蒙使用ORM Bee访问数据库实例
2022年买理财产品买三个月还是半年?
Day21qt mouse event 2021-11-01
Graphacademy course explanation: introduction to neo4j graph data science
Game jam development cycle
libuv异步任务逻辑和uv_queue_work()
Sword finger offer 58 Symmetric binary tree
Sword finger offer 57 Next node of binary tree
Sword finger offer 12 Path in matrix
table标签的不规则布局
Right and left vertical time axis with serial number
sequelize 常用命令使用
Sword finger offer 37 Serialized binary tree
C mapster object mapper learning
BOM 属性、方法、事件应用案例
【6. 高精度乘法】
GetEmptyBlcoksPre Info
[pit encountered in docekr learning]
JS special effects in the construction of animated web pages