• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mysql problem

Duxi

Member
Joined
Aug 31, 2010
Messages
218
Reaction score
5
Witam.
Mam taki problem. Używam Ubuntu 10.10.
Gdy silnik jest włączony i gra kilka osób to strona ledwo działa (wczytuje się kilka minut)
Jednak gdy wyłączę silnik strona działa normalnie.
Moja konfiguracja mysql:
Code:
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
max_connections        = 150
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 3M
query_cache_size        = 36M
#


[...]

[mysqldump]
quick
quote-names
max_allowed_packet      = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer              = 16M


[...]


# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id              = 1
#log_bin                        = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#

Co zmienić w ustawieniach mysql ?
 
To VPS-sik nie podali nazwy procka. 100% Czasu procesora i tyle ;/

+mysqltuner

PHP:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.49-1ubuntu8.1
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM

-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 53K (Tables: 12)
[--] Data in InnoDB tables: 624K (Tables: 32)
[!!] Total fragmented tables: 32

-------- Performance Metrics -------------------------------------------------
[--] Up for: 30m 36s (73K q [39.843 qps], 7K conn, TX: 70M, RX: 4M)
[--] Reads / Writes: 42% / 58%
[--] Total buffers: 78.0M global + 2.7M per thread (150 max threads)
[OK] Maximum possible memory usage: 481.1M (15% of installed RAM)
[OK] Slow queries: 0% (0/73K)
[OK] Highest usage of available connections: 3% (5/150)
[OK] Key buffer size / total MyISAM indexes: 16.0M/103.0K
[OK] Query cache efficiency: 91.5% (42K cached / 46K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 92 sorts)
[OK] Temporary tables created on disk: 22% (140 on disk / 631 total)
[OK] Thread cache hit rate: 99% (5 created / 7K connections)
[!!] Table cache hit rate: 4% (64 open / 1K opened)
[OK] Open file limit used: 6% (64/1K)
[OK] Table locks acquired immediately: 100% (9K immediate / 9K locks)
[OK] InnoDB data size / buffer pool: 624.0K/8.0M

-------- Recommendations -----------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    MySQL started within last 24 hours - recommendations may be inaccurate
    Enable the slow query log to troubleshoot bad queries
    Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
    table_cache (> 64)
 
Pokaż screena z 'top' podczas gdy działa OTS i www.

beztytuuirn.png
 
Back
Top Bottom