Hallo,
nach dem ich das System neu Aufsetzen musste hier mal meine neuen Daten, ist da noch etwas zum Optimieren dabei?
Würde gerne auch einen neuen schlanken Kernel Backen und mit grsec Patchen, habt Ihr Tipps was man an der Config auskommentieren sollte.
Beu Ubuntu hätte ich den Server Kernel und die Config genommen, aber gibt ja bei DB7 nicht.
Bin für jede Idee und Ratschläge Dankbar
ch45
Debian 7 | Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz / 4 Cores | 16 GB | 3.2.0-4-amd64
free -m
Code: Select all
total used free shared buffers cached
Mem: 15810 13822 1987 0 462 8579
-/+ buffers/cache: 4780 11030
Swap: 7623 2 7621
top
Code: Select all
top - 13:05:16 up 2 days, 16:39, 3 users, load average: 0,12, 0,25, 0,36
Tasks: 252 total, 1 running, 251 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3,7 us, 0,4 sy, 0,0 ni, 93,4 id, 2,4 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 16190080 total, 14195372 used, 1994708 free, 473700 buffers
KiB Swap: 7806904 total, 2180 used, 7804724 free, 8785464 cached
Apache2 + fcgid
Code: Select all
Server version: Apache/2.2.22 (Debian)
Server built: Jul 24 2014 15:34:03
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
Server version: Apache/2.2.22 (Debian)
Server built: Jul 24 2014 15:34:03
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
mime_module (shared)
negotiation_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Mysql: Mit der Config wie beim letzten, da hatte ich allerdings nur 8 GB RAM
mysql Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (x86_64) using readline 6.2
Mysqltuner + Primer
Code: Select all
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.5.40-0+wheezy1-log x86_64
Uptime = 2 days 1 hrs 10 min 25 sec
Avg. qps = 24
Total Questions = 4392181
Threads Connected = 4
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.5/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 = 0.500000 sec.
You have 9253 out of 4392202 that take longer than 0.500000 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.5/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 80
Current threads_cached = 44
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 150
Current threads_connected = 4
Historic max_used_connections = 48
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 = 16 M
Current InnoDB data space = 210 M
Current InnoDB buffer pool free = 94 %
Current innodb_buffer_pool_size = 4.00 G
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 : 4.72 G
Configured Max Per-thread Buffers : 684 M
Configured Max Global Buffers : 4.51 G
Configured Max Memory Limit : 5.18 G
Physical Memory : 15.44 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 93 M
Current key_buffer_size = 256 M
Key cache miss rate is 1 : 1811
Key buffer free ratio = 76 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 256 M
Current query_cache_used = 155 M
Current query_cache_limit = 4 M
Current Query cache Memory fill ratio = 60.54 %
Current query_cache_min_res_unit = 9 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 = 2.00 M
You have had 2 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 = 32768 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 = 8192 tables
Current table_definition_cache = 8192 tables
You have a total of 1313 tables
You have 2294 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 128 M
Current tmp_table_size = 128 M
Of 74190 temp tables, 37% 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 = 47 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 76768
Your table locking seems to be fine
>> MySQLTuner 1.4.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[OK] Logged in using credentials from debian maintenance account.
[OK] Currently running supported MySQL version 5.5.40-0+wheezy1-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 556M (Tables: 1004)
[--] Data in InnoDB tables: 210M (Tables: 257)
[--] Data in CSV tables: 0B (Tables: 2)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 248K (Tables: 9)
[!!] Total fragmented tables: 307
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 2d 1h 9m 22s (4M q [24.806 qps], 114K conn, TX: 28B, RX: 804M)
[--] Reads / Writes: 77% / 23%
[--] Total buffers: 4.6G global + 4.6M per thread (150 max threads)
[OK] Maximum possible memory usage: 5.3G (34% of installed RAM)
[OK] Slow queries: 0% (9K/4M)
[OK] Highest usage of available connections: 32% (48/150)
[OK] Key buffer size / total MyISAM indexes: 256.0M/93.4M
[OK] Key buffer hit rate: 99.9% (27M cached / 15K reads)
[OK] Query cache efficiency: 65.6% (2M cached / 3M selects)
[!!] Query cache prunes per day: 70276
[OK] Sorts requiring temporary tables: 0% (68 temp sorts / 173K sorts)
[!!] Temporary tables created on disk: 59% (43K on disk / 73K total)
[OK] Thread cache hit rate: 99% (48 created / 114K connections)
[OK] Table cache hit rate: 24% (2K open / 9K opened)
[OK] Open file limit used: 8% (2K/32K)
[OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)
[OK] InnoDB buffer pool / data size: 4.0G/210.8M
[OK] InnoDB log waits: 0
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Increasing the query_cache size over 128M may reduce performance
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
query_cache_size (> 256M) [see warning above]
tmp_table_size (> 128M)
max_heap_table_size (> 128M)