Support » Plugin: LiteSpeed Cache » CPU overloaded running at 100%

  • Resolved fagworio

    (@fagworio)


    I’m having problem with my server thats started to run 100% CPU usage, and the funny thing is that the number of users starts to drop.

    I disable my site’s cron to check if the service starts to normalize. But the server is never balanced.

    How could I fix this, one possible solution is to disable the plugin. Or manually Clear all cache. But removing cache only works temporarily, after 1 hour or so we’re back to the same cpu state at 100%.

    • This topic was modified 4 months, 3 weeks ago by fagworio.
    • This topic was modified 4 months, 3 weeks ago by fagworio.
    • This topic was modified 4 months, 3 weeks ago by fagworio.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    what’s the output from top -c ? like what is the process that using the cpu ?

    Thread Starter fagworio

    (@fagworio)

    Thanks for responding so quickly.

    Now the values are not fixed at 100% ranging between 100% or another 40% value.

    But I had deactivated the plugin and activated it now, so this monitoring is still very recent.

    Thread Starter fagworio

    (@fagworio)

    Quick update,
    Now the values are more fixed with the CPU staying at 100%

    top -c

    htop

    Plugin Support qtwrk

    (@qtwrk)

    now that is weird , how does your server set up ?

    I can see OLS process, but also PHP-FPM ,

    does it like OLS – Apache/Nginx – PHP-FPM ?

    and also please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter fagworio

    (@fagworio)

    My server is runing a Nginx Apache with PHP-FPM.

    I didn’t understand what OLS processor means, but is a Apache/Nginx – PHP-FPM for sure.

    And is runing at 8 GB RAM, 2 vCPUs, 160 GB SSD instance.

    This is the Report number: PSOKRPFD

    Plugin Support qtwrk

    (@qtwrk)

    I was refer to this

    but I kind of got the idea

    each time when you load page , without cache , it will process everything again , and some operations like CSS minify combine , CCSS , lazyload …etc these can be CPU intensive

    with cache , it only runs for once , but since your system doesn’t have cache , it runs every time a page is accessed and consumes more CPU.

    Thread Starter fagworio

    (@fagworio)

    Ok, How could I fix this?

    I was thinking about what your said “but since your system doesn’t have cache”, what this means. I was thinking that the plugin generates the cache, or am I missing something on the configurations of the plugin?

    • This reply was modified 4 months, 3 weeks ago by fagworio.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    LiteSpeed Cache is a server-level cache plugin , which means , it only sends the cache request to webserver, and webserver , while serving the content to user, also save a cache copy , the plugin itself does NOT generate any cache object to disk

    and in such case, it needs LiteSpeed webserver to work with

    and in your case, you are using nginx/apache which won’t work with our cache engine

    the cache won’t work , but other options like page optimization still works

    and since there is no cache , it needs to re-do all the optimization operation again and again and again , it consumes CPU power to do so

    I don’t really have solution , I assume you are using aapanel or aka, BT panel ?

    I remember that panel has OpenLiteSpeed as well , you can install and switch to OLS , then the cache will work

    best regards,

    Thread Starter fagworio

    (@fagworio)

    Thanks.

    Yes I am using aapanel?

    Do you have any tutorial how to switch OLS on aapanel?

    Plugin Support qtwrk

    (@qtwrk)

    I am not particularly familiar with AApanel , but I just googled out this https://forum.aapanel.com/d/1159-how-to-change-your-webserver-to-openlitespeedbeta

    Thread Starter fagworio

    (@fagworio)

    Thanks this helps a lot..
    you are the best.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.