Activity Stream
48,167 MEMBERS
62099 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1.     
    #21
    Member
    Website's:
    CodeSociety.net
    look at the ajaz chat first. If u have it refreshing every second, thats a problem.

    Every browser open will refresh 1second times (the amount of users * windows)

    Look at your code BEFORE messing with server



  2.     
    #22
    Member
    Quote Originally Posted by keytraderz View Post
    if your going through this much just to optimize your site so it doesn't lag it means 2 things : time to get a better server with better spec or the sites coding just blows.
    There are heavy websites which need better performance but they aren't taking quite alot of resources. And so, I am trying to optimize the server for better outcome.

    Quote Originally Posted by Gav0 View Post
    I was thinking the same myself.

    maybe its a VPS on a overloaded server, or just a poor CPU
    It is a dedicated server and it is still quite a bit under the RAM provisions. The CPU usage normally does not go beyond 10% usage.

    Quote Originally Posted by BlaZe View Post
    Just have a RAM Upgrade or post your specs here
    I think 2GB RAM is quite enough at the moment. I have about 512MB still not used.

    Quote Originally Posted by immortalxx View Post
    look at the ajaz chat first. If u have it refreshing every second, thats a problem.

    Every browser open will refresh 1second times (the amount of users * windows)

    Look at your code BEFORE messing with server
    The ajax chat has been optimized in order to make it work better. It is no longer causing any problems. Although the websites on the whole have a bit slow response.

    - Recently, the load shot from 1 to 168 somehow and hanged the service. I suspected a DDOS attack or something from the websites, but when I saw the logs, it really didn't show me anything that is related to the website. So any ideas why that might be a case? Any way to prevent this ?

  3.   Sponsored Links

  4.     
    #23
    Member
    Here are the latest reports:
    MySQLTuner.PL
    Code: 
    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.1.45-log
    [OK] Operating on 64-bit architecture
    
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 413M (Tables: 4034)
    [--] Data in InnoDB tables: 21M (Tables: 221)
    [--] Data in MEMORY tables: 1020K (Tables: 1)
    [!!] Total fragmented tables: 407
    
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 4d 13h 57m 55s (20M q [51.597 qps], 1M conn, TX: 57B, RX: 5B)
    [--] Reads / Writes: 68% / 32%
    [--] Total buffers: 150.0M global + 7.6M per thread (100 max threads)
    [OK] Maximum possible memory usage: 912.5M (45% of installed RAM)
    [!!] Slow queries: 8% (1M/20M)
    [OK] Highest usage of available connections: 32% (32/100)
    [OK] Key buffer size / total MyISAM indexes: 64.0M/92.2M
    [OK] Key buffer hit rate: 99.7% (123M cached / 363K reads)
    [OK] Query cache efficiency: 59.7% (8M cached / 13M selects)
    [!!] Query cache prunes per day: 69532
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 1M sorts)
    [!!] Joins performed without indexes: 17009
    [!!] Temporary tables created on disk: 28% (43K on disk / 150K total)
    [OK] Thread cache hit rate: 99% (32 created / 1M connections)
    [!!] Table cache hit rate: 2% (3K open / 142K opened)
    [OK] Open file limit used: 8% (5K/65K)
    [OK] Table locks acquired immediately: 99% (10M immediate / 10M locks)
    [OK] InnoDB data size / buffer pool: 21.7M/32.0M
    
    -------- Recommendations -----------------------------------------------------
    General recommendations:
        Run OPTIMIZE TABLE to defragment tables for better performance
        Adjust your join queries to always utilize indexes
        When making adjustments, make tmp_table_size/max_heap_table_size equal
        Reduce your SELECT DISTINCT queries without LIMIT clauses
        Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
        query_cache_size (> 20M)
        join_buffer_size (> 2.0M, or always use indexes with joins)
        tmp_table_size (> 32M)
        max_heap_table_size (> 32M)
        table_cache (> 3084)
    Tuning-primer.sh
    Code: 
    MySQL Version 5.1.45-log x86_64
    
    Uptime = 4 days 14 hrs 4 min 18 sec
    Avg. qps = 51
    Total Questions = 20461827
    Threads Connected = 1
    
    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.1/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 = 2.000000 sec.
    You have 1675281 out of 20461856 that take longer than 2.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 = 384
    Current threads_cached = 30
    Current threads_per_sec = 0
    Historic threads_per_sec = 0
    Your thread_cache_size is fine
    
    MAX CONNECTIONS
    Current max_connections = 100
    Current threads_connected = 1
    Historic max_used_connections = 32
    The number of used connections is 32% of the configured maximum.
    Your max_connections variable seems to be fine.
    
    INNODB STATUS
    Current InnoDB index space = 6 M
    Current InnoDB data space = 21 M
    Current InnoDB buffer pool free = 24 %
    Current innodb_buffer_pool_size = 32 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 : 362 M
    Configured Max Per-thread Buffers : 762 M
    Configured Max Global Buffers : 118 M
    Configured Max Memory Limit : 880 M
    Physical Memory : 1.95 G
    Max memory limit seem to be within acceptable norms
    
    KEY BUFFER
    Current MyISAM index space = 92 M
    Current key_buffer_size = 64 M
    Key cache miss rate is 1 : 337
    Key buffer free ratio = 81 %
    Your key_buffer_size seems to be fine
    
    QUERY CACHE
    Query cache is enabled
    Current query_cache_size = 20 M
    Current query_cache_used = 13 M
    Current query_cache_limit = 4 M
    Current Query cache Memory fill ratio = 67.06 %
    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 = 4 M
    Current read_rnd_buffer_size = 512 K
    Sort buffer seems to be fine
    
    JOINS
    Current join_buffer_size = 2.00 M
    You have had 16944 queries where a join could not use an index properly
    You have had 79 joins without keys that check for key usage after each row
    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 = 65535 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 = 3084 tables
    Current table_definition_cache = 12336 tables
    You have a total of 4279 tables
    You have 3084 open tables.
    Current table_cache hit rate is 1%
    , while 100% of your table cache is in use
    You should probably increase your table_cache
    
    TEMP TABLES
    Current max_heap_table_size = 32 M
    Current tmp_table_size = 32 M
    Of 107143 temp tables, 28% 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 = 1 M
    Current table scan ratio = 22 : 1
    read_buffer_size seems to be fine
    
    TABLE LOCKING
    Current Lock Wait ratio = 1 : 26658
    Your table locking seems to be fine
    Any help with it there?

    I have the:
    Code: 
    log_slow_queries = /var/log/mysql/mysql-slow.log
    enabled, although no queries show up in that file..


    my.cnf
    Code: 
    [mysqld]
    back_log = 75
    max_connections = 100
    key_buffer = 64M
    myisam_sort_buffer_size = 64M
    join_buffer_size = 2M
    read_buffer_size = 1M
    sort_buffer_size = 4M
    table_cache = 6192
    thread_cache_size = 384
    wait_timeout = 106
    connect_timeout = 10
    tmp_table_size = 48M
    max_heap_table_size = 48M
    max_allowed_packet = 16M
    max_connect_errors = 1000
    read_rnd_buffer_size = 524288
    bulk_insert_buffer_size = 8M
    query_cache_limit = 4M
    query_cache_size = 20M
    query_cache_type = 1
    query_prealloc_size = 65536
    query_alloc_block_size = 131072
    local-infile=0
    table_cache = 3084
    table_definition_cache = 12336
    max_heap_table_size = 32M
    tmp_table_size = 32M
    thread_stack = 128K
    innodb_buffer_pool_size = 32M
    log_slow_queries = /var/log/mysql/mysql-slow.log
    long_query_time = 2
    log-queries-not-using-indexes
    open_files_limit = 64M
    concurrent_insert = 2
    default-storage-engine = MyISAM
    
    server-id = 1
    
    
    [mysqld_safe]
    nice = -5
    open_files_limit = 8192
    
    [mysqldump]
    quick
    max_allowed_packet = 16M
    
    [myisamchk]
    key_buffer = 64M
    sort_buffer = 64M
    read_buffer = 16M
    write_buffer = 16M
    Also Updated on the first post.

  5.     
    #24
    Respected Member
    But you are not saying if the changes are decreasing the lag>>????

  6.     
    #25
    Member
    Sorry about that, There hasn't been a significant change that I have seen. The load sometimes is stuck around 8 and sites start to lag. I looked into the cpu usage, although it showed me nothing unusual.

    I do see that mySQL uses up about 15% of the memory during those high loads. So I need to find a way getting mysql calm down.

  7.     
    #26
    Member
    Website's:
    fbi.gov
    Add me on MSN av0ided-@live.com, I'll help you.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 29th Sep 2011, 03:54 PM
  2. Public Rapidleech-Need help optimizing apache and php for performance of VPS
    By Enigmatic in forum Technical Help Desk Support
    Replies: 9
    Last Post: 29th Sep 2011, 03:40 PM
  3. Need help optimizing apache and php for performance of VPS for Public Rapidleech
    By Enigmatic in forum Web Application/Script Support
    Replies: 1
    Last Post: 29th Sep 2011, 02:27 PM
  4. Automatic reboot Apache and Mysql every x min, possible?
    By DoctorX in forum Server Management
    Replies: 10
    Last Post: 8th Jul 2011, 03:36 PM
  5. Optimizing MySQL (Linux with DirectAdmin)
    By Lease in forum Technical and Security Tutorials
    Replies: 0
    Last Post: 8th Jan 2008, 08:57 AM

Tags for this Thread

BE SOCIAL