Server VPS Overload CPU


Status
Not open for further replies.

nyoman kesuma

Poster 1.0
Hallo Tuan2 Master......

Tuan saya dapat pesan error seperti ini Tuan...

IMPORTANT: Do not ignore this email.
This is cPanel stats runner on dedisvr01.wargos.info!
While processing the log files for user tipster, the cpu has been
maxed out for more than a 6 hour period. The current load/uptime line on the server at the time of
this email is
19:39:23 up 12:02, 1 user, load average: 21.36, 19.58, 18.33




Itu maksudnya apa ya ga? terus solusinya gimana, hampir setiap hari aku dapat pesan itu....


Thanks
 

cpserv

Expert 1.0
coba install apacheboosternya prajith. klo ada nginxadmin/nginxcp/cpnginx dan atau litespeed diuninstall dulu. atau klo mau yang bayar coba varnish cachenya unixy. Kebanyakan baca tulis di HDD kayaqnya.

Cek juga "free -m" memorynya sisa berapa, sama ganti php handlernya dari suphp ke fastcgi (klo bukan suphp yg jalan ya ga usah diganti, karena suphp yg paling banyak makan CPU)
 

cpserv

Expert 1.0
mysqlnya udah dituning? ramnya banyak banget itu tapi ga dipake, coba pake mysqltuner atau tuning-primer buat referensi apa2 aja yg harus diganti. coba cek juga pake command "uptime", udah turun blom load avgnya.
 

nyoman kesuma

Poster 1.0
Seperti ini sekarang hasilnya Tuan...


03:30:26 up 19:53, 2 users, load average: 2.29, 2.28, 2.24

aku belum pernah pake mysqltuner atau tuning-primer, ini baru mau di coba Tuan....hehehe...maklum newbie Tuan di vps...

oh ya Tuan berati load average nya udah turun ya?

Thanks ya Tuan replay postingnya...
 

nyoman kesuma

Poster 1.0
oh ya Tuan aku udah install mysqltuner

parameternya aku set seperti ini...

skip-name-resolve
thread_cache_size=64
table_cache=256
local-infile=0
innodb_file_per_table=1
query_cache_limit=1M
max_connections=300
key_buffer_size=256M
join_buffer_size=2M
query_cache_type=1
query_cache_size=64M
max_tmp_tables=1
tmp_table_size=32M
max_heap_table_size=32M
default-storage-engine=MyISAM
log-slow-queries=/var/lib/mysql/slow.log
open_files_limit=2324

gimana Tuan? ada yang kurang tepat ga?
 

nyoman kesuma

Poster 1.0
ini Tuan recomendasinya....


General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
tmp_table_size (> 32M)
max_heap_table_size (> 32M)
innodb_buffer_pool_size (>= 19M)

Itu mesti aku adjust lagi ya?

sekarangkan udah turun avaragenya...nanti bakalan naik lagi gak Tuan?


Thanks Tuan
 

BennyKusman

Hosting Guru
Verified Provider
ini Tuan recomendasinya....


General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
tmp_table_size (> 32M)
max_heap_table_size (> 32M)
innodb_buffer_pool_size (>= 19M)

Itu mesti aku adjust lagi ya?

sekarangkan udah turun avaragenya...nanti bakalan naik lagi gak Tuan?


Thanks Tuan

sesuai rekomendasi, naikan 3 variable tersebut di /etc/my.cnf nya..
perlahan2 aja..

trus ketik: service mysql restart

biarkan mysql berjalan selama 48 jam sebelum edit variable nya..
 
Status
Not open for further replies.

Top