Jump to content

数据库问题


Recommended Posts

3小时前,POWER说:

这几天发现数据库 CPU使用率经常 80%-90%  怎么优化呢?


宝塔面板做到以下这些,你还觉得服务器被在线人数太多而拖慢速度,你该升级服务器硬件配置了

 

调整swap虚拟内存为4GB

 

 

性能调整 -> 优化方案 -> 选择 x GB

依据自己的云主机内存大小,做出相应的内存选择

 


Elasticsearch中文搜索

会看到这两个,默认内存 1GB
-Xms1g
-Xmx1g
修改为 (调低)
-Xms256m
-Xmx256m

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...