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.

Newbie WHM questions

Discussion in 'General Discussion' started by SpaceCowboy, Jan 18, 2014.

  1. SpaceCowboy

    SpaceCowboy Active Member

    Joined:
    Jan 18, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello guys. I'm terribly sad because i bought this VPS for my website and it is crashing bad (runs out of memory)
    The VPS has 2GB of ram and it's just 1 website (wordpress) with 10,000 daily visitors.
    I really need some basic help to find the root of this memory issue and fix it.

    Beware i just started with WHM so my knowledge is zero.

    1. I see all tutorials talk about directories like:
    /usr/local/
    /etc/ssh/

    Now the question is where are these directories? i can't find them anywhere.
    I've tried with FTP and the website Cpanel file manager.
    They aren't anywhere. So how can i see them?

    2. I recently learned i can login to the server with the Putty program.
    I was able to successfully do that with my personal cpanel account.
    But i need to be able to log in as root to restart the server every time it crashes.
    Now i've seen instructions to enable root on SSH but i can't not follow them because of question number 1.
    If i had root access with putty at least i'll be able to restart the server by myself every time it crash (my hosting already told me to do this so it's allowed by them)

    3. The crashing problem:
    Apparently the server doesn't ever free memory, it reaches the 2Gb after running for awhile and then crashes when it runs out. I have to be able to find the source of this problem and fix it.
    But i don't know where to start, again without question 1 most of online instructions are impossible to follow.


    I will copy an error email i got...i got like 20 of these by now:

    The chkservd sub-process with pid 26691 ran for 602 seconds. This sub-process was terminated when it exceeded the time allowed between checks, which is 300 seconds. To determine why, you can check /var/log/chkservd.log and /usr/local/cpanel/logs/tailwatchd_log.

    You likely received this notification as a symptom of a larger problem. If your server is experiencing a high load, we recommend investigating the cause. If you continue to receive this notification, it is likely that your system is unable to handle demand or a misconfiguration is delaying restarts.

    If you are sure that no misconfigurations exist, you should consider gradually increasing the following options in WHM's "Tweak Settings" feature: "The number of times ChkServd will allow a previous check to complete before terminating the check" and/or "The number of seconds between ChkServd service checks".

    Server: *******
    Primary IP: *****
    Service: chkservd
    Notification Type: hang
    Memory Information:
    Used: 1929MB
    Available: 77MB
    Installed: 2006MB
    Load Information: 156.57 165.07 167.43
    Uptime: 4 days, 7 hours, 45 seconds
    IOStat Information:
    avg-cpu: %user %nice %system %iowait %steal %idle
    14.90 0.03 3.34 0.69 0.00 81.05
    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
    vda 90.92 2170.42 642.61 810655268 240017208
    dm-0 36.47 468.56 214.03 175007874 79939944
    dm-1 264.58 1701.34 415.29 635451632 155111520
    dm-2 1.72 0.48 13.30 178082 4969056
    ChkServd Version: 15.2


    Well that's about it.

    Please be kind to me as i'm just starting with this as you can imagine by my questions.

    Thanks in advance to whoever dares to help me.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,668
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will need to obtain root access to this VPS in order to troubleshoot the issue further. Try accessing SSH as "root" with the same password you use to access Web Host Manager with the "root" username. Your VPS hosting provider should have provided you with the root password after the VPS was created.

    Thank you.
     
  3. SpaceCowboy

    SpaceCowboy Active Member

    Joined:
    Jan 18, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi thanks for replying!
    I have root access now, i understand how to reach this directories with SSH.

    I think my main problem relies on the fact that i haven't touched my mysql, apache and php files due to lack of knowledge.
    I thought maybe you guys could assist me with that? I tried following a config that worked for somebody else here on the forums, but it made my site extremely slow and loading things partially! (Though CPU load went down to almost nothing!)

    This is what i have on my.cnf
    Code:
    [mysqld]
    set-variable = max_connections=500
    log-slow-queries
    safe-show-database
    
    I realize i'm not using cache...but i'm scared to throw random numbers because i've seen what happened last time and i prefer an expert to suggest me proper values.
    This is a 2GB RAM VPS with 2 Core CPU at 2.0Ghz

    I have to reset the server nearly daily because it runs out of memory and ends up crashing....

    Maybe this need to be moved to optimize?
    I'm sorry i'm new here :(
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,668
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    In addition to troubleshooting your server load, I recommend making a thread on the following forum if you are looking for help optimizing MySQL:

    cPanel Forums - Optimization

    Thank you.
     
Loading...

Share This Page