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.

Server Load 47.04 (1 cpu)

Discussion in 'General Discussion' started by fvb, Feb 12, 2004.

  1. fvb

    fvb Member

    Joined:
    Mar 7, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Server Information
    Processor #1 Vendor: GenuineIntel
    Processor #1 Name: Intel(R) Pentium(R) 4 CPU 2.40GHz
    Processor #1 speed: 2423.926 MHz
    Processor #1 cache size: 512 KB

    ---------------
    3 sites only

    ---------------------------------------------
    top

    4:31pm up 35 days, 13:02, 1 user, load average: 51.99, 49.10, 44.18
    71 processes: 357 sleeping, 11 running, 0 zombie, 3 stopped
    PU states: 84.0% user, 15.9% system, 0.0% nice, 0.0% idle
    em: 1024340K av, 1015120K used, 9220K free, 0K shrd, 6816K buff
    wap: 1052216K av, 156112K used, 896104K free 167204K cached
    ----------------------------------------------
    WHM 8.8.0 cPanel 8.8.0-R73
    RedHat 7.3 - WHM X v2.1.2
    -----------------------------
    edit /etc/my.cnf

    [client]
    port = 3306
    socket = /var/lib/mysql/m
    [mysqld]
    port = 3306
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mys
    skip-locking
    max_connections = 500
    key_buffer = 16M
    myisam_sort_buffer_size =
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 64
    wait_timeout = 7200
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 32M
    query_cache_type = 1
    skip-innodb

    [mysql.server]
    user=mysql
    basedir=/var/lib

    [mysqld_safe]
    open_files_limit = 8192
    err-log=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [myisamchk]
    key_buffer = 64M
    sort_buffer = 64M
    read_buffer = 16M
    write_buffer = 16M
    --------------------------------------------
     
  2. Sopos

    Sopos Well-Known Member

    Joined:
    Nov 16, 2001
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    I have had the same yesterday.
    Check /tmp and /var/tmp

    I have found on one of my server a directory called

    / / /\

    when I have entered in it I have found some script to stress apache. Removed all the files, removed the directory and everything go well.

    Now, I have installed tripware :)
     
  3. vahan

    vahan Active Member

    Joined:
    Dec 10, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    anyway why your /tmp and /var/tmp isn't nosuid,noexec?
     
  4. fvb

    fvb Member

    Joined:
    Mar 7, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2)
     
  5. fvb

    fvb Member

    Joined:
    Mar 7, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    help me plz
    i delete /var/tmp

    now
    problem with the database
     
  6. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    You can't just delete /var/tmp. Your best bet now is to run /scripts/securetmp where it will rebuild tmp in a noexec mode. It should also put your mysql.sock links back. If it does not you need to link /tmp/mysql.sock to /var/tmp/mysql.sock.
     
  7. Sopos

    Sopos Well-Known Member

    Joined:
    Nov 16, 2001
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    The /tmp is nosuid and noexec but /var/tmp isn't.
    Is there a way to change /var/tmp in nosuid and noexec ?
     
Loading...

Share This Page