İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

MySQL CPU Kullanımı my.cnf optimizasyonu

Komikdunya.com

0
İyinet Üyesi
Katılım
27 Haziran 2005
Mesajlar
0
Reaction score
0
Amd 2400+ 1024 ram var sizce ayarı nasıl olmalı

[MySQLD]
port=3306
basedir=C:\\Program Files\\SWsoft\\Plesk\\Databases\\MySQL
datadir=C:\\Program Files\\SWsoft\\Plesk\\Databases\\MySQL\\Data
default-character-set=latin1
default-storage-engine=INNODB
query_cache_size=32M
query_cache_limit=1M
query_cache_type=1
table_cache=1024
tmp_table_size=7M
thread_cache=32
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=2M
key_buffer_size=2M
read_buffer_size=1M
read_rnd_buffer_size=256K
sort_buffer_size=1M
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=16M
innodb_log_file_size=10M
innodb_thread_concurrency=8
max_connections=300
key_buffer=256M
max_allowed_packet=1M
sort_buffer=256K
net_buffer_length=4K
wait_timeout=10
connect_timeout=10
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
Amd 2400+ 1024 ram var sizce ayarı nasıl olmalı

[MySQLD]
port=3306
basedir=C:\\Program Files\\SWsoft\\Plesk\\Databases\\MySQL
datadir=C:\\Program Files\\SWsoft\\Plesk\\Databases\\MySQL\\Data
default-character-set=latin1
default-storage-engine=INNODB
query_cache_size=32M
query_cache_limit=1M
query_cache_type=1
table_cache=1024
tmp_table_size=7M
thread_cache=32
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=2M
key_buffer_size=2M
read_buffer_size=1M
read_rnd_buffer_size=256K
sort_buffer_size=1M
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=16M
innodb_log_file_size=10M
innodb_thread_concurrency=8
max_connections=300
key_buffer=256M
max_allowed_packet=1M
sort_buffer=256K
net_buffer_length=4K
wait_timeout=10
connect_timeout=10

Anladigim kadari ile myisam degilde innodb kullaniyorsun, once bu dogru mu phpmyadminden tablo yapilarina bakarak bir soyle.
Eger sadece innodb kullaniyorsan asagidaki parametrelerde degisiklik yap

innodb_buffer_pool_size=256M
key_buffer=16M
 

Genckolik

0
İyinet Üyesi
Katılım
8 Eylül 2005
Mesajlar
153
Reaction score
0
SistemBilgisi : Amd 2800 1536 Ram

Top Çıktısı:
top - 23:23:29 up 1 day, 5:57, 1 user, load average: 7.75, 9.88, 13.66
Tasks: 183 total, 9 running, 174 sleeping, 0 stopped, 0 zombie
Cpu(s): 89.5% us, 10.2% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 1554768k total, 1400188k used, 154580k free, 88852k buffers
Swap: 2088440k total, 122812k used, 1965628k free, 559792k cached

Mevcut Kullandığım my.cnf:
[mysqld]
set-variable = max_connections=400
safe-show-database
query_cache_size=64M
connect_timeout=5
thread_cache=100
thread_concurrency=120
thread_stack=512000
key_buffer_size=512K
sort_buffer_size=100K
read_buffer_size=100K
max_allowed_packet=64M

Bunlar İlgili Tavsiye Edebileceğiniz ekleri veya düzenlemeleri yazarsanız sevinirim.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
SistemBilgisi : Amd 2800 1536 Ram

Top Çıktısı:
top - 23:23:29 up 1 day, 5:57, 1 user, load average: 7.75, 9.88, 13.66
Tasks: 183 total, 9 running, 174 sleeping, 0 stopped, 0 zombie
Cpu(s): 89.5% us, 10.2% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 1554768k total, 1400188k used, 154580k free, 88852k buffers
Swap: 2088440k total, 122812k used, 1965628k free, 559792k cached

