Results 1 to 6 of 6
  1. #1

    High load - bad conf?

    Hello,

    Server:
    Celeron 2,4 GHz (256k cache)
    1GB RAM, RedHat 9


    my.cnf:

    PHP Code:
    # Example MySQL config file for large systems.
    #
    # This is for a large system with memory = 512M where the system runs mainly
    # MySQL.
    #
    # You can copy this file to
    # /etc/my.cnf to set global options,
    # mysql-data-dir/my.cnf to set server-specific options (in this
    # installation this directory is /var/lib/mysql) or
    # ~/.my.cnf to set user-specific options.
    #
    # In this file, you can use all long options that a program supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.

    # The following options will be passed to all MySQL clients
    [client]
    #password    = your_password
    port        3306
    socket        
    = /var/lib/mysql/mysql.sock

    # Here follows entries for some specific programs

    # The MySQL server
    [mysqld]
    port        3306
    socket        
    = /var/lib/mysql/mysql.sock
    skip
    -locking
    key_buffer 
    256M
    max_allowed_packet 
    1M
    table_cache 
    256
    sort_buffer_size 
    1M
    read_buffer_size 
    1M
    myisam_sort_buffer_size 
    64M
    thread_cache 
    8
    query_cache_size
    16M
    set
    -variable=max_connections=250
    wait_timeout 
    50

    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency 2
    log
    -slow-queries = /var/lib/mysql/slow.query

    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!

    #skip-networking

    # Replication Master Server (default)
    # binary logging is required for replication
    #log-bin

    # required unique id between 1 and 2^32 - 1
    # defaults to 1 if master-host is not set
    # but will not function as a master if omitted
    server-id    1

    # Replication Slave (comment out master section to use this)
    #
    # To configure this host as a replication slave, you can choose between
    # two methods :
    #
    # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
    #    the syntax is:
    #
    #    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
    #    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
    #
    #    where you replace <host>, <user>, <password> by quoted strings and
    #    <port> by the master's port number (3306 by default).
    #
    #    Example:
    #
    #    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
    #    MASTER_USER='joe', MASTER_PASSWORD='secret';
    #
    # OR
    #
    # 2) Set the variables below. However, in case you choose this method, then
    #    start replication for the first time (even unsuccessfully, for example
    #    if you mistyped the password in master-password and the slave fails to
    #    connect), the slave will create a master.info file, and any later
    #    change in this file to the variables' values below will be ignored and
    #    overridden by the content of the master.info file, unless you shutdown
    #    the slave server, delete master.info and restart the slaver server.
    #    For that reason, you may want to leave the lines below untouched
    #    (commented) and instead use CHANGE MASTER TO (see above)
    #
    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id       = 2
    #
    # The replication master for this slave - required
    #master-host     =   <hostname>
    #
    # The username the slave will use for authentication when connecting
    # to the master - required
    #master-user     =   <username>
    #
    # The password the slave will authenticate with when connecting to
    # the master - required
    #master-password =   <password>
    #
    # The port the master is listening on.
    # optional - defaults to 3306
    #master-port     =  <port>
    #
    # binary logging - not required for slaves, but recommended
    #log-bin

    # Point the following paths to different dedicated disks
    #tmpdir        = /tmp/        
    #log-update     = /path-to-dedicated-directory/hostname

    # Uncomment the following if you are using BDB tables
    #bdb_cache_size = 64M
    #bdb_max_lock = 100000

    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql/
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql/
    #innodb_log_arch_dir = /var/lib/mysql/
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 256M
    #innodb_additional_mem_pool_size = 20M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 64M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50

    [mysqldump]
    quick
    max_allowed_packet 
    16M

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [isamchk]
    key_buffer 128M
    sort_buffer_size 
    128M
    read_buffer 
    2M
    write_buffer 
    2M

    [myisamchk]
    key_buffer 128M
    sort_buffer_size 
    128M
    read_buffer 
    2M
    write_buffer 
    2M

    [mysqlhotcopy]
    interactive-timeout

    [mysqld]
    datadir=/var/lib/mysql
    socket
    =/var/lib/mysql/mysql.sock
    skip
    -locking
    skip
    -innodb
    query_cache_limit
    =1M
    query_cache_size
    =32M
    query_cache_type
    =1
    max_connections
    =900
    interactive_timeout
    =100
    wait_timeout
    =100
    connect_timeout
    =10
    thread_cache_size
    =128
    #key_buffer=16M
    key_buffer=200M
    join_buffer
    =1M
    max_allowed_packet
    =16M
    table_cache
    =1536
    sort_buffer_size
    =1M
    read_buffer_size
    =1M
    read_rnd_buffer_size
    =1M
    max_connect_errors
    =10
    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency=4
    myisam_sort_buffer_size
    =64M
    #log-bin
    server-id=
    httpd.conf:

    PHP Code:
    Timeout 100
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 10
    MaxSpareServers 20
    StartServers 50
    MaxClients 300
    MaxRequestsPerChild 0 
    where is my fault?

    please help me, thank you
    Last edited by Stevie7; 06-28-2005 at 07:06 AM.

  2. What is the load spiking to? What is the load under 'normal' conditions. Can you get a snapshot of ``top'' and print it out?


    Regards,

    Phil.

  3. #3
    on TOP there isnt big processes,

    total there is 1-2%, is that attack?
    load is from 1,0 - 200,00 but processes are still the same.

    in CPU/MYSQL/MEMORY I saw that net stat used 75% but its not this

    after reboot load is still 20-50

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    1785 mailnull 16 0 1520 1520 1176 S 99.9 0.1 0:00 0 exim
    1815 root 15 0 6560 6560 3112 S 35.0 0.6 0:26 0 httpd
    2154 mailnull 15 0 29508 28M 2140 S 3.5 3.0 0:00 0 spamd
    2126 root 16 0 29860 29M 2136 S 2.3 3.0 0:01 0 spamd
    2266 root 15 0 1224 1224 868 R 0.9 0.1 0:00 0 top
    2293 root 15 0 1496 1496 1012 R 0.7 0.1 0:00 0 mailmanctl
    2216 root 15 0 2704 2704 1500 R 0.3 0.2 0:00 0 php
    1779 root 15 0 8004 8004 716 S 0.1 0.8 0:00 0 clamd
    1968 mysql 15 0 5752 5752 1336 S 0.1 0.5 0:00 0 mysqld
    1 root 15 0 112 84 56 S 0.0 0.0 0:05 0 init
    2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
    3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU
    8 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    4 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
    5 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/DMA
    6 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/Normal


    after a few seconds...

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    1815 root 15 0 6544 6544 3096 S 16.1 0.6 0:46 0 httpd
    2341 root 25 0 1100 1100 832 S 7.2 0.1 0:02 0 prm
    1968 mysql 15 0 9276 9264 1380 S 3.9 0.9 0:01 0 mysqld
    12031 root 25 0 32 32 16 R 2.1 0.0 0:00 0 grep
    6 root 15 0 0 0 0 SW 1.5 0.0 0:00 0 kscand/Normal
    1785 mailnull 15 0 1500 1500 1156 S 1.1 0.1 0:00 0 exim
    10062 root 16 0 1352 1352 868 R 1.1 0.1 0:00 0 top
    10806 root 20 0 2472 2472 1304 S 0.9 0.2 0:00 0 restartsrv_sp
    14 root 15 0 0 0 0 DW 0.1 0.0 0:02 0 kjournald
    2157 root 35 19 5744 5744 1736 D N 0.1 0.5 0:00 0 cpanellogd
    2293 root 15 0 4540 4540 1892 D 0.1 0.4 0:00 0 mailmanctl
    1 root 17 0 112 84 56 S 0.0 0.0 0:05 0 init
    2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
    3 root 34 19 0 0 0 RWN 0.0 0.0 0:00 0 ksoftirqd_CPU
    8 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    4 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd



    EDIT:

    after reboot load is 1,25 but how long

    p.s. these TOP was after reboot, then all isnt true

    EDIT 2:

    load is 2,5

    but

    1815 root 0 52.7% 0.6 /usr/local/apache/bin/httpd -DSSL

    HELP
    Last edited by Stevie7; 06-28-2005 at 09:29 AM.

  4. #4
    All is fine now

    Support from DC installed newsest kernel version and server is working great!

    But what was problem? Insecure kernel version...
    Attack or system isses?

    thanks
    Stevie

  5. #5
    Join Date
    Oct 2003
    Location
    Chattanooga
    Posts
    8,985
    Stevie,

    That would be something your DC could most likely provide you the answer for.

    There isn't all that much that can be told based on your configs - and espescially not whether you were hacked, attacked or just having regular issues.
    David
    Web hosting by Fused For businesses with more important things to do than worry about their hosting.

  6. #6
    high load is sometimes back but I see that mailnull/exim has 99,9% usage but thats private server (but with 36 accounts )so I cant have own admin and I need ask here


    thank you everyone for the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •