Skocz do zawartości

Delmus

Użytkownicy
  • Zawartość

    7
  • Rejestracja

  • Ostatnio

Reputacja

0 Normalna

1 obserwujący

O Delmus

  • Ranga
    Nowy użytkownik
  1. Nie zrozumiałem co napisałeś do mnie w edit'cie, a oto co mysqltuner wykazał. root@ded8:~# ./mysqltuner.pl >> MySQLTuner 1.2.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. -------- General Statistics -------------------------------------------------- [--] Skipped version check for MySQLTuner script [OK] Currently running supported MySQL version 5.1.66-0+squeeze1-log [OK] Operating on 32-bit architecture with less than 2GB RAM -------- Storage Engine Statistics ------------------------------------------- [--] Status: +Archive -BDB -Federated -InnoDB -ISAM -NDBCluster [--] Data in MyISAM tables: 62M (Tables: 123) [!!] Total fragmented tables: 9 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 14d 8h 54m 9s (4M q [3.782 qps], 423K conn, TX: 18B, RX: 1B) [--] Reads / Writes: 64% / 36% [--] Total buffers: 101.0M global + 73.2M per thread (30 max threads) [!!] Allocating > 2GB RAM on 32-bit systems can cause system instability [!!] Maximum possible memory usage: 2.2G (224% of installed RAM) [OK] Slow queries: 0% (158/4M) [!!] Highest connection usage: 100% (31/30) [OK] Key buffer size / total MyISAM indexes: 16.0M/16.4M [OK] Key buffer hit rate: 100.0% (1B cached / 11K reads) [OK] Query cache efficiency: 53.7% (1M cached / 2M selects) [!!] Query cache prunes per day: 1815 [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 550K sorts) [!!] Joins performed without indexes: 6282 [!!] Temporary tables created on disk: 30% (147K on disk / 479K total) [OK] Thread cache hit rate: 99% (31 created / 423K connections) [OK] Table cache hit rate: 27% (279 open / 1K opened) [OK] Open file limit used: 8% (425/5K) [OK] Table locks acquired immediately: 99% (4M immediate / 4M locks) -------- Recommendations ----------------------------------------------------- General recommendations: Run OPTIMIZE TABLE to defragment tables for better performance Reduce or eliminate persistent connections to reduce connection usage 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 Variables to adjust: *** MySQL's maximum memory usage is dangerously high *** *** Add RAM before increasing MySQL buffer variables *** max_connections (> 30) wait_timeout (< 28800) interactive_timeout (< 28800) query_cache_size (> 35M) join_buffer_size (> 256.0K, or always use indexes with joins) tmp_table_size (> 190M) max_heap_table_size (> 50M)
  2. 1GB RAM, 2GHz procesor Co do mysqltuner, nie wiem czy dobrze zrobiłem, ale wziąłem kod ze strony, zapisałem jako plik na serwerze i chciałem uruchomić poleceniem bash i nie poszło: root@ded8:~# bash mysqltuner mysqltuner: line 37: use: command not found mysqltuner: line 38: use: command not found mysqltuner: line 39: use: command not found mysqltuner: line 40: use: command not found mysqltuner: line 41: use: command not found mysqltuner: line 44: my: command not found mysqltuner: line 45: syntax error near unexpected token `@adjvars,' mysqltuner: line 45: `my (@adjvars, @generalrec);'
  3. Witam, planowałem optymalizacje serwera baz danych od dłuższego czasu programem tuning-primer. Uptime serwera trwa ponad 14 dni, więc wyniki raczej powinny być rzetelne. Jednak nie chciałbym popełnić żadnej gafy przy zmianie wartości oraz przy ewentualnych innych rzeczach co radzi program, więc proszę o "rozszyfrowanie" co program przekazuje i zaproponowanie optymalnych wartości. -- MYSQL PERFORMANCE TUNING PRIMER -- - By: Matthew Montgomery - MySQL Version 5.1.66-0+squeeze1-log i486 Uptime = 14 days 4 hrs 11 min 14 sec Avg. qps = 3 Total Questions = 4608708 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 = 5.000000 sec. You have 154 out of 4608729 that take longer than 5.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 = 256 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 = 30 Current threads_connected = 1 Historic max_used_connections = 31 The number of used connections is 103% of the configured maximum. You should raise max_connections No InnoDB Support Enabled! MEMORY USAGE Max Memory Ever Allocated : 2.26 G Configured Max Per-thread Buffers : 2.14 G Configured Max Global Buffers : 51 M Configured Max Memory Limit : 2.19 G Physical Memory : 1.00 G Max memory limit exceeds 90% of physical memory KEY BUFFER Current MyISAM index space = 16 M Current key_buffer_size = 16 M Key cache miss rate is 1 : 150115 Key buffer free ratio = 10 % You could increase key_buffer_size It is safe to raise this up to 1/4 of total system memory; assuming this is a dedicated database server. QUERY CACHE Query cache is enabled Current query_cache_size = 35 M Current query_cache_used = 7 M Current query_cache_limit = 8 M Current Query cache Memory fill ratio = 20.83 % 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 = 64 M Current read_rnd_buffer_size = 768 K Sort buffer seems to be fine JOINS Current join_buffer_size = 260.00 K You have had 6231 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 = 5000 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 = 2000 tables Current table_definition_cache = 256 tables You have a total of 146 tables You have 279 open tables. The table_cache value seems to be fine TEMP TABLES Current max_heap_table_size = 50 M Current tmp_table_size = 190 M Of 325898 temp tables, 30% were created on disk Effective in-memory tmp_table_size is limited to max_heap_table_size. 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 = 8 M Current table scan ratio = 1134 : 1 read_buffer_size seems to be fine TABLE LOCKING Current Lock Wait ratio = 1 : 1853 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'.
  4. Problem z konfiguracją Bind9 i Vhost

    Chodziło Ci zapewno o DocumentRoot, zrobiłem jak poradziłeś i jest już wszystko jak chciałem. Bardzo Wam wszystkim dziękuję za pomoc. Zrobiłem jeszcze taką poprawkę w /etc/bind/classic-zone.pl i teraz wygląda on tak: $ORIGIN classic-zone.pl. $TTL 12h @ IN SOA ns1 dnsmaster 2013082604 12h 5m 10d 1h IN NS ns1 IN NS ns2 * IN A 185.25.148.152 Bo myślę, że jak przyjmuje wszystkie subdomeny, nawet te niepoprawne, to nie trzeba wymieniać tych dobrych. Vhost oceni, które gdzie pójdą i jak na razie to działa. Nie odbije się na mnie to jakoś źle zaraz?
  5. Problem z konfiguracją Bind9 i Vhost

    Bajer, subdomeny działają, z www. przed też . Tylko teraz gdy się wpisze IP VPS'a to otwiera katalog dla subdomeny amxbans.classic-zone.pl , również gdy się wpisze niepoprawną subdomenę np. trlala.classic-zone.pl to tak samo przekierowuje na katalog amxbans. Ja bym chciał by IP przekierowywał na katalog classic-zone.pl , a żeby dla błędnej subdomeny był inny katalog, gdzie już wstawię stronę z informacją o błędnej subdomenie i po kilku sekundach przekierowanie na classic-zone.pl, da się zrobić?
  6. Problem z konfiguracją Bind9 i Vhost

    Tak, wskazują: (Koniec z ukrywaniem domeny, bo niewygodnie ) NAZWA DOMENY: classic-zone.pl typ abonenta: osoba fizyczna serwery nazw: ns2.classic-zone.pl. [185.25.148.152] ns1.classic-zone.pl. [185.25.148.152] utworzona: 2012.03.06 20:48:03 ostatnia modyfikacja: 2013.08.25 05:31:05 koniec okresu rozliczeniowego: 2014.03.06 20:48:03 Jestem początkujący w tych sprawach, dlatego proszę w łatwy sposób tłumaczyć co mam robić, o to chodziło? Rozwiązań subdomen nie widzę :/ . root@ded8:~# dig ns1.classic-zone.pl ; <<>> DiG 9.7.3 <<>> ns1.classic-zone.pl ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2126 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ns1.classic-zone.pl. IN A ;; ANSWER SECTION: ns1.classic-zone.pl. 20900 IN A 185.25.148.152 ;; Query time: 23 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Mon Aug 26 16:41:33 2013 ;; MSG SIZE rcvd: 53 root@ded8:~# nslookup ns1.classic-zone.pl Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: ns1.classic-zone.pl Address: 185.25.148.152 Dodałem to co mmmm21 proponował i zrestartowałem apache2 i bind9, nic się raczej nie zmieniło. Za to o tym zapomniałem, a może być istotne: root@ded8:~# /etc/init.d/bind9 restart Stopping domain name service...: bind9rndc: neither /etc/bind/rndc.conf nor /etc/bind/rndc.key was found waiting for pid 1308 to die. Starting domain name service...: bind9. root@ded8:~# /etc/init.d/apache2 restart Restarting web server: apache2[Mon Aug 26 16:51:47 2013] [warn] NameVirtualHost *:80 has no VirtualHosts ... waiting [Mon Aug 26 16:51:49 2013] [warn] NameVirtualHost *:80 has no VirtualHosts .
  7. Witam Serdecznie, mam problem z prawidłowym skonfigurowaniem serwera DNS i Vhosta dla mojej domeny i subdomen, już wiele próbowałem i w najlepszej konfiguracji wszystko działało oprócz www.subX.mojadomena.pl , bez www. już działały. Proszę byście rzucili okiem na moje konfiguracje lub powiedzcie co chcecie jeszcze zobaczyć, aby pomóc mi w rozwiązaniu problemu. Posiłkowałem się głównie róznymi poradnikami przy konfiguracji VPS'a, ale nie spotkałem takiego co by rozwiązał teraz mój problem. /etc/bind/named.conf options { directory "/etc/bind"; allow-query-cache { none; }; allow-query { any; }; recursion no; version "najnowsza"; }; zone "mojadomena.pl" { type master; file "mojadomena.pl"; allow-transfer { none; }; }; /etc/bind/mojadomena.pl $ORIGIN mojadomena.pl. $TTL 12h @ IN SOA ns1 dnsmaster 2013082602 12h 5m 10d 1h IN NS ns1 IN NS ns2 IN A 185.25.148.xxx * IN A 185.25.148.xxx sklep IN A 185.25.148.xxx www.sklep IN A 185.25.148.xxx amxbans IN A 185.25.148.xxx www.amxbans IN A 185.25.148.xxx sygnatura IN A 185.25.148.xxx www.sygnatura IN A 185.25.148.xxx /etc/apache2/httpd.conf - pusty /etc/apache2/ports.conf # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default # This is also true if you have upgraded from before 2.2.9-3 (i.e. from # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and # README.Debian.gz NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to <VirtualHost *:443> # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> /etc/apache2/sites-available/mojadomena <VirtualHost *:80> ServerAdmin admin@mojadomena.pl DocumentRoot /home/delmus13/public_html/ ServerName mojadomena.pl ServerAlias www.mojadomena.pl ErrorLog /var/log/apache2/mojadomena.pl-error_log CustomLog /var/log/apache2/mojadomena.pl-access_log common </VirtualHost> /etc/apache2/sites-available/sklep.mojadomena <VirtualHost *> ServerAdmin admin@mojadomena.pl DocumentRoot /home/delmus13/public_html/sklep/ ServerName sklep.mojadomena.pl ServerAlias www.sklep.mojadomena.pl ErrorLog /var/log/apache2/sklep.mojadomena.pl-error_log CustomLog /var/log/apache2/sklep.mojadomena.pl-access_log common </VirtualHost> /etc/apache2/sites-available/default <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/delmus13/public_html <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/delmus13/public_html/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> I pliki z /etc/apache2/sites-available/ są podlinkowane tak, że znajdują się też w /etc/apache2/sites-enabled/ . Przy obecnej konfiguracji działa mojadomena.pl i www.mojadomena.pl poprawnie, ale każda z subdomen odpala zawartość katalogu przeznaczonego dla mojadomena.pl. Proszę o wsparcie. PS: Muszę się kryć z nazwą swojej domeny?
×