Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

High Physical memory usage even at no traffic

Discussion in 'General Discussion' started by Chirag Aggarwal, May 31, 2018.

  1. Chirag Aggarwal

    Joined:
    Jan 9, 2018
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    There's a weird issue I am facing. A site was recently restored from another server to current server. DNS isn't even propagated and there's no traffic at all on site.

    Server is running litespeed

    top -u user
    Code:
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND 
    3331760 user  20   0  343952  55416   4780 S  24.5  0.1   0:00.74 lsphp  
    3260988 user  20   0  454356  92428   6280 S   7.3  0.1   0:41.78 lsphp  
    3314034 user  20   0  298568  14812   9816 S   0.0  0.0   0:00.04 lsphp  
    3328239 user  20   0       0      0      0 Z   0.0  0.0   0:00.01 cpaneld +
    3328667 user  20   0       0      0      0 Z   0.0  0.0   0:00.00 cpaneld +
    Where's on each page load (admin or frontpage) it's consuming around 2.3g out of 2.5G physical memory allocated to it.

    I've also use P3 plugin for WordPress which shows around 80mb usage and also confirmed similar digit using another plugin.

    Any guess what might be causing such usage?
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    727
    Likes Received:
    248
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Have you tried to disable the WP xmlrpc to see if the memory usage drops to normal ?

    You could use a code in your htaccess file something like
    Code:
    # Block WordPress xmlrpc.php requests
    <Files xmlrpc.php>
    order deny,allow
    deny from all
    allow from 123.123.123.123
    </Files>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Chirag Aggarwal

    Joined:
    Jan 9, 2018
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes, I've confirmed this is not the case.

    Also, it seems like memory usage is now not even dropping below 2.3G even with almost no traffic.
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    727
    Likes Received:
    248
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Disable the plugins one by one to see if any of them are responsible.

    You may need to considered that the site might have been compromised on the other server, and you have restored malware onto this server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Chirag Aggarwal

    Joined:
    Jan 9, 2018
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thanks, I am aware of linux system as itself but can you confirm if the same if applicable on individual accounts? I've never seen or experienced this before.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Can you provide more information about the overall memory usage on the system? For instance, what's the output from the "free -m" command when this happens?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Chirag Aggarwal

    Joined:
    Jan 9, 2018
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Here you go

    Code:
    # free -m
                  total        used        free      shared  buff/cache   available
    Mem:          64232        6124        1909        4028       56198       53260
    Swap:             0           0           0
    
    I'm not quite sure what kind of other information so if you can let me know, I can provide it.

     
  9. WebHosting-UK

    WebHosting-UK Member

    Joined:
    Dec 8, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Very useful thread, i've also had several clients with issues with their xmlrpc.php file using a lot of memory.

    The htaccess code will be very handy for future issues, thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Chirag Aggarwal,

    The overall memory usage on the system looks okay. That said, you may still want to determine what's leading to the increased memory usage from that account. The earlier advice from @rpvw is solid:

    Additionally, if disabling the plugins one by one doesn't help to narrow down the cause of the issue, take a look at the Apache domain access logs (/usr/local/apache/domlogs/) for the domain name to see if you can get a better idea of the specific URLs requested when the memory usage increases.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice