سوالف اندرويد




العودة   سوالف سوفت > سوالف الشبكات والاستضافة وما يتعلق بهما > الشبكات والخوادم وقواعد البيانات
التسجيل المدوّنات البحث مشاركات اليوم جعل الأقسام مقروءة

الوسوم: ,

الرد على الموضوع
 
LinkBack أدوات الموضوع
عضو جديد
#1  
طلب اعدادات my.cnf + مشكلة اللود بسبب قواعد البيانات

بسم الله

اخواني عندي سيرفر
Total processors: 8
Processor #1
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E5310 @ 1.60GHz
Speed
1596.041 MHz
Cache
4096 KB
Processor #2 //
Processor #. //
Processor #. //
Processor #8 //

الرام 24 قيقا
ومحتاج افضل اعدادات لملف my.cnf

للعلم قواعد البيانات عندي كل شوي تتحطم وتسبب لود لسيرفر ولازم اعمل لها اصلاح وتحسين ويرجع كل شئ طبيعي

وما تمر ساعتين الى واللود يرتفع

استهلاك المعالج 179

/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/server.7s-b.com.pid --skip-external-locking
كود PHP:
+-------+----------+-----------+----------+---------+------+----------------------+------------------------------------------------------------------------------------------------------+
Id    User     Host      db       Command Time State                Info                                                                                                 |
+-------+----------+-----------+----------+---------+------+----------------------+------------------------------------------------------------------------------------------------------+
17408 sb_video localhost sb_video Query   4258 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
26659 sb_video localhost sb_video Query   3934 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
30637 root     localhost sb_video Query   1578 Locked               REPAIR TABLE `pm_tags`                                                                               |
30951 sb_video localhost sb_video Query   1693 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31064 sb_video localhost sb_video Query   1837 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31095 sb_video localhost sb_video Query   1691 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31192 sb_video localhost sb_video Query   1835 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31246 sb_video localhost sb_video Query   1691 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31398 sb_video localhost sb_video Query   1692 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31768 sb_video localhost sb_video Query   1694 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31797 sb_video localhost sb_video Query   2864 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31850 sb_video localhost sb_video Query   1690 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
31979 sb_video localhost sb_video Query   1689 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
32110 sb_video localhost sb_video Query   1694 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
32186 sb_video localhost sb_video Query   1692 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
32250 sb_video localhost sb_video Query   1692 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
32498 sb_video localhost sb_video Query   1691 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
32606 sb_video localhost sb_video Query   1838 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
33078 sb_video localhost sb_video Query   1839 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
34636 sb_video localhost sb_video Query   1689 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
35289 sb_video localhost sb_video Query   1842 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
35395 sb_video localhost sb_video Query   1693 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
35514 sb_video localhost sb_video Query   1693 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
36195 sb_video localhost sb_video Query   1694 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
36488 sb_video localhost sb_video Query   1693 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE |
36933 sb_video localhost sb_video Query   1692 Copying to tmp table SELECT tag_idtagsafe_tagCOUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE 
اتمنى الاقي حل لسيرفر واللود







آخر تعديل بواسطة ye4ever في 25-03-2011 الساعة 07:13 PM.
ye4ever is offline   قديم 25-03-2011, 07:11 PM
الرد مع إقتباس
عضو نشيط
#2  

السلام عليكم ورحمة الله وبركاته
حبيت اساعدك عزيزي لتقم بها بنفسك بواسطة السكريبت كل ما عليك هو اتباع الرابط التالي واعتذر للاخوة المشرفين عن وضع رابط خارجي
http://www.traidnt.net/Portal/Server...cnf-mysql.html
في أمان الله






shell is offline   قديم 28-03-2011, 05:13 AM
الرد مع إقتباس
عضو سوبر نشيط
#3  

اخي
من ملاحظتي للوج فوق .. هذا الاستعلام مسبب كل هذا اللود
كود:
SELECT tag_id, tag, safe_tag, COUNT(*) as numvids FROM pm_tags GROUP BY safe_tag ORDER BY numvids DE 
و يحتاج الى optimize
خصوصا تغير * الى حقل واحد مثل tag_id






__________________
أهلا و سهلا بكم في :-
موقع دار الأوائل
تفضل معنا خدمات الاستضافة
موقع العبقري لخدمات الاستضافة
عبقري العرب is offline   قديم 28-03-2011, 09:28 AM
الرد مع إقتباس
عضو جديد
#4  