Mevcut Kullandığım my.cnf:
[mysqld]
set-variable = max_connections=400
safe-show-database
query_cache_size=64M
connect_timeout=5
thread_cache=100
thread_concurrency=120
thread_stack=512000
key_buffer_size=512K
sort_buffer_size=100K
read_buffer_size=100K
max_allowed_packet=64M

Bunlar İlgili Tavsiye Edebileceğiniz ekleri veya düzenlemeleri yazarsanız sevinirim.

mysql versiyonunu yazarmisin.
 

qdin

0
İyinet Üyesi
Katılım
10 Şubat 2006
Mesajlar
1,677
Reaction score
1
Konum
Ankara
Merhaba,
Teşekkürler iyinet Key Buffer 32 den = 384M e gecirilmiştir bir deneyelim.
 

{Üstat}

0
İyinet Üyesi
Katılım
24 Ocak 2007
Mesajlar
122
Reaction score
0
benim makinem p4 3.2 2 gb ram i var linux centos plesk 8.1 kurulu ağırlık hep php siteler mysql versiyonu 4.1.20

Kod:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

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

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


buda top

Kod:
 5:55pm  up  4:12,  2 users,  load average: 4.55, 3.07, 2.48
130 processes: 126 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 43.8% user, 11.8% system,  0.0% nice, 44.3% idle
Mem:  2066544K av, 1424700K used,  641844K free,       0K shrd,  103332K buff
Swap: 1510100K av,       0K used, 1510100K free                  801728K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
 4770 mysql     15   0  143M  39M  4648 S       0 32.4  1.9  57:24 mysqld
15948 apache    16   0 65484  38M  4516 S       0 21.9  1.8   0:02 httpd
15973 apache    15   0 67188  40M  4940 S       0 12.8  1.9   0:05 httpd
17097 apache    16   0 66680  39M  4188 S       0 10.0  1.9   0:01 httpd
17209 apache    17   0 65108  37M  4416 S       0  9.5  1.8   0:01 httpd
16468 apache    16   0 60200  34M  4316 R       0  2.3  1.7   0:00 httpd
15941 apache    16   0 65720  38M  4520 R       0  0.4  1.9   0:02 httpd
15972 apache    15   0 65852  38M  4520 S       0  0.4  1.9   0:02 httpd
17288 root      16   0  2612 1692  1476 R       0  0.4  0.0   0:00 top
    1 root      16   0  3544  560   480 S       0  0.0  0.0   0:00 init
    2 root      0K   0     0    0     0 SW      0  0.0  0.0   0:00 migration/0
    3 root      34  19     0    0     0 SWN     0  0.0  0.0   0:00 ksoftirqd/0
    4 root      0K   0     0    0     0 SW      0  0.0  0.0   0:00 migration/1
    5 root      34  19     0    0     0 SWN     0  0.0  0.0   0:00 ksoftirqd/1
    6 root       5 -10     0    0     0 SW<     0  0.0  0.0   0:00 events/0
normalde cpu %80-90 larda geziyor
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
SistemBilgisi : Amd 2800 1536 Ram

Top Çıktısı:
top - 23:23:29 up 1 day, 5:57, 1 user, load average: 7.75, 9.88, 13.66
Tasks: 183 total, 9 running, 174 sleeping, 0 stopped, 0 zombie
Cpu(s): 89.5% us, 10.2% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 1554768k total, 1400188k used, 154580k free, 88852k buffers
Swap: 2088440k total, 122812k used, 1965628k free, 559792k cached

Mevcut Kullandığım my.cnf:
[mysqld]
set-variable = max_connections=400
safe-show-database
query_cache_size=64M
connect_timeout=5
thread_cache=100
thread_concurrency=120
thread_stack=512000
key_buffer_size=512K
sort_buffer_size=100K
read_buffer_size=100K
max_allowed_packet=64M

Bunlar İlgili Tavsiye Edebileceğiniz ekleri veya düzenlemeleri yazarsanız sevinirim.

Genckolik bir dene bakalim:

[mysqld]
max_connections=400
safe-show-database
query_cache_size=64M
query_cache_limit=1M
query_cache_type=1
table_cache=1024
connect_timeout=5
key_buffer=256M
max_allowed_packet=64M
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
benim makinem p4 3.2 2 gb ram i var linux centos plesk 8.1 kurulu ağırlık hep php siteler mysql versiyonu 4.1.20

