Question

Is this normal memory usage?

Posted January 24, 2020 158 views
Server OptimizationWordPressMonitoring

Seems that my 1 wordpress website is using about 380mb of memory. Is this normal? I’m not seeing any error logs.

Im using Serverpilot to monitor the memory:
https://www.screencast.com/t/0TH1UVy5MX2

I’m wondering what I can do to improve this. I thought Id be able to host atleast 10 WP websites with this server, but its looking like ill only be able to do 2 or 3.

I use WP-Rocket & CDNbunny also.


On a side note, for some reason, my droplet>graph isn’t populating any info. I forgot to check it when creating the droplet so I had to follow a script to install it. After I installed it (and waited 20 minutes) it looks like this
https://www.screencast.com/t/Bv7M5Opua
(though that is a separate question I asked support)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hello, @mike212916

Could you please let me know if you’ve checked what exactly is causing the memory usage? Have you installed a lot of plugins that can be causing some high temporary memory usage? From my previous experience 2GB or RAM should be enough for 10 WordPress only if their traffic is low and the sites are not using any “heavy” plugins to operate as well.

As for the second question this is best to discuss with our amazing support team as they will be able to further assist you with personal account queries and questions.

Regards,
Alex

  • It’s a small wordpress site I don’t think its a plugin issue. I recently hardened my server hoping that would fix the issue but it didnt. What I did was create a different user with admin rights and disabled root SSH login. Then I disabled password login (auth key required), and finally, I installed fail2ban.

    However, the journald log is continuing to use more and more memory until I restart my system. I’m a noob so im having a hard time figuring out the problem. I’m not entirely sure which commands I should be using to find the issue. One thing I did was run: journalctl -f
    SS: https://www.screencast.com/t/CN8CuBcjSrg

    which is the most recent journal entries. I do see some red so I guess that’s bad. Any idea whats going on or how I can troubleshoot this further?

    edited by MattIPv4

It’s a small WordPress site I don’t think its a plugin issue. I recently hardened my server hoping that would fix the issue but it didn’t. What I did was create a different user with admin rights and disabled root SSH login. Then I disabled password login (auth key required), and finally, I installed fail2ban.

However, the journald log is continuing to use more and more memory until I restart my system. I’m a noob so I’m having a hard time figuring out the problem. I’m not entirely sure which commands I should be using to find the issue. One thing I did was run: journalctl -f
SS: https://www.screencast.com/t/CN8CuBcjSrg
which is the most recent journal entries. I do see some red so I guess that’s bad. Any idea what’s going on or how I can troubleshoot this further?

  • Hello, @mike212916

    Looking at the logs this is related with a http request timeout which can be caused from a lot of things and can be just temporary as well.

    If you can confirm that the memory usage comes from journald log you can then closely monitor all of the logs and see what’s generating them, for example if the log is full of failed ssh login authentications and etc.

    Let me know how it goes.

    Regards,
    Alex

    • I finally solved it!

      I had another task to create a child theme so I used a plugin called “child theme config” , once I selected my theme and clicked “analyze” I got some PHP errors with some of my plugins. When I disabled those plugins my memory leak got solved! YES! the plugin inadvertently solved my huge headache.

      So I was wondering what is being “analyzed” when I click that button. Is there any way I can run some script or check some log file to see if my site is experiencing any PHP issues. Because I wasn’t getting any errors elsewhere. It wasn’t until I disabled the plugin, then enabled it again did I see the php error message on the top of my wordpress.

      • Hello, @mike212916

        I’m glad to hear that you were able to solve your issue. It’s usually a good practice to start disabling the WordPress plugins one by one in order to check which exact plugin is causing the issue.

        As for the PHP issues, you can double check your PHP errorlog and try to find some references in it which can help you to find the culprit of the issue. You can check your php.ini file to see the exact location of the “`errorlog”`

        Regards,
        Alex

Submit an Answer