The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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
     
    #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:
    38
    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.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
Loading...

Share This Page