Jump to content

Excessive Resource Usage


Recommended Posts

Posted

Hi there,

Since migrating to a new server I've been getting a whole bunch of these warnings very often and need to do something about it. Instead of ignoring the warnings in CSF I thought I'd try to optimise my website and see if that helps as I thought the memory usage was very high.

I'm currently using Litespeed (latest version) and using Memcached for caching with MySQL Database for storage method. My VPS is running with 12GB of RAM so not about to run out any time soon but using 452MB of RAM to load a website seems quite huge.

This is my warning email:

Time:         Sat Dec 29 21:20:17 2018 +0000
Account:      #######
Resource:     Virtual Memory Size
Exceeded:     452 > 200 (MB)
Executable:   /opt/cpanel/ea-php71/root/usr/bin/lsphp
Command Line: lsphp:/home/#######/public_html/index.php
PID:          6175 (Parent PID:4165)
Killed:       No

Any pointers would be great, thanks for reading and have a great New Year :)

Posted

Without more information it's hard to identify the cause of the resource usage here, but there are some notable things that can cause this.

I would say the most likely culprit would be large image uploads, particularly if you're using GD on your server. Compressing/resizing large images can eat up a large amount of memory.

Posted

Thanks @Makoto I am running GD so good to know.

Do you know if GD would be sucking up memory constantly or only when it is used when a member uploads an image? I'm asking this as I get the warnings even in the early hours of the morning when there are no members posting.

Posted

It would only be when members are uploading images, so if you're seeing it outside of times where that would be a possible culprit the memory usage might be associated with something else.

There might also be a background task or something eating up memory.

How frequent are these warnings? Every hour, less/more frequent than that?

Posted

I do have a Youtube third party app running on the homepage. Chatbox in the forum. And Google Ads running on most pages.

It doesn't appear to be my Youtube app which was the most recent addition.

 

Posted

It's hard to say without taking a look at it / profiling it personally.

It might be an issue specific to lsphp, as I'm not familiar with litespeed's php module.

Posted

Yeah it would be difficult. I was receiving quite a few messages then realised the techs that migrated my account didn't install Litespeed, I thought perhaps it would fix the issue but it has made it worse so I don't think it is a Litespeed issue but it doesn't play well with Litespeed.

I'll keep looking into this. Thanks for your help @Makoto :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...