اخواني انا حليت مشكلة اللود حق القاعده

بس صار السيرفر بطيئ جداً مدري وش سوت الشركه المهم استخدمة سكربت Tuning-Primer.sh

وهذه النتائج


على قرائة سكربت Tuning-Primer.sh

كود PHP:
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - 
ByMatthew Montgomery -

MySQL Version 5.0.92-community-log x86_64

Uptime 
2 days 9 hrs 13 min 58 sec
Avg
qps 78
Total Questions 
16218384
Threads Connected 
14

Server has been running 
for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit
:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 10 sec.
You have 41175 out of 16218532 that take longer than 10 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.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 2
Current threads_per_sec = 3
Historic threads_per_sec = 3
Threads created per/sec are overrunning threads cached
You should raise thread_cache_size

MAX CONNECTIONS
Current max_connections = 400
Current threads_connected = 16
Historic max_used_connections = 227
The number of used connections is 56% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 208 K
Current InnoDB data space = 144 K
Current InnoDB buffer pool free = 90 %
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 : 9.89 G
Configured Max Per-thread Buffers : 15.77 G
Configured Max Global Buffers : 970 M
Configured Max Memory Limit : 16.71 G
Physical Memory : 23.52 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 748 M
Current key_buffer_size = 768 M
Key cache miss rate is 1 : 5166
Key buffer free ratio = 68 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is enabled
Current query_cache_size = 192 M
Current query_cache_used = 17 M
Current query_cache_limit = 64 M
Current Query cache Memory fill ratio = 9.23 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won'
t cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size 
16 M
Current read_rnd_buffer_size 
8 M
Sort buffer seems to be fine

JOINS
Current join_buffer_size 
16.00 M
You have had 9 queries where a join could not 
use an index properly
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 
12288 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_cache value 
4096 tables
You have a total of 862 tables
You have 1490 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 1691235 temp tables
8were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size 
128 K
Current table scan ratio 
24397 1
You have a high ratio of sequential access requests to SELECTs
You may benefit from raising read_buffer_size 
and/or improving your use of indexes.

TABLE LOCKING
Current Lock Wait ratio 
12
You may benefit from selective 
use of InnoDB.
If 
you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting '
low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting '
concurrent_insert=2
وهذا الملف

كود PHP:
[mysqld]

local-infile=0

max_connections
=400
max_user_connections
=150

query_cache_type
=1
query_cache_limit
=64M
query_cache_size
=192M

interactive_timeout
=60
wait_timeout
=60
connect_timeout
=10
table_cache
=4096
open_files_limit
=12288

join_buffer_size
=16M
key_buffer
=768M
sort_buffer_size
=16M
read_rnd_buffer_size
=8M

thread_concurrency
=2
thread_cache
=16
thread_cache_size
=4

tmp_table_size
=256M
max_heap_table_size
=256M
log
-slow-queries =/var/lib/mysql/slow 

ما ادري وش تقولي القرائه ولا عرفت كيف اضبطها على الملف






ye4ever is offline   قديم 28-03-2011, 03:29 PM
الرد مع إقتباس
عضو نشيط
#5  

إقتباس:
المشاركة الأصلية بواسطة ye4ever مشاهدة مشاركة
اخواني انا حليت مشكلة اللود حق القاعده

بس صار السيرفر بطيئ جداً مدري وش سوت الشركه المهم استخدمة سكربت Tuning-Primer.sh

وهذه النتائج


على قرائة سكربت Tuning-Primer.sh

كود PHP:
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - 
ByMatthew Montgomery -

MySQL Version 5.0.92-community-log x86_64

Uptime 
2 days 9 hrs 13 min 58 sec
Avg
qps 78
Total Questions 
16218384
Threads Connected 
14

Server has been running 
for over 48hrs.
It should be safe to follow these recommendations

To find out more information on how each of these
runtime variables effects performance visit
:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 10 sec.
You have 41175 out of 16218532 that take longer than 10 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.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 2
Current threads_per_sec = 3
Historic threads_per_sec = 3
Threads created per/sec are overrunning threads cached
You should raise thread_cache_size

MAX CONNECTIONS
Current max_connections = 400
Current threads_connected = 16
Historic max_used_connections = 227
The number of used connections is 56% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 208 K
Current InnoDB data space = 144 K
Current InnoDB buffer pool free = 90 %
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 : 9.89 G
Configured Max Per-thread Buffers : 15.77 G
Configured Max Global Buffers : 970 M
Configured Max Memory Limit : 16.71 G
Physical Memory : 23.52 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 748 M
Current key_buffer_size = 768 M
Key cache miss rate is 1 : 5166
Key buffer free ratio = 68 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is enabled
Current query_cache_size = 192 M
Current query_cache_used = 17 M
Current query_cache_limit = 64 M
Current Query cache Memory fill ratio = 9.23 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won'
t cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size 
16 M
Current read_rnd_buffer_size 
8 M
Sort buffer seems to be fine

JOINS
Current join_buffer_size 
16.00 M
You have had 9 queries where a join could not 
use an index properly
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 
12288 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_cache value 
4096 tables
You have a total of 862 tables
You have 1490 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 1691235 temp tables
8were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size 
128 K
Current table scan ratio 
24397 1
You have a high ratio of sequential access requests to SELECTs
You may benefit from raising read_buffer_size 
and/or improving your use of indexes.

TABLE LOCKING
Current Lock Wait ratio 
12
You may benefit from selective 
use of InnoDB.
If 
you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting '
low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting '
concurrent_insert=2
وهذا الملف

كود PHP:
[mysqld]

local-infile=0

max_connections
=400
max_user_connections
=150

query_cache_type
=1
query_cache_limit
=64M
query_cache_size
=192M

interactive_timeout
=60
wait_timeout
=60
connect_timeout
=10
table_cache
=4096
open_files_limit
=12288

join_buffer_size
=16M
key_buffer
=768M
sort_buffer_size
=16M
read_rnd_buffer_size
=8M

thread_concurrency
=2
thread_cache
=16
thread_cache_size
=4

tmp_table_size
=256M
max_heap_table_size
=256M
log
-slow-queries =/var/lib/mysql/slow 
ما ادري وش تقولي القرائه ولا عرفت كيف اضبطها على الملف
السلام عليكم ورحمة الله وبركاته

اخى تواصل مع مدير السيرفر بهذا الخصوص

بامكانى تقديم الادارة واعطاء مواقعك اعلى سرعة واقصى استقرار بأمر الله

(فقط ان كان سيرفرك لا يحتوى على ما يخالف الشريعة الاسلامية)

بالتوفيق ان شاء الله






__________________
"يا الله, أللهم لا علم لنا إلا ما علمتنا"
http://www.hyyat.com/
حياة هوست, دعنا نرسم سويا خطوات اكثر نجاحا
HuMaN-BiEnG is offline   قديم 31-03-2011, 04:16 PM
الرد مع إقتباس
الرد على الموضوع



أدوات الموضوع

قوانين المشاركات
لا يمكنك كتابة مواضيع جديدة
لا يمكنك إضافة ردود
لا يمكنك إرسال مرفقات
لا يمكنك تعديل مشاركاتك

كود vB متاح
كود [IMG] متاح
كود HTML غير متاح
Trackbacks are متاح
Pingbacks are متاح
Refbacks are متاح


المواضيع المشابهه
الموضوع كاتب الموضوع القسم الردود آخر مشاركة
مشكلة في ارتفاع اللود بسبب هذا البروسيس مطلوب مساعدة ahmadddok11 الشبكات والخوادم وقواعد البيانات 2 31-05-2010 07:33 PM
هل تعاني من ارتفاع اللود بسبب جداول قواعد البيانات MYSQL .... حلك مع beshoo beshoo عروض البيع وطلبات الشراء في الاستضافة 0 19-02-2010 07:38 AM
مشكلة توقف الموقع بسبب اللود من الجميع المشاركه جزاكم الله خير alraiah الإصلاح والصيانة 7 03-01-2009 03:16 PM
مشكلة ارتفاع اللود بسبب هاك كيف اجده بنت السعوديه الإصلاح والصيانة 5 15-01-2008 04:15 PM
ارتفاع اللود نتيجة ضغط على قواعد البيانات wisam74us سوالف الاستضافة 5 11-06-2006 05:05 PM


جميع الأوقات بتوقيت غرينتش +3. الوقت الآن هو 12:05 PM.