Kod:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

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

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


buda top

Kod:
 5:55pm  up  4:12,  2 users,  load average: 4.55, 3.07, 2.48
130 processes: 126 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 43.8% user, 11.8% system,  0.0% nice, 44.3% idle
Mem:  2066544K av, 1424700K used,  641844K free,       0K shrd,  103332K buff
Swap: 1510100K av,       0K used, 1510100K free                  801728K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
 4770 mysql     15   0  143M  39M  4648 S       0 32.4  1.9  57:24 mysqld
15948 apache    16   0 65484  38M  4516 S       0 21.9  1.8   0:02 httpd
15973 apache    15   0 67188  40M  4940 S       0 12.8  1.9   0:05 httpd
17097 apache    16   0 66680  39M  4188 S       0 10.0  1.9   0:01 httpd
17209 apache    17   0 65108  37M  4416 S       0  9.5  1.8   0:01 httpd
16468 apache    16   0 60200  34M  4316 R       0  2.3  1.7   0:00 httpd
15941 apache    16   0 65720  38M  4520 R       0  0.4  1.9   0:02 httpd
15972 apache    15   0 65852  38M  4520 S       0  0.4  1.9   0:02 httpd
17288 root      16   0  2612 1692  1476 R       0  0.4  0.0   0:00 top
    1 root      16   0  3544  560   480 S       0  0.0  0.0   0:00 init
    2 root      0K   0     0    0     0 SW      0  0.0  0.0   0:00 migration/0
    3 root      34  19     0    0     0 SWN     0  0.0  0.0   0:00 ksoftirqd/0
    4 root      0K   0     0    0     0 SW      0  0.0  0.0   0:00 migration/1
    5 root      34  19     0    0     0 SWN     0  0.0  0.0   0:00 ksoftirqd/1
    6 root       5 -10     0    0     0 SW<     0  0.0  0.0   0:00 events/0
normalde cpu %80-90 larda geziyor

sadece [mysqld] bolumunu asagidaki sekilde duzenle, innodb kullaniyorsan skip-innodb satirini kaldir.

