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!

Terminate/suspend a account = resource hog?

Discussion in 'Workarounds and Optimization' started by ruiz, Jan 25, 2010.

  1. ruiz

    ruiz Active Member

    Joined:
    Feb 13, 2008
    Messages:
    41
    Likes Received:
    2
    Trophy Points:
    58
    Hi!

    Every time i terminate or suspend a account during peak hours, my server seems to take it really hard, with system load skyrocketing and even some services failing for a couple minutes. Why does it happen? Is it supposed to be like that? Thanks!
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The symptoms described do not sound normal, but given that it is being performed during "peak hours" it is difficult to determine with certainty what is to be expected without knowing more verbose detail (that is determined by the system administrator monitoring the server regularly).

    When the high load occurs while suspending or terminating an account what is seen running from the command "top" via root SSH access? I would monitor the system for several minutes before performing the action and then proceed to suspend or terminate an account and continue monitoring closely to gather more information about what processes are using the most resources and to check if there are high I/O wait times.

    What is the OS release, full cPanel version number, and environment type?
    Code:
    # grep -H '' /etc/*release /usr/local/cpanel/version /var/cpanel/envtype
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelDon, Jan 25, 2010
    Last edited: Jan 25, 2010
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    While teminating or suspending any account monitor the server load using top -c and get the process which uses more CPU usage. If found any suspicious process kill it using kill command.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,565
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Terminating an account removes the home directory, the zone files, databases and anything else owned by the account. It also restarts Apache ( should be a graceful restart ) and performs a bind reconfig ( like a graceful restart ). All of this will generate some I/O load on the server.

    If performed during peak hours of the server than the load issue is exacerbated by the other tasks the server is performing.

    If the terminated account had a lot of data ( e.g. large home directory, large databases ) then the window of heavy I/O will be longer.
     
    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