İyinet'e Hoşgeldiniz!

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

Kayıt Ol!

Server PHP Ram Sorunu

gencsoft

0
İyinet Üyesi
Katılım
9 Nisan 2008
Mesajlar
32
Reaction score
0
Merhaba arkadaşlar,

32GB ramlı ve 8 çekirdekli bir dedicated serverim var bir siteme 60 kişi ve üzeri online olduğunda ram tavan yapıyor 32 gb ram bitiriyor ve ssh den baktığımda php bileşenin bütün ramı harcadığını görüyorum bunun nedeni nedir normalmidir bu? yani 60 kişide 32gb ram nasıl yetmiyor aklım almıyor bir ayar mı yapmam lazım veya başka birşeymi kullandığım panel cPanel dir ve Nginx eklentisi kurulu.

Şimdiden yardım ve önerileriniz için teşekkürler.
 

YNTPlus

0
İyinet Üyesi
Katılım
4 Haziran 2013
Mesajlar
16
Reaction score
0
Konum
İZMİR
Merhaba arkadaşlar,

32GB ramlı ve 8 çekirdekli bir dedicated serverim var bir siteme 60 kişi ve üzeri online olduğunda ram tavan yapıyor 32 gb ram bitiriyor ve ssh den baktığımda php bileşenin bütün ramı harcadığını görüyorum bunun nedeni nedir normalmidir bu? yani 60 kişide 32gb ram nasıl yetmiyor aklım almıyor bir ayar mı yapmam lazım veya başka birşeymi kullandığım panel cPanel dir ve Nginx eklentisi kurulu.

Şimdiden yardım ve önerileriniz için teşekkürler.

Scriptiniz nedir ?wordpress mi ?
 

YNTPlus

0
İyinet Üyesi
Katılım
4 Haziran 2013
Mesajlar
16
Reaction score
0
Konum
İZMİR
Bir modül yapıyor olabilir bu problemi tabi sunucunuzun optimize durumunu bilmiyorum. Kasma durumunda top -c çekerek bir resim ekler misiniz.
 

gencsoft

0
İyinet Üyesi
Katılım
9 Nisan 2008
Mesajlar
32
Reaction score
0
MySQL için örnek bir my.cnf içeriği önerebilirmisiniz lütfen? onuda her ihtimale karşı optimize edeyim de bir gün daha server durumuna bakacam.
 

Neo

0
İyinet Üyesi
Katılım
23 Haziran 2008
Mesajlar
289
Reaction score
0
Konum
Izmir
MySQL için örnek bir my.cnf içeriği önerebilirmisiniz lütfen? onuda her ihtimale karşı optimize edeyim de bir gün daha server durumuna bakacam.

Server durumuna bakilmadan my.cnf ayarlamak saglikli degil. Her sunucunun my.cnf'si farklidir.
 

gencsoft

0
İyinet Üyesi
Katılım
9 Nisan 2008
Mesajlar
32
Reaction score
0
Serverdaki my.cnf:
PHP:
[myisamchk]
read_buffer=16M
key_buffer=64M
sort_buffer=64M
write_buffer=16M

[mysqld]
myisam_sort_buffer_size=256M
open_files_limit=30000
query_cache_type=1
query_cache_size=64M
query_cache_limit=64M
thread_cache_size=256
thread_concurrency=16
max_allowed_packet=1024M
sort_buffer=2M
interactive_timeout=500
table_definition_cache=10000
table_open_cache=10000
local-infile=0
default-storage-engine=MyISAM
wait_timeout=3000
connect_timeout=3000
tmp_table_size=256M
max_connections=500
key_buffer=64M
log-slow-queries="/var/lib/mysql/slow_queries.log"
long_query_time = 1
join_buffer=4M
max_heap_table_size=256M
low_priority_updates=1

[mysqldump]
max_allowed_packet=1024M
quick

[mysqld_safe]
nice=-5

MySQL un sundugu tuning-primer.sh dosyasini calistirdim asagidaki gibi bir cikti verdi simdi buna gore nasil duzenlemem lazim

PHP:
SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 1.000000 sec.
You have 3595 out of 8019587 that take longer than 1.000000 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 256
Current threads_cached = 152
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 500
Current threads_connected = 7
Historic max_used_connections = 157
The number of used connections is 31% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 8 M
Current InnoDB data space = 11 M
Current InnoDB buffer pool free = 0 %
Current innodb_buffer_pool_size = 8 M
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 1.15 G
Configured Max Per-thread Buffers : 3.23 G
Configured Max Global Buffers : 138 M
Configured Max Memory Limit : 3.36 G
Physical Memory : 31.26 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 71 M
Current key_buffer_size = 64 M
Key cache miss rate is 1 : 28348
Key buffer free ratio = 49 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 64 M
Current query_cache_used = 30 M
Current query_cache_limit = 64 M
Current Query cache Memory fill ratio = 47.90 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 4.00 M
You have had 230366 queries where a join could not use an index properly
You have had 3 joins without keys that check for key usage after each row
join_buffer_size >= 4 M
This is not advised
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.

OPEN FILES LIMIT
Current open_files_limit = 30000 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_open_cache = 10000 tables
Current table_definition_cache = 10000 tables
You have a total of 1226 tables
You have 2564 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 256 M
Current tmp_table_size = 256 M
Of 1170892 temp tables, 39% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 66 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 85
You may benefit from selective use of InnoDB.
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
 

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