最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

server - Wordpress vps memory allocation

programmeradmin3浏览0评论

I have a VPS sever for a wordpress site, which has an 8g ram and 4 cores cpu, however the site is really slow, I feel like the site is not using all resources, my question is, how much memory should the PHP sever limit be and how exactly can I do it? the server is in centos7.

I have a VPS sever for a wordpress site, which has an 8g ram and 4 cores cpu, however the site is really slow, I feel like the site is not using all resources, my question is, how much memory should the PHP sever limit be and how exactly can I do it? the server is in centos7.

Share Improve this question edited Jun 15, 2019 at 19:09 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jun 15, 2019 at 19:03 Forsaken DevForsaken Dev 1
Add a comment  | 

1 Answer 1

Reset to default 0

First, I have to tell you that this all depends on the server size and the amount of resources your WordPress site uses. That being said, I set my php memory limit to between 256 and 512 MB.

WordPress sites can be slow for a large variety of reasons. Performance often improves by tweaking database settings (and checking for slow queries), configuring page and object caching, using a separate object cache like Redis or Memcache, adding Varnish in front of your site or using external edge cache like Cloudflare or Cloudfront, etc.

发布评论

评论列表(0)

  1. 暂无评论