hi all i get mysql server load very high
this is showing process list
Pid Owner Priority CPU % Memory % Command
26781 (Trace) (Kill) mytitbit 0 18.0 1.0 /usr/bin/php /disk1/mytitbit/public_html/user.php
25381 (Trace) (Kill) mysql 0 17.9 2.5 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/vmclouds.vmclouds.net.pid --skip-external-locking
26764 (Trace) (Kill) mytitbit 0 16.2 0.0
this is showing process list
Pid Owner Priority CPU % Memory % Command
26781 (Trace) (Kill) mytitbit 0 18.0 1.0 /usr/bin/php /disk1/mytitbit/public_html/user.php
25381 (Trace) (Kill) mysql 0 17.9 2.5 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/vmclouds.vmclouds.net.pid --skip-external-locking
26764 (Trace) (Kill) mytitbit 0 16.2 0.0
PHP:
<defunct>
26802 (Trace) (Kill) mytitbit 0 14.0 0.6 /usr/bin/php /disk1/mytitbit/public_html/404error.php
26754 (Trace) (Kill) mytitbit 0 12.1 1.4 /usr/bin/php /disk1/mytitbit/public_html/search.php
what to do now
i am running mysql tunner it will given the followning result
[QUOTE]>> MySQLTuner 1.1.2 - Major Hayden <[email protected]>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.92-community
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 383M (Tables: 5179)
[--] Data in InnoDB tables: 13M (Tables: 804)
[--] Data in MEMORY tables: 0B (Tables: 1)
[!!] Total fragmented tables: 34
-------- Performance Metrics -------------------------------------------------
[--] Up for: 3h 50m 57s (748K q [54.021 qps], 10K conn, TX: 860M, RX: 76M)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 34.0M global + 2.7M per thread (100 max threads)
[OK] Maximum possible memory usage: 302.7M (14% of installed RAM)
[OK] Slow queries: 0% (8/748K)
[OK] Highest usage of available connections: 11% (11/100)
[OK] Key buffer size / total MyISAM indexes: 8.0M/185.0M
[OK] Key buffer hit rate: 99.7% (261M cached / 776K reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 8% (3K temp sorts / 39K sorts)
[!!] Joins performed without indexes: 2978
[!!] Temporary tables created on disk: 39% (14K on disk / 35K total)
[!!] Thread cache is disabled
[!!] Table cache hit rate: 0% (64 open / 42K opened)
[OK] Open file limit used: 10% (107/1K)
[OK] Table locks acquired immediately: 99% (770K immediate / 770K locks)
[!!] InnoDB data size / buffer pool: 13.1M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Set thread_cache_size to 4 as a starting value
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (>= 8M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 32M)
max_heap_table_size (> 16M)
thread_cache_size (start at 4)
table_cache (> 64)
innodb_buffer_pool_size (>= 13M)[/QUOTE]
kindle help