[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
skip-locking
skip-innodb
key_buffer = 256M
table_cache = 1024
max_connections = 500
query-cache-type = 1
query-cache-size = 64M
 

kesmekes

0
İyinet Üyesi
Katılım
2 Ekim 2005
Mesajlar
183
Reaction score
0
Konum
Bursa/Ankara
merhaba, benimde mysql ile başım dertte...

top - 12:27:04 up 5 days, 21:37, 1 user, load average: 0.53, 0.58, 0.62
Tasks: 267 total, 3 running, 259 sleeping, 0 stopped, 5 zombie
Cpu(s): 8.9% us, 1.2% sy, 0.0% ni, 89.8% id, 0.0% wa, 0.1% hi, 0.0% si
Mem: 2074344k total, 2055580k used, 18764k free, 185012k buffers
Swap: 2096440k total, 168k used, 2096272k free, 1009168k cached

pid --- usr PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4867 mysql 16 0 155m 42m 3468 S 104 2.1 5224:25 mysqld
15809 nobody 15 0 99216 14m 3636 S 2 0.7 4:23.87 httpd
3388 nobody 16 0 98144 12m 3028 S 2 0.6 1:03.35 httpd
5386 nobody 15 0 98212 12m 2616 S 2 0.6 0:56.55 httpd
21913 nobody 15 0 98120 12m 2596 S 2 0.6 0:11.03 httpd
3431 nobody 15 0 98196 12m 2608 S 1 0.6 1:02.32 httpd
23814 nobody 15 0 98144 12m 2596 S 1 0.6 0:03.66 httpd
23817 nobody 15 0 98120 12m 2588 S 1 0.6 0:02.35 httpd
4796 nobody 15 0 98204 12m 3028 S 1 0.6 0:55.55 httpd
4813 nobody 15 0 98180 12m 3024 S 1 0.6 0:59.03 httpd
5859 nobody 15 0 98144 12m 2604 S 1 0.6 0:52.85 httpd
7585 nobody 15 0 98144 12m 3052 S 1 0.6 0:57.70 httpd
21317 nobody 15 0 98228 12m 2600 S 1 0.6 0:11.91 httpd
22577 nobody 15 0 98156 12m 2600 S 1 0.6 0:10.82 httpd
22690 nobody 15 0 98144 12m 2600 S 1 0.6 0:08.74 httpd
23777 nobody 16 0 98216 12m 2588 S 1 0.6 0:04.58 httpd
23804 nobody 15 0 98144 12m 2588 S 1 0.6 0:03.91 httpd

-----end-----



-----my.cnf-----

[mysqld]
set-variable = max_connections=500
safe-show-database

-----end-----

mysql versiyonu 4.1.21


mysql cpu kullanımı zaman zaman %100ün üzerine çıkıyor, bunu sebebi nedir acaba? my.cnf ile mi alakalıdır?

genel olarak sunucu özellikleri de şöyle: Dual Processor Dual Core Xeon 2.0GHz ve 2GB ram
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
merhaba, benimde mysql ile başım dertte...

top - 12:27:04 up 5 days, 21:37, 1 user, load average: 0.53, 0.58, 0.62
Tasks: 267 total, 3 running, 259 sleeping, 0 stopped, 5 zombie
Cpu(s): 8.9% us, 1.2% sy, 0.0% ni, 89.8% id, 0.0% wa, 0.1% hi, 0.0% si
Mem: 2074344k total, 2055580k used, 18764k free, 185012k buffers
Swap: 2096440k total, 168k used, 2096272k free, 1009168k cached

pid --- usr PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4867 mysql 16 0 155m 42m 3468 S 104 2.1 5224:25 mysqld
15809 nobody 15 0 99216 14m 3636 S 2 0.7 4:23.87 httpd
3388 nobody 16 0 98144 12m 3028 S 2 0.6 1:03.35 httpd
5386 nobody 15 0 98212 12m 2616 S 2 0.6 0:56.55 httpd
21913 nobody 15 0 98120 12m 2596 S 2 0.6 0:11.03 httpd
3431 nobody 15 0 98196 12m 2608 S 1 0.6 1:02.32 httpd
23814 nobody 15 0 98144 12m 2596 S 1 0.6 0:03.66 httpd
23817 nobody 15 0 98120 12m 2588 S 1 0.6 0:02.35 httpd
4796 nobody 15 0 98204 12m 3028 S 1 0.6 0:55.55 httpd
4813 nobody 15 0 98180 12m 3024 S 1 0.6 0:59.03 httpd
5859 nobody 15 0 98144 12m 2604 S 1 0.6 0:52.85 httpd
7585 nobody 15 0 98144 12m 3052 S 1 0.6 0:57.70 httpd
21317 nobody 15 0 98228 12m 2600 S 1 0.6 0:11.91 httpd
22577 nobody 15 0 98156 12m 2600 S 1 0.6 0:10.82 httpd
22690 nobody 15 0 98144 12m 2600 S 1 0.6 0:08.74 httpd
23777 nobody 16 0 98216 12m 2588 S 1 0.6 0:04.58 httpd
23804 nobody 15 0 98144 12m 2588 S 1 0.6 0:03.91 httpd

-----end-----



-----my.cnf-----

[mysqld]
set-variable = max_connections=500
safe-show-database

-----end-----

mysql versiyonu 4.1.21


mysql cpu kullanımı zaman zaman %100ün üzerine çıkıyor, bunu sebebi nedir acaba? my.cnf ile mi alakalıdır?

genel olarak sunucu özellikleri de şöyle: Dual Processor Dual Core Xeon 2.0GHz ve 2GB ram

Mysql i asagidaki sekilde duzenleyebilirsin, innodb kullanmadigini saydigim konfigurasyondur, kullaniyorsan farkli bir konfigurasyon onerebilirim.

[mysqld]
skip-locking
skip-innodb
key_buffer = 256M
table_cache = 1024
max_connections = 500
query-cache-type = 1
query-cache-size = 32M

Mysql konfigurasyonu cok iyi bile olsa, kodlama kotu ise, veya veritabani dogru yapilandirilmadi ise ornegin gerekli indexler yaratilmamis ise, sorunlar devam edecektir.
 

3ddd

0
İyinet Üyesi
Katılım
30 Eylül 2006
Mesajlar
112
Reaction score
0
Celeron 2,8 1gb ram makina çok kasılıyor mysql i de ayarladım verilenlere göre ama hit 5000 i geçince çok zorlanmaya başladı. bu hitle normalmi. ram taktırsam çözüm olurmu. siteler joomla. centos/cpanel yüklü



top - 16:58:37 up 3 days, 6:58, 1 user, load average: 22.87, 15.18, 12.66
Tasks: 205 total, 23 running, 179 sleeping, 1 stopped, 2 zombie
Cpu(s): 84.1% us, 15.9% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 969588k total, 803496k used, 166092k free, 33252k buffers
Swap: 1966072k total, 146420k used, 1819652k free, 424676k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23136 mysql 15 0 180m 29m 2496 S 73.5 3.1 21:41.31 mysqld
30374 oyunsonu 16 0 0 0 0 Z 7.6 0.0 0:00.23 php <defunct>
30375 oyunsonu 19 0 21568 9.9m 3704 R 7.0 1.0 0:00.21 php
30373 oyunsonu 19 0 20308 8504 3580 R 4.0 0.9 0:00.12 php
30350 oyunsonu 16 0 21288 10m 3740 S 2.0 1.1 0:00.28 php
30351 oyunsonu 16 0 0 0 0 Z 1.0 0.0 0:00.23 php <defunct>
30323 oyunsonu 21 0 21320 10m 3764 R 0.7 1.1 0:00.23 php
705 root 15 0 0 0 0 S 0.3 0.0 0:03.18 pdflush
29062 root 16 0 2088 1048 760 R 0.3 0.1 0:02.25 top
30099 nobody 15 0 6264 1940 1084 S 0.3 0.2 0:00.01 httpd
30376 oyunsonu 18 0 11736 2492 1956 R 0.3 0.3 0:00.01 php
1 root 16 0 2412 472 440 S 0.0 0.0 0:00.71 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.21 events/0
4 root 8 -10 0 0 0 S 0.0 0.0 0:00.02 khelper
5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
26 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
Celeron 2,8 1gb ram makina çok kasılıyor mysql i de ayarladım verilenlere göre ama hit 5000 i geçince çok zorlanmaya başladı. bu hitle normalmi. ram taktırsam çözüm olurmu. siteler joomla. centos/cpanel yüklü



top - 16:58:37 up 3 days, 6:58, 1 user, load average: 22.87, 15.18, 12.66
Tasks: 205 total, 23 running, 179 sleeping, 1 stopped, 2 zombie
Cpu(s): 84.1% us, 15.9% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 969588k total, 803496k used, 166092k free, 33252k buffers
Swap: 1966072k total, 146420k used, 1819652k free, 424676k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23136 mysql 15 0 180m 29m 2496 S 73.5 3.1 21:41.31 mysqld
30374 oyunsonu 16 0 0 0 0 Z 7.6 0.0 0:00.23 php <defunct>
30375 oyunsonu 19 0 21568 9.9m 3704 R 7.0 1.0 0:00.21 php
30373 oyunsonu 19 0 20308 8504 3580 R 4.0 0.9 0:00.12 php
30350 oyunsonu 16 0 21288 10m 3740 S 2.0 1.1 0:00.28 php
30351 oyunsonu 16 0 0 0 0 Z 1.0 0.0 0:00.23 php <defunct>
30323 oyunsonu 21 0 21320 10m 3764 R 0.7 1.1 0:00.23 php
705 root 15 0 0 0 0 S 0.3 0.0 0:03.18 pdflush
29062 root 16 0 2088 1048 760 R 0.3 0.1 0:02.25 top
30099 nobody 15 0 6264 1940 1084 S 0.3 0.2 0:00.01 httpd
30376 oyunsonu 18 0 11736 2492 1956 R 0.3 0.3 0:00.01 php
1 root 16 0 2412 472 440 S 0.0 0.0 0:00.71 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.21 events/0
4 root 8 -10 0 0 0 S 0.0 0.0 0:00.02 khelper
5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
26 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0


yuk cok fazla normalde load average 1 in altinda olmasi lazim.
Ram eklersen ve mysql tekrar o taktigin rami kullanacak sekilde ayarlarsan cok faydasi olur.
Ne kadar ram eklersen o kadar iyi, mumkunse 4Gb a cik.
Celeronlar 2.8 CPU olarak zayif, ek RAM ile bu zayifligi dengeleyebilirsin.
 

kesmekes

0
İyinet Üyesi
Katılım
2 Ekim 2005
Mesajlar
183
Reaction score
0
Konum
Bursa/Ankara
Mysql i asagidaki sekilde duzenleyebilirsin, innodb kullanmadigini saydigim konfigurasyondur, kullaniyorsan farkli bir konfigurasyon onerebilirim.

[mysqld]
skip-locking
skip-innodb
key_buffer = 256M
table_cache = 1024
max_connections = 500
query-cache-type = 1
query-cache-size = 32M

Mysql konfigurasyonu cok iyi bile olsa, kodlama kotu ise, veya veritabani dogru yapilandirilmadi ise ornegin gerekli indexler yaratilmamis ise, sorunlar devam edecektir.

Teşekkürler iyinetadmin, yazdığınız gibi yaptım fakat pek fark olmadı, dediğiniz gibi kodlamada sorun var sanırım, iyi bir optimizasyon gerekiyor.Ek olarak cpu upgrade etmeyi düşünüyorum sizce gözle görülür bir katkı sağlar mı bu?
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
Teşekkürler iyinetadmin, yazdığınız gibi yaptım fakat pek fark olmadı, dediğiniz gibi kodlamada sorun var sanırım, iyi bir optimizasyon gerekiyor.Ek olarak cpu upgrade etmeyi düşünüyorum sizce gözle görülür bir katkı sağlar mı bu?

Index kullanmayan sorgular cok fazla I/O ya neden olur.
Bu durum CPU nun I/O icin beklemesine neden olur, CPU cok kullanilmadigi halde sistem cok CPU kullaniyormus gibi gorunur. Her table scan CPU kullanimini arttirir. Bellek ekleyerek bu bekleme zamanini azaltirsin ama...
Once uygulamanin optimize edilmesi ardindan gerekiyorsa bellek eklenmesi benim tavsiyem.
 

SonSahne

0
İyinet Üyesi
Katılım
4 Şubat 2006
Mesajlar
402
Reaction score
0
2 x Xeon 3.4
2 Gb Ram
2 x 73 gb scsi disk

için Nasıl bir my.cnf Oluşturmam gerekiyor acaba? yardımlarınızı bekliyorum teşekkür ederim..
 

Mywedding

1
İyinet Üyesi
Katılım
26 Eylül 2006
Mesajlar
5,893
Reaction score
96
Konum
www.odatv.com
selamlar , /etc/my.cnf dosyasını hangi komut açıyor ve düzenleme için komut/lar nedir , teşekkürler
 

Mywedding

1
İyinet Üyesi
Katılım
26 Eylül 2006
Mesajlar
5,893
Reaction score
96
Konum
www.odatv.com
neyse hostbank sağolsun buldum ,, benim sunucu my.cnf aşağıda ,

ne diyor , nasıl , ltf yardım

[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

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

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
~
~
~
~
~
~
~
~
"/etc/my.cnf" 15L, 374C
 

Mywedding

1
İyinet Üyesi
Katılım
26 Eylül 2006
Mesajlar
5,893
Reaction score
96
Konum
www.odatv.com
bu nasıl yorumlaya bilirmisiniz, load bazen acaip uçuyo :)
qPa80321.jpg
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst