صفحة 1 من 2 12 الأخيرةالأخيرة
النتائج 1 إلى 15 من 21

الموضوع: استخدمت المساعد لإعدادات Mysql احتاج مشورتكم

  1. استخدمت المساعد لإعدادات Mysql احتاج مشورتكم



    السلام عليكم

    طلب مني البرنامج عدة تعديلات ولكن لم يرجح لي قيم معينه فارجو منكم النصح

    -- MYSQL PERFORMANCE TUNING PRIMER --
    - By: Matthew Montgomery -

    MySQL Version 4.1.22-standard i686

    Uptime = 0 days 0 hrs 0 min 46 sec
    Avg. qps = 23
    Total Questions = 1099
    Threads Connected = 2

    Warning: Server has not been running for at least 48hrs.
    It may not be safe to use these recommendations

    To find out more information on how each of these
    runtime variables effects performance visit:
    http://dev.mysql.com/doc/refman/4.1/...variables.html

    SLOW QUERIES
    Current long_query_time = 10 sec.
    You have 0 out of 1127 that take longer than 10 sec. to complete
    The slow query log is NOT enabled.
    Your long_query_time may be too high, I typically set this under 5 sec.

    WORKER THREADS
    Current thread_cache_size = 8
    Current threads_cached = 6
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine

    MAX CONNECTIONS
    Current max_connections = 800
    Current threads_connected = 2
    Historic max_used_connections = 8
    The number of used connections is 1% of the configured maximum.
    You are using less than 10% of your configured max_connections.
    Lowering max_connections could help to avoid an over-allocation of memory
    See "MEMORY USAGE" section to make sure you are not over-allocating

    MEMORY USAGE
    Max Memory Ever Allocated : 524 M
    Configured Max Per-thread Buffers : 9 G
    Configured Max Global Buffers : 426 M
    Configured Max Memory Limit : 10 G
    Total System Memory : 4 G

    Max memory limit exceeds 85% of total system memory

    KEY BUFFER
    Current MyISAM index space = 582 M
    Current key_buffer_size = 384 M
    Key cache miss rate is 1 : 10
    Key buffer fill ratio = 0 %
    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 = 32 M
    Current query_cache_used = 7 M
    Current query_cach_limit = 1 M
    Current Query cache fill ratio = 22.81 %
    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 = 2 M
    Current record/read_rnd_buffer_size = 7 M
    Sort buffer seems to be fine

    JOINS
    Current join_buffer_size = 132.00 K
    You have had 30 queries where a join could not use an index properly
    You should enable "log-queries-not-using-indexes"
    Then look for non indexed joins in the slow query log.
    If you are unable to optimize your queries you may want to increase your
    join_buffer_size to accommodate larger joins in one pass.

    Note! This script will still suggest raising the join_buffer_size when
    ANY joins not using indexes are found.

    OPEN FILES LIMIT
    Current open_files_limit = 4000 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 = 512 tables
    You have a total of 22905 tables
    You have 342 open tables.
    The table_cache value seems to be fine

    TEMP TABLES
    Current max_heap_table_size = 16 M
    Current tmp_table_size = 32 M
    Of 280 temp tables, 0% were created on disk
    Effective in-memory tmp_table_size is limited to max_heap_table_size.
    Created disk tmp tables ratio seems fine

    TABLE SCANS
    Current read_buffer_size = 1 M
    Current table scan ratio = 1506 : 1
    read_buffer_size seems to be fine

    TABLE LOCKING
    Current Lock Wait ratio = 1 : 2033
    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'




    السيرفر عليه حوالي 138 موقع وفي الايام الاخياره اواجه توقف لقواعد البيانات احياناً وللأباتشي رقيت الرام ولكن ما زالت المشكلة موجوده فارجو منكم الحل إن امكن





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً




  2. احيان احس اني اجيب اسئلة مو صاحيه





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً

  3. #3
    عضو نشيط جدا
    تاريخ التسجيل
    May 2006
    المشاركات
    477


    بشكل عام قد يساعد احياناً سكربت مثل الذي استخدمته و احياناً لا
    بشكل عام اتبع مثلما أعطاك النتيجه . فالأشياء التي ابلغك انه seems to fine لا تقم بتعديلها في ملف /etc/my.cnf
    اما الأشياء التي طلب ان تعدلها مثل :
    Your long_query_time may be too high, I typically set this under 5 sec
    فقم اذن بتعديل قيمة long_query_time اي مثلاً 5 او 4

    و لا تنسي ريستارت للماي اس كيو ال بعد الانتهاء

    بشكل عام يفضل ان يقوم شخص بفحص السيرفر لتحديد اسباب توقف الأباتشي و الماي اس كيو ال لديك .. و عمل اصلاح مشاكلهما و عمل اوبتمايز لهما افضل .





    __________________
    أحمد عبد الفتاح
    www.servmix.com
    لمراسلتي : admin@servmix.com




  4. شكراً يا مهندس احمد رغم اني كنت اتمنا انك تسهب في الكلام اكثر وتدلني على شئ عملي اكثر





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً

  5. #5


    Fast غالبا لا تقدر ان تقدم المفيد بدون ان ترى السيرفر من الداخل

    Uptime = 0 days 0 hrs 0 min 46 sec

    الاسكربت انصحك تشغله بعد تشغيل القواعد بيومان مثلا وارنا ماذا يظهر لك وايضا اخبرنا بمواصفات سرفرك ربما نقدر ان نقدم لك اى عون

    تحياتى لك





    __________________
    GNU/Linux system EngineerVps & Dedicated servers & ManagementContact Me On : 00201003338749 or ceo@murabba.comwww.murabba.com

  6. #6
    عضو نشيط جدا
    تاريخ التسجيل
    May 2006
    المشاركات
    477


    السلام عليكم

    مرحباً أخي Fats
    لو يسعني ان افيدك بحوار ال optimize كنت كتب لك .. لكن لا أريد أن اظلمك أو اظلم سيرفرك بأن أضع لك اي اعدادات سواء للأباتشي او ال mysql .. فالاعدادات الخطأ أو الغير متوافقه هتعود سلباً علي سيرفرك .. لذلك أبلغتك بأنه من الأفضل ان يدخل شخص السيرفر حتي يري ما يناسب سيرفرك من اعدادات
    هناك أعدادات بشكل عام ان شاء الله استطيع ابلغك بها لل mysql و ال apache
    لكن أريد منك أن تبلغني بمواصفات سيرفرك و التوزيعه التي تستخدمها و اصدارات ال apache و ال mysql التي تستخدمها
    و اعطائي قيم الخصائص التاليه من ملف /usr/local/apache/conf/httpd.conf
    keepalive
    timeout
    keepalivetimeout
    minspareserver
    maxspareserver

    و اعطائي اعدادات ملف my.cnf الحالي
    و اعطائي نواتج هذه الأوامر
    ps -e | grep httpd | wc -l
    netstat -an | grep :80 | wc -l

    و عدد المواقع بسيرفرك . حتي استطيع اعطائك اعدادات عامة قد تساعد ان شاء الله





    __________________
    أحمد عبد الفتاح
    www.servmix.com
    لمراسلتي : admin@servmix.com




  7. شكراً لك اخي كارم ولكن للاسف لا استطيع قواعد البيانات يومياً تتوقف





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً



  8. اخي المهندس احمد

    توزيعة الينكس
    CENTOS Enterprise 4.6 i686 on standard

    rocessor #1 Vendor: GenuineIntel
    Processor #1 Name: Intel(R) Xeon(TM) CPU 2.80GHz
    Processor #1 speed: 2800.543 MHz
    Processor #1 cache size: 1024 KB

    Processor #2 Vendor: GenuineIntel
    Processor #2 Name: Intel(R) Xeon(TM) CPU 2.80GHz
    Processor #2 speed: 2800.543 MHz
    Processor #2 cache size: 1024 KB

    Processor #3 Vendor: GenuineIntel
    Processor #3 Name: Intel(R) Xeon(TM) CPU 2.80GHz
    Processor #3 speed: 2800.543 MHz
    Processor #3 cache size: 1024 KB

    Processor #4 Vendor: GenuineIntel
    Processor #4 Name: Intel(R) Xeon(TM) CPU 2.80GHz
    Processor #4 speed: 2800.543 MHz
    Processor #4 cache size: 1024 KB


    Memory Information

    Memory: 3113004k/3145472k available (1892k kernel code, 31532k reserved, 768k data, 192k init, 2227968k highmem)


    اصادر الاباتشي 2

    الماي سكيوال 4

    keepalive off
    timeout 100
    keepalivetimeout 3
    minspareserver 5
    maxspareserver 10

    دقيقه اعطيك باقي المعلومات





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً



  9. # The following options will be passed to all MySQL clients
    [client]
    #password = your_password
    port = 3306
    socket = /var/lib/mysql/mysql.sock

    # Here follows entries for some specific programs

    # The MySQL server
    [mysqld]
    port = 3306
    socket = /var/lib/mysql/mysql.sock
    skip-locking
    max_connections = 800
    key_buffer = 384M
    max_allowed_packet = 1M
    table_cache = 512
    sort_buffer_size = 2M
    old-passwords = 1
    read_buffer_size = 2M
    read_rnd_buffer_size = 8M
    myisam_sort_buffer_size = 64M
    thread_cache_size = 8
    query_cache_size = 32M
    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency = 8

    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!
    #
    #skip-networking

    # Replication Master Server (default)
    # binary logging is required for replication
    #log-bin

    # required unique id between 1 and 2^32 - 1
    # defaults to 1 if master-host is not set
    # but will not function as a master if omitted
    server-id = 1

    # Replication Slave (comment out master section to use this)
    #
    # To configure this host as a replication slave, you can choose between
    # two methods :
    #
    # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
    # the syntax is:
    #
    # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
    # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
    #
    # where you replace <host>, <user>, <password> by quoted strings and
    # <port> by the master's port number (3306 by default).
    #
    # Example:
    #
    # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,

    # MASTER_USER='joe', MASTER_PASSWORD='secret';
    #
    # OR
    #
    # 2) Set the variables below. However, in case you choose this method, then
    # start replication for the first time (even unsuccessfully, for example
    # if you mistyped the password in master-password and the slave fails to
    # connect), the slave will create a master.info file, and any later
    # change in this file to the variables' values below will be ignored and
    # overridden by the content of the master.info file, unless you shutdown
    # the slave server, delete master.info and restart the slaver server.
    # For that reason, you may want to leave the lines below untouched
    # (commented) and instead use CHANGE MASTER TO (see above)
    #
    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id = 2
    #
    # The replication master for this slave - required

    #master-host = <hostname>
    #
    # The username the slave will use for authentication when connecting
    # to the master - required
    #master-user = <username>
    #
    # The password the slave will authenticate with when connecting to
    # the master - required
    #master-password = <password>
    #
    # The port the master is listening on.
    # optional - defaults to 3306
    #master-port = <port>
    #
    # binary logging - not required for slaves, but recommended
    #log-bin

    # Point the following paths to different dedicated disks
    #tmpdir = /tmp/
    #log-update = /path-to-dedicated-directory/hostname

    # Uncomment the following if you are using BDB tables
    #bdb_cache_size = 384M
    #bdb_max_lock = 100000

    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql/
    #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql/
    #innodb_log_arch_dir = /var/lib/mysql/
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 384M
    #innodb_additional_mem_pool_size = 20M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 100M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50

    [mysqldump]
    quick
    max_allowed_packet = 16M

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [isamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M

    [myisamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M

    [mysqlhotcopy]
    max_allowed_packet = 16M

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [isamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M

    [myisamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M

    [mysqlhotcopy]
    interactive-timeout



    ps -e | grep httpd | wc -l
    66


    netstat -an | grep :80 | wc -l
    913


    اكبر مشكلة لدي توقف قاعدة البيانات وعدم اعادة تشغيلها يدوياً لان المواقع توقف وضغط على السيرفر

    شكراً يا مهندس احمد على اعطائي من وقتك





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً

  10. #10
    عضو نشيط جدا
    تاريخ التسجيل
    May 2006
    المشاركات
    477


    السلام عليكم

    العفو أخي الكريم .. قبل ان تقوم بالتعديل قم بأخذ نسخة احتياطيه من الملفين httpd.conf و my.cnf

    بالنسبه للأباتشي قم بتعديل قيم الخصائص الي القيم التاليه :
    keepalive off
    timeout 40
    keepalivetimeout 2
    minspareserver 20
    maxspareserver 25
    startservers 20
    maxclient 600
    MaxRequestsPerChild 3000

    ثم رستر الأباتشي بعدها

    بالنسبه للماي اس كيو ال و توقفها فالله اعلم لتحديد سبب توقفها يجب التاكد من كذا شيء لكن بشكل عام ربما تكون مشكلة اعدادات .. قم بتحرير ملف my.cnf و من قم مسح كل ما فيه و نسخ الاعدادات التاليه :

    [mysqld]
    safe-show-database
    old_passwords
    back_log = 75
    skip-innodb
    max_connections = 500
    key_buffer = 128M
    myisam_sort_buffer_size = 64M
    join_buffer_size = 1M
    read_buffer_size = 1M
    table_cache = 1800
    thread_cache_size = 384
    wait_timeout = 15
    connect_timeout = 10
    tmp_table_size = 64M
    max_heap_table_size = 64M
    max_allowed_packet = 64M
    thread_concurrency = 8
    max_connect_errors = 10
    query_cache_limit = 4M
    query_cache_size = 64M
    query_cache_type = 1
    default-storage-engine = MyISAM

    [mysqld_safe]
    nice = -10
    open_files_limit = 8192

    [mysqldump]
    max_allowed_packet = 16M



    و من ثم قم بعمل ريستارت لل mysql
    و قم بالمراقبه بعد ذلك و تفحص مستوي العمل لل apache و ال mysql





    __________________
    أحمد عبد الفتاح
    www.servmix.com
    لمراسلتي : admin@servmix.com




  11. اعفوا اخي احمد فقط لتونيه هناك مركز رفع ملفات فيا سيرفر بقدر على رف 25 ميجا للملف الواحد اعتقد هناك في الاعدادات خصائص ممكن توقف عملية الرفع للملفات بهذا الحجم ! هل اعدل ام هناك تعديل على الاعدادات التي نصحتني بها





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً

  12. #12
    عضو نشيط
    تاريخ التسجيل
    May 2004
    المشاركات
    67


    اخي احمد على ما بنيت ان اكثر عدد لزوار الاباتشي 600 ؟؟
    maxclient 600


    في حين ان التحديثات الاخيره لل Cpanel لا تقبل اكثر من 250 لنفس المتغير وتقوم بعمل خطأ يظهر مع الضغط على السيرفر ؟





    __________________
    اللهم انك عفو كريم حليم عظيم تحب العفو فاعفو عني وعن امي ..

    اللهم اغفر للمسلمين والمسلمات والمؤمنين والمؤمنات الاحياء منهم والاموات

    اللهم اني اعوذ بك من همزات الشياطين وأعوذ بك ربي أن يحضرون

  13. #13
    عضو نشيط جدا
    تاريخ التسجيل
    May 2006
    المشاركات
    477


    السلام عليكم
    أخي Fast .. المتغير المتحكم بحجم الملف المرفوع عن طريق المتصفح موجود في php.ini و يسمي max_uplaod_file و ليس للاعدادات بالأعلي دخل به .. فلا تقلق لن يتوقف الأبلود

    أخي البلالام .. اشكرك علي تعليقك عزيزي .. لا لن يسوي هذا اي رسائل خطأ مع السيرفر لا تقلق .. فمن خلال تجربتي بشكل عام مع امور الأبتومايز فوجدت أن افضل و اهم شيء هو ان تجعل السيرفر غير مشغول دائماً بتنفيذ اي عمليات .. فمادام معك مواصفات سيرفر جيده و تسمح فلماذا تضع السيرفر دائماً بحالة معالجة الريكويساتات طلب ثم طلب . هذا بالعكس سيتسبب بالبطيء بالسيرفر و ظهور احياناً رسائل الخطأ التي تتكلم عليها
    لذلك فاالأفضل دائماً ان لا تجعل السيرفر مشغول دائماً .. و ستلاحظ بفرق السرعه و عدم زيادة اللود ان شاء الله

    هذا والله اعلم ،





    __________________
    أحمد عبد الفتاح
    www.servmix.com
    لمراسلتي : admin@servmix.com




  14. اليوم اجرب واوافيكم بنتائج





    __________________
    أنشئ البوم لصورك وشاركها في موقعك صور TNT


    expertsniper - Fast سابقاً

  15. #15
    عضو نشيط
    تاريخ التسجيل
    May 2004
    المشاركات
    67


    مهندس احمد شكرا لردك واهتماكم

    ولكن جرب httpd configtest

    وجرب شوف اللوج

    tail -f /usr/local/apache/logs/error_log

    دا طبعا في حالة انك مزود العدد لاكتر من 250 واصدار ال easyapache عندك 3





    __________________
    اللهم انك عفو كريم حليم عظيم تحب العفو فاعفو عني وعن امي ..

    اللهم اغفر للمسلمين والمسلمات والمؤمنين والمؤمنات الاحياء منهم والاموات

    اللهم اني اعوذ بك من همزات الشياطين وأعوذ بك ربي أن يحضرون





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض