Grazie mille!
Benvenuto nella nostra community, registra un account gratuito ADESSO!
Oltre 7000 persone hanno già registrato il loro account.
Chiedi aiuto, conversa con aziende ed esperti del settore webhosting italiano.
Iscriviti subito! In meno di 2 minuti!
Grazie mille!
1) tipo di server:
dedicato
numero di siti ospitati sul server:
attualmente 4 tutti dinamici :blog FlatPress (database solo su files) su http://server.clans.it , joomla su www.samyweb.it , sito pesante http://www.damage-inc.it (joomla con virtuemart).
In esecuzione server teamspeak http://ts.clans.it con massimo una decina di persone collegate, rarissimamente più di 10.
In via di trasferimento un sito molto pesante (SMF, Coppermine e scripts hand-made su MySQL : http://daoc.clans.it)
2) Specifiche del server
Netdirekt - pagina del prodotto
PIII 733Mhz
256 MB
HD 10 GB
Linux Debian Sarge
apache2_2.0.54-5sarge1_i386
PHP 5.2.1-0.dotdeb.1 with Suhosin-Patch 0.9.6.2 (cli)
MySQL 5.0.32-Dotdeb_1.dotdeb.1-log
(mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i386) using readline 4.3)
3)niente InnoDB
4) installato tramite apt-get install mysql...
5) top"
6) Copiare il file di configurazione my.cnf (o my.ini) escludendo eventuali passwordCodice:top - 04:19:39 up 15 days, 22:18, 1 user, load average: 0.13, 0.08, 0.07 Tasks: 90 total, 1 running, 89 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% us, 0.3% sy, 0.0% ni, 99.0% id, 0.0% wa, 0.0% hi, 0.3% si Mem: 255380k total, 216796k used, 38584k free, 5452k buffers Swap: 2096472k total, 77404k used, 2019068k free, 64320k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 11260 samyweb8 16 0 14616 1936 5824 S 0.3 0.8 0:03.75 sshd 18589 root 16 0 2064 1068 1852 R 0.3 0.4 0:00.05 top 1 root 16 0 1504 460 1352 S 0.0 0.2 0:01.10 init 2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.13 ksoftirqd/0 4 root 5 -10 0 0 0 S 0.0 0.0 0:03.77 events/0 5 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 khelper 24 root 5 -10 0 0 0 S 0.0 0.0 0:03.96 kblockd/0 44 root 15 0 0 0 0 S 0.0 0.0 0:04.07 pdflush 47 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 46 root 15 0 0 0 0 S 0.0 0.0 0:21.48 kswapd0 183 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 312 root 15 0 0 0 0 S 0.0 0.0 0:29.18 kjournald 1039 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 2113 root 16 0 2260 788 2092 S 0.0 0.3 0:06.38 syslogd 2116 root 16 0 2384 504 1344 S 0.0 0.2 0:00.18 klogd 2151 amavis 16 0 36912 4220 5308 S 0.0 1.7 0:01.21 amavisd-new 2176 root 16 0 2512 1020 2380 S 0.0 0.4 0:00.03 mysqld_safe 2286 postgrey 18 0 10724 1964 5240 S 0.0 0.8 0:00.03 postgrey 2306 root 19 0 27808 2436 4952 S 0.0 1.0 0:01.21 spamd 2437 root 25 0 2476 620 2164 S 0.0 0.2 0:00.00 couriertcpd 2440 root 25 0 1544 240 1360 S 0.0 0.1 0:00.00 courierlogger 2458 root 17 0 2476 620 2164 S 0.0 0.2 0:00.00 couriertcpd 2460 root 17 0 1540 240 1360 S 0.0 0.1 0:00.00 courierlogger 2463 root 16 0 26340 740 2024 S 0.0 0.3 0:00.04 dccifd 2472 root 19 0 1496 376 1344 S 0.0 0.1 0:00.00 inetd 2474 root 16 0 27808 2436 4952 S 0.0 1.0 0:00.00 spamd 2475 root 16 0 27808 2436 4952 S 0.0 1.0 0:00.00 spamd 2476 root 19 0 27808 2436 4952 S 0.0 1.0 0:00.00 spamd 2477 root 19 0 27808 2436 4952 S 0.0 1.0 0:00.00 spamd 2480 root 19 0 27808 2436 4952 S 0.0 1.0 0:00.00 spamd 2611 root 16 0 3468 1004 3092 S 0.0 0.4 0:01.89 sshd 2623 nobody 16 0 5292 1320 4588 S 0.0 0.5 0:00.56 proftpd 2626 daemon 16 0 1684 556 1520 S 0.0 0.2 0:00.00 atd 2629 root 16 0 1764 772 1576 S 0.0 0.3 0:00.45 cron 2736 root 17 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 2739 root 16 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 2740 root 16 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 2741 root 16 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 2742 root 16 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 2743 root 16 0 1500 412 1336 S 0.0 0.2 0:00.00 getty 3547 teamspea 34 19 21492 2300 2972 S 0.0 0.9 0:04.51 server_linux 3548 teamspea 16 0 21492 2300 2972 S 0.0 0.9 0:02.64 server_linux 3549 teamspea 15 0 21492 2300 2972 S 0.0 0.9 6:09.03 server_linux 3550 teamspea 15 0 21492 2300 2972 S 0.0 0.9 27:48.67 server_linux 3551 teamspea 15 0 21492 2300 2972 S 0.0 0.9 20:54.67 server_linux 3555 teamspea 16 0 21492 2300 2972 S 0.0 0.9 0:00.01 server_linux 3556 teamspea 15 0 21492 2300 2972 S 0.0 0.9 0:00.25 server_linux 3557 teamspea 15 0 21492 2300 2972 S 0.0 0.9 0:01.61 server_linux 3558 teamspea 15 0 21492 2300 2972 S 0.0 0.9 8:27.95 server_linux 4503 mysql 16 0 49448 9408 9344 S 0.0 3.7 0:01.29 mysqld 4504 root 15 0 1488 436 1332 S 0.0 0.2 0:00.00 logger 24258 root 16 0 3888 1664 2888 S 0.0 0.7 0:00.78 sshblackv28.pl
http://server.clans.it/my.cnf.txt
7) mysqlreport --all -tab /statistics.txt
http://server.clans.it/stats.txt
8) che tipologia di siti ci sono sul server? vedi sopra
9) linkate una pagina phpinfo
http://server.clans.it/phpinfo.php
10) Scrivete i seguenti dati della vostra configurazione di apache:
11) find / -size +2000000kCodice:KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 20 MaxRequestsPerChild 0
12) Scrivete il risultato dei seguenti 3 comandi:Codice:find: /proc/12293/task/12293/fd/4: No such file or directory
uname -a
ulimit -aHCodice:Linux 89-149-209-205.internetserviceteam.com 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 GNU/Linux
cat /proc/cpuinfoCodice:core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited
/proc/meminfoCodice:processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 6 cpu MHz : 797.393 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1572.86
Codice:MemTotal: 255380 kB MemFree: 42480 kB Buffers: 31932 kB Cached: 23148 kB SwapCached: 9316 kB Active: 127012 kB Inactive: 33688 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 255380 kB LowFree: 42480 kB SwapTotal: 2096472 kB SwapFree: 2019088 kB Dirty: 68 kB Writeback: 0 kB Mapped: 121996 kB Slab: 46544 kB Committed_AS: 459532 kB PageTables: 1416 kB VmallocTotal: 770040 kB VmallocUsed: 4096 kB VmallocChunk: 765768 kB
Grazie![]()
allora my.cnf
apacheCodice:[client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld] old_passwords = false # inserted by debconf user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking skip-networking safe-show-database skip-bdb skip-innodb max_connections = 500 key_buffer = 16M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 1800 thread_cache_size = 256 wait_timeout = 120 connect_timeout = 10 tmp_table_size = 32M max_heap_table_size = 64M max_allowed_packet = 64M max_connect_errors = 10 read_rnd_buffer_size = 524288 bulk_insert_buffer_size = 8M query_cache_limit = 4M query_cache_size = 80M query_cache_type = 1 query_prealloc_size = 163840 query_alloc_block_size = 32768 log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M [isamchk] key_buffer = 64M [mysqlhotcopy] interactive-timeout
Codice:KeepAlive - On MaxKeepAliveRequests - 100 KeepAliveTimeout - 5 MinSpareServers - 10 MaxSpareServers - 20 StartServers - 10 MaxClients - 256 Maxrequestsperchild value = 1000
ti consiglio fortemente di installare anche Zend Optimizer+eaccelerator (quest'ultimo NON come zend_extension)
Ok, davvero troppo gentile!
Stasera mi metto al lavoro, speriamo bene ^__^
1) vps
2)4) precompilatoCodice:Processori: 1 Modello: Intel(R) Pentium(R) 4 CPU 3.00GHz MHz del Chip: 3 GHz Dimensione Cache: 2.00 MB Bogomips del Sistema: 5963.77 Ram: 376mb OS: Debian 3.1 MySQL: 4.1.10 Apache: 1.3.37
5)6)Codice:top - 15:11:05 up 1 day, 16:43, 1 user, load average: 0.30, 0.41, 0.43 Tasks: 104 total, 2 running, 102 sleeping, 0 stopped, 0 zombie Cpu(s): 21.0% us, 1.0% sy, 0.0% ni, 78.0% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 385224k total, 369800k used, 15424k free, 11480k buffers Swap: 1049592k total, 0k used, 1049592k free, 120688k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19124 apache 15 0 21600 16m 8860 S 13.7 4.4 0:56.79 httpd 19169 apache 16 0 21844 16m 8860 S 4.3 4.4 0:57.93 httpd 19119 apache 15 0 21692 16m 8916 S 1.7 4.4 0:55.82 httpd 19138 apache 15 0 21536 16m 8876 S 1.7 4.4 0:55.81 httpd 12962 mysql 15 0 70012 55m 1960 S 0.3 14.8 0:19.74 mysqld 12963 mysql 16 0 70012 55m 1960 S 0.3 14.8 1:18.33 mysqld 1 root 16 0 1584 512 452 S 0.0 0.1 0:05.37 init 2 root 34 19 0 0 0 S 0.0 0.0 0:01.02 ksoftirqd/0 3 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/0 4 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 12 root 10 -5 0 0 0 S 0.0 0.0 0:00.38 kblockd/0 52 root 15 0 0 0 0 S 0.0 0.0 0:00.18 pdflush 55 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 54 root 15 0 0 0 0 S 0.0 0.0 0:00.75 kswapd0 56 root 25 0 0 0 0 S 0.0 0.0 0:00.00 jfsIO 57 root 25 0 0 0 0 S 0.0 0.0 0:00.00 jfsCommit 58 root 25 0 0 0 0 S 0.0 0.0 0:00.00 jfsSync 59 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 xfslogd/0 60 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 xfsdatad/0 61 root 15 0 0 0 0 S 0.0 0.0 0:00.00 xfsbufd 107 root 15 0 0 0 0 S 0.0 0.0 0:01.89 kjournald 232 root 0 -20 0 0 0 S 0.0 0.0 0:00.02 loop0 358 root 16 0 1628 592 496 S 0.0 0.2 0:00.42 syslogd 361 root 15 0 1584 472 408 S 0.0 0.1 0:00.01 klogd 368 bind 18 0 30696 3040 2092 S 0.0 0.8 0:16.23 named 374 root 16 0 2784 1004 900 S 0.0 0.3 0:00.02 da-popb4smtp 420 root 20 0 2576 1228 1016 S 0.0 0.3 0:00.01 mysqld_safe 470 mysql 15 0 70012 55m 1960 S 0.0 14.8 0:04.61 mysqld 473 root 16 0 3544 1504 1264 S 0.0 0.4 0:00.46 sshd 513 root 16 0 1952 612 532 S 0.0 0.2 0:00.12 vm-pop3d 532 root 18 0 2240 832 712 S 0.0 0.2 0:00.00 xinetd 534 daemon 16 0 1764 628 548 S 0.0 0.2 0:00.00 atd 539 root 16 0 1820 824 680 S 0.0 0.2 0:00.10 cron 545 root 17 0 1580 484 424 S 0.0 0.1 0:00.00 getty 546 root 16 0 1580 484 424 S 0.0 0.1 0:00.00 getty 547 root 16 0 1580 484 424 S 0.0 0.1 0:00.00 getty 548 root 17 0 1580 484 424 S 0.0 0.1 0:00.01 getty7)Codice:[mysqld] skip-locking skip-innodb query_cache_limit=1M query_cache_size=32M query_cache_type=1 max_connections=500 interactive_timeout=100 wait_timeout=100 connect_timeout=10 thread_cache_size=128 key_buffer=16M join_buffer=1M max_allowed_packet=16M table_cache=1024 record_buffer=1M sort_buffer_size=2M read_buffer_size=2M max_connect_errors=10 # Prova numero di CPU's*2 per thread_concurrency thread_concurrency=2 myisam_sort_buffer_size=64M server-id=1 [safe_mysqld] err-log=/var/log/mysqld.log open_files_limit=8192 [mysqldump] quick max_allowed_packet=16M [mysql] no-auto-rehash #safe-updates [isamchk] key_buffer=64M sort_buffer=64M read_buffer=16M write_buffer=16M [myisamchk] key_buffer=64M sort_buffer=64M read_buffer=16M write_buffer=16M [mysqlhotcopy] interactive-timeout8) 1 sito con tantissimi forum phpbb 2Codice:+---------------------------------+--------------------------------------------------------------------------+ | Variable_name | Value | +---------------------------------+--------------------------------------------------------------------------+ | back_log | 50 | | basedir | /usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/ | | binlog_cache_size | 32768 | | bulk_insert_buffer_size | 8388608 | | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/share/mysql/charsets/ | | collation_connection | latin1_swedish_ci | | collation_database | latin1_swedish_ci | | collation_server | latin1_swedish_ci | | concurrent_insert | ON | | connect_timeout | 10 | | datadir | /usr/local/mysql/data/ | | date_format | %Y-%m-%d | | datetime_format | %Y-%m-%d %H:%i:%s | | default_week_format | 0 | | delay_key_write | ON | | delayed_insert_limit | 100 | | delayed_insert_timeout | 300 | | delayed_queue_size | 1000 | | expire_logs_days | 0 | | flush | OFF | | flush_time | 0 | | ft_boolean_syntax | + -><()~*:""&| | | ft_max_word_len | 84 | | ft_min_word_len | 4 | | ft_query_expansion_limit | 20 | | ft_stopword_file | (built-in) | | group_concat_max_len | 1024 | | have_archive | YES | | have_bdb | NO | | have_compress | YES | | have_crypt | YES | | have_csv | NO | | have_example_engine | NO | | have_geometry | YES | | have_innodb | DISABLED | | have_isam | NO | | have_ndbcluster | NO | | have_openssl | NO | | have_query_cache | YES | | have_raid | NO | | have_rtree_keys | YES | | have_symlink | YES | | init_connect | | | init_file | | | init_slave | | | innodb_additional_mem_pool_size | 1048576 | | innodb_autoextend_increment | 8 | | innodb_buffer_pool_awe_mem_mb | 0 | | innodb_buffer_pool_size | 8388608 | | innodb_data_file_path | | | innodb_data_home_dir | | | innodb_fast_shutdown | ON | | innodb_file_io_threads | 4 | | innodb_file_per_table | OFF | | innodb_flush_log_at_trx_commit | 1 | | innodb_flush_method | | | innodb_force_recovery | 0 | | innodb_lock_wait_timeout | 50 | | innodb_locks_unsafe_for_binlog | OFF | | innodb_log_arch_dir | | | innodb_log_archive | OFF | | innodb_log_buffer_size | 1048576 | | innodb_log_file_size | 5242880 | | innodb_log_files_in_group | 2 | | innodb_log_group_home_dir | | | innodb_max_dirty_pages_pct | 90 | | innodb_max_purge_lag | 0 | | innodb_mirrored_log_groups | 1 | | innodb_open_files | 300 | | innodb_table_locks | ON | | innodb_thread_concurrency | 8 | | interactive_timeout | 100 | | join_buffer_size | 1044480 | | key_buffer_size | 16777216 | | key_cache_age_threshold | 300 | | key_cache_block_size | 1024 | | key_cache_division_limit | 100 | | language | /usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/share/mysql/english/ | | large_files_support | ON | | license | GPL | | local_infile | ON | | locked_in_memory | OFF | | log | OFF | | log_bin | OFF | | log_error | | | log_slave_updates | OFF | | log_slow_queries | OFF | | log_update | OFF | | log_warnings | 1 | | long_query_time | 10 | | low_priority_updates | OFF | | lower_case_file_system | OFF | | lower_case_table_names | 0 | | max_allowed_packet | 16776192 | | max_binlog_cache_size | 4294967295 | | max_binlog_size | 1073741824 | | max_connect_errors | 10 | | max_connections | 500 | | max_delayed_threads | 20 | | max_error_count | 64 | | max_heap_table_size | 16777216 | | max_insert_delayed_threads | 20 | | max_join_size | 4294967295 | | max_length_for_sort_data | 1024 | | max_relay_log_size | 0 | | max_seeks_for_key | 4294967295 | | max_sort_length | 1024 | | max_tmp_tables | 32 | | max_user_connections | 0 | | max_write_lock_count | 4294967295 | | myisam_data_pointer_size | 4 | | myisam_max_extra_sort_file_size | 2147483648 | | myisam_max_sort_file_size | 2147483647 | | myisam_recover_options | OFF | | myisam_repair_threads | 1 | | myisam_sort_buffer_size | 67108864 | | net_buffer_length | 16384 | | net_read_timeout | 30 | | net_retry_count | 10 | | net_write_timeout | 60 | | new | OFF | | old_passwords | OFF | | open_files_limit | 2558 | | pid_file | /usr/local/mysql/data/s1.pid | | port | 3306 | | preload_buffer_size | 32768 | | protocol_version | 10 | | query_alloc_block_size | 8192 | | query_cache_limit | 1048576 | | query_cache_min_res_unit | 4096 | | query_cache_size | 33554432 | | query_cache_type | ON | | query_cache_wlock_invalidate | OFF | | query_prealloc_size | 8192 | | range_alloc_block_size | 2048 | | read_buffer_size | 2093056 | | read_only | OFF | | read_rnd_buffer_size | 262144 | | relay_log_purge | ON | | rpl_recovery_rank | 0 | | secure_auth | OFF | | server_id | 1 | | skip_external_locking | ON | | skip_networking | OFF | | skip_show_database | OFF | | slave_net_timeout | 3600 | | slow_launch_time | 2 | | socket | /tmp/mysql.sock | | sort_buffer_size | 2097144 | | sql_mode | | | storage_engine | MyISAM | | sync_binlog | 0 | | sync_replication | 0 | | sync_replication_slave_id | 0 | | sync_replication_timeout | 0 | | sync_frm | ON | | system_time_zone | CDT | | table_cache | 1024 | | table_type | MyISAM | | thread_cache_size | 128 | | thread_stack | 126976 | | time_format | %H:%i:%s | | time_zone | SYSTEM | | tmp_table_size | 33554432 | | tmpdir | | | transaction_alloc_block_size | 8192 | | transaction_prealloc_size | 4096 | | tx_isolation | REPEATABLE-READ | | version | 4.1.10-standard | | version_comment | MySQL Community Edition - Standard (GPL) | | version_compile_machine | i686 | | version_compile_os | pc-linux-gnu | | wait_timeout | 100 | +---------------------------------+--------------------------------------------------------------------------+ +--------------------------+------------+ | Variable_name | Value | +--------------------------+------------+ | Aborted_clients | 52 | | Aborted_connects | 4 | | Binlog_cache_disk_use | 0 | | Binlog_cache_use | 0 | | Bytes_received | 202029642 | | Bytes_sent | 4014585790 | | Com_admin_commands | 0 | | Com_alter_db | 0 | | Com_alter_table | 4679 | | Com_analyze | 0 | | Com_backup_table | 0 | | Com_begin | 826 | | Com_change_db | 68296 | | Com_change_master | 0 | | Com_check | 0 | | Com_checksum | 0 | | Com_commit | 825 | | Com_create_db | 2 | | Com_create_function | 0 | | Com_create_index | 0 | | Com_create_table | 2401 | | Com_dealloc_sql | 0 | | Com_delete | 5940 | | Com_delete_multi | 0 | | Com_do | 0 | | Com_drop_db | 0 | | Com_drop_function | 0 | | Com_drop_index | 0 | | Com_drop_table | 2341 | | Com_drop_user | 0 | | Com_execute_sql | 0 | | Com_flush | 2 | | Com_grant | 4 | | Com_ha_close | 0 | | Com_ha_open | 0 | | Com_ha_read | 0 | | Com_help | 0 | | Com_insert | 22218 | | Com_insert_select | 832 | | Com_kill | 0 | | Com_load | 0 | | Com_load_master_data | 0 | | Com_load_master_table | 0 | | Com_lock_tables | 2342 | | Com_optimize | 0 | | Com_preload_keys | 0 | | Com_prepare_sql | 0 | | Com_purge | 0 | | Com_purge_before_date | 0 | | Com_rename_table | 0 | | Com_repair | 2398 | | Com_replace | 0 | | Com_replace_select | 0 | | Com_reset | 0 | | Com_restore_table | 0 | | Com_revoke | 0 | | Com_revoke_all | 0 | | Com_rollback | 1 | | Com_savepoint | 0 | | Com_select | 143374 | | Com_set_option | 444 | | Com_show_binlog_events | 0 | | Com_show_binlogs | 5 | | Com_show_charsets | 44 | | Com_show_collations | 44 | | Com_show_column_types | 0 | | Com_show_create_db | 0 | | Com_show_create_table | 220 | | Com_show_databases | 80 | | Com_show_errors | 0 | | Com_show_fields | 231 | | Com_show_grants | 17 | | Com_show_innodb_status | 0 | | Com_show_keys | 10 | | Com_show_logs | 0 | | Com_show_master_status | 0 | | Com_show_new_master | 0 | | Com_show_open_tables | 0 | | Com_show_privileges | 0 | | Com_show_processlist | 0 | | Com_show_slave_hosts | 0 | | Com_show_slave_status | 0 | | Com_show_status | 7 | | Com_show_storage_engines | 1 | | Com_show_tables | 326 | | Com_show_variables | 105 | | Com_show_warnings | 0 | | Com_slave_start | 0 | | Com_slave_stop | 0 | | Com_truncate | 1 | | Com_unlock_tables | 2342 | | Com_update | 62310 | | Com_update_multi | 0 | | Connections | 64598 | | Created_tmp_disk_tables | 2438 | | Created_tmp_files | 5 | | Created_tmp_tables | 26478 | | Delayed_errors | 0 | | Delayed_insert_threads | 0 | | Delayed_writes | 0 | | Flush_commands | 1 | | Handler_commit | 0 | | Handler_delete | 20294 | | Handler_discover | 0 | | Handler_read_first | 8541 | | Handler_read_key | 51335766 | | Handler_read_next | 61010582 | | Handler_read_prev | 20 | | Handler_read_rnd | 775153 | | Handler_read_rnd_next | 65061757 | | Handler_rollback | 0 | | Handler_update | 41181800 | | Handler_write | 3749020 | | Key_blocks_not_flushed | 0 | | Key_blocks_unused | 0 | | Key_blocks_used | 14497 | | Key_read_requests | 34064396 | | Key_reads | 147794 | | Key_write_requests | 1569961 | | Key_writes | 137633 | | Max_used_connections | 29 | | Not_flushed_delayed_rows | 0 | | Open_files | 1826 | | Open_streams | 0 | | Open_tables | 964 | | Opened_tables | 19671 | | Qcache_free_blocks | 2907 | | Qcache_free_memory | 16550752 | | Qcache_hits | 360879 | | Qcache_inserts | 142840 | | Qcache_lowmem_prunes | 0 | | Qcache_not_cached | 338 | | Qcache_queries_in_cache | 10907 | | Qcache_total_blocks | 26787 | | Questions | 748112 | | Rpl_status | NULL | | Select_full_join | 2817 | | Select_full_range_join | 0 | | Select_range | 8000 | | Select_range_check | 0 | | Select_scan | 55411 | | Slave_open_temp_tables | 0 | | Slave_running | OFF | | Slow_launch_threads | 19 | | Slow_queries | 4 | | Sort_merge_passes | 0 | | Sort_range | 20981 | | Sort_rows | 16544435 | | Sort_scan | 32047 | | Table_locks_immediate | 404972 | | Table_locks_waited | 75 | | Threads_cached | 28 | | Threads_connected | 1 | | Threads_created | 29 | | Threads_running | 1 | | Uptime | 150513 | +--------------------------+------------+ Uptime: 150513 Threads: 1 Questions: 748113 Slow queries: 4 Opens: 19671 Flush tables: 1 Open tables: 964 Queries per second avg: 8.970 mysqladmin Ver 8.41 Distrib 4.1.10, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 4.1.10-standard Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 1 day 17 hours 48 min 33 sec Threads: 1 Questions: 748113 Slow queries: 4 Opens: 19671 Flush tables: 1 Open tables: 964 Queries per second avg: 8.970
10)11) find: /proc/20114/task/20114/fd/4: No such file or directoryCodice:Timeout 300 KeepAlive On MaxKeepAliveRequests 500 KeepAliveTimeout 5 MinSpareServers 5 MaxSpareServers 20 StartServers 8 MaxClients 450 MaxRequestsPerChild 1000
12)Codice:Linux vps.miosito.com 2.6.11-VPS-cube2 #1 Sat Dec 17 07:06:47 CST 2005 i686 GNU/LinuxCodice:core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited
Grazie in anticipoCodice:processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 3 cpu MHz : 3000.239 cache size : 2048 KB fdiv_bug : no hlt_bug : yes f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est cid cx16 xtpr bogomips : 5963.77![]()
piccola precisazione per dare un aiuto più preciso.
Il processore in realtà è un xeon DP, cosa che se messa in "monoprocessore" xen 2.x vede come pentium IV (la frequenza la vee giusta).
Con xen 3.x invece ho notato che vede correttamente la diceria xeon.
Quindi per consigliare la configurazione fate riferimento per quel tipo di processore e non per un pIV (anche se quei xeon sono dei semplici pIV modificati).
SeFlow.it - http://www.seflow.it - Server Dedicati a partire da € 29 +iva - Server Virtuali a partire da € 9 +iva
Il miglior sito italiano su winning eleven e pro evolution soccer
Ubuntu è una antica parola africana che significa: "Non so installare Debian"
il file my.cnf
apacheCodice:[client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld] old_passwords = false # inserted by debconf user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking skip-networking safe-show-database skip-bdb skip-innodb max_connections = 1500 key_buffer = 16M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 1800 thread_cache_size = 256 wait_timeout = 120 connect_timeout = 10 tmp_table_size = 32M max_heap_table_size = 64M max_allowed_packet = 64M max_connect_errors = 10 read_rnd_buffer_size = 524288 bulk_insert_buffer_size = 8M query_cache_limit = 4M query_cache_size = 80M query_cache_type = 1 query_prealloc_size = 163840 query_alloc_block_size = 32768 log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 32M write_buffer = 32M [isamchk] key_buffer = 64M [mysqlhotcopy] interactive-timeout
consiglio anche a te di installare Zend Optimizer+eaccelerator (NON come zend_extension)Codice:KeepAlive - On MaxKeepAliveRequests - 100 KeepAliveTimeout - 5 MinSpareServers - 10 MaxSpareServers - 20 StartServers - 10 MaxClients - 512 Maxrequestsperchild value = 1000
Il miglior sito italiano su winning eleven e pro evolution soccer
Ubuntu è una antica parola africana che significa: "Non so installare Debian"
1) tipo di server: dedicato, vps, shared hosting e numero di siti ospitati sul server
2) Specifiche del serverVPS virsys.biz
3) Se si usa mysql > 4.* specificare se sono presenti database o tabelle che usano InnoDBvelocità cpu / singolo o multiprocessore: Athlon 64 (macchina ospistante, 10 vps)
Ram: >1 gb (macchina ospitante, 10 vps)
Tipo HD/configurazione: 10 gb
Sistema Operativo: FreeBSD
apache/IIS version: Apache20
PHP version: 5.20
MySQL version: 5.0
4) Come è stato installato Mysql? (compilato a mano o precompilato)eh?
5) eseguire "top" e scrivere il risultato[/quote]last pid: 85640; load averages: 0.20, 0.22,Ports, quindi praticamente compilato a mano
6) Copiare il file di configurazione my.cnf (o my.ini) escludendo eventuali password0.23 up 10+23:01:08 11:31:29
23 processes: 1 running, 22 sleeping
CPU states: 35.6% user, 0.0% nice, 10.5% system, 0.4% interrupt, 53.6% idle
Mem: 417M Active, 272M Inact, 202M Wired, 40M Cache, 105M Buf, 1572K Free
Swap: 1024M Total, 2156K Used, 1022M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
28980 mysql 5 20 0 55164K 23980K kserel 1:12 0.00% mysqld
86262 root 1 96 0 18316K 9168K select 0:09 0.00% httpd
52934 root 1 96 0 1588K 772K select 0:01 0.00% dropbear
86031 www 1 4 0 18388K 9788K accept 0:01 0.00% httpd
86001 www 1 4 0 18388K 9792K accept 0:01 0.00% httpd
86030 www 1 4 0 18388K 9804K accept 0:01 0.00% httpd
86033 www 1 4 0 18388K 9804K accept 0:01 0.00% httpd
86000 www 1 4 0 18388K 9764K accept 0:01 0.00% httpd
86032 www 1 4 0 18388K 9768K accept 0:01 0.00% httpd
85999 www 1 4 0 18388K 9760K accept 0:00 0.00% httpd
86002 www 1 4 0 18388K 9748K accept 0:00 0.00% httpd
83587 root 1 96 0 1704K 1084K select 0:00 0.00% dropbear
83690 root 1 96 0 1704K 1116K select 0:00 0.00% dropbear
85998 www 1 4 0 18316K 9516K accept 0:00 0.00% httpd
86372 root 1 96 0 3268K 1620K select 0:00 0.00% pure-ftpd
83689 root 1 96 0 3184K 1600K select 0:00 0.00% sftp-server
85560 root 1 96 0 2252K 1300K RUN 0:00 0.00% top
83739 root 1 8 0 3204K 1664K wait 0:00 0.00% bash
28960 mysql 1 8 0 1728K 1048K wait 0:00 0.00% sh
7) il risultato di questo :non c'è... si crea per eventuali modifiche
mysqlreport --all -tab /statistics.txt
entrare ssh e copiare il file statistics.txt
o alternativamente di:
mysqladmin -u root -p var ext stat ver
8) che tipologia di siti ci sono sul server?c'è qualche problema...
9) linkate ad una pagina di phpinfoper ora solo phpmyadmin
10) Scrivete i seguenti dati della vostra configurazione di apache:devo settare il php.ini, appena lo faccio vi do il link
stessa cosa che per sopraKeepAlive
MaxKeepAliveRequests
KeepAliveTimeout
MinSpareServers
MaxSpareServers
StartServers
MaxClients
Maxrequestsperchild
11) verificate cosa ritorna questo comando:
find / -size +2000000k
12) Scrivete il risultato dei seguenti 3 comandi:è stato lì 10 minuti ma non ha reso niente
uname -a: FreeBSD host 6.2-RC2 FreeBSD 6.2-RC2 #0: Sun Dec 24 23:17:34 UTC 2006 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386ulimit -aH: core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 524288
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 11095
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65536
cpu time (seconds, -t) unlimited
max user processes (-u) 5547
virtual memory (kbytes, -v) unlimitedcat /proc/cpuinfo: No such file or directory [traducetemelo per freebsd]
senza mezzo dato non posso inventarmi la conf![]()
Il miglior sito italiano su winning eleven e pro evolution soccer
Ubuntu è una antica parola africana che significa: "Non so installare Debian"
si, te la passo appena finisco...
Ciao,
Grazie per questo servizio! Sto impazzendo per capire perché mail il mio VPS Aruba da qualche giorno dia problemi di overload sulla CPU. Magari il nostro "guru" saprà indicarmi la ricetta magica?
1) tipo di server:
VPS Aruba Pro. 6 siti attualmente ospitati
2) Descrizione del servizio su http://serverdedicati.aruba.it/virtu...eristiche.aspx
apache 2.0.5.2
PHP 4.3.9
MySQL 4.1.20
3) Nessuna tabella usa InnoDB
4) Mysql
Precompilato, credo. L'ho trovato già installato
5)
6) my.cnfCodice:[root@62 ~]# top top - 00:56:36 up 1:00, 0 users, load average: 5.88, 5.38, 3.75 Tasks: 50 total, 2 running, 48 sleeping, 0 stopped, 0 zombie Cpu(s): 72.1% us, 27.9% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 8149360k total, 8129408k used, 19952k free, 463192k buffers Swap: 16779884k total, 86184k used, 16693700k free, 3652076k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5721 mysql 16 0 111m 21m 4664 S 99.9 0.3 126:16.15 mysqld 25879 apache 16 0 43844 26m 4888 S 1.0 0.3 0:15.13 httpd 17449 apache 16 0 42696 25m 4116 S 0.7 0.3 0:07.80 httpd 23907 apache 16 0 31860 14m 3596 S 0.7 0.2 0:02.36 httpd 9869 apache 16 0 43436 26m 4620 S 0.3 0.3 0:34.35 httpd 25787 apache 16 0 43500 26m 4812 S 0.3 0.3 0:16.40 httpd 1 root 16 0 1620 604 520 S 0.0 0.0 0:00.00 init 5583 root 16 0 1524 540 456 S 0.0 0.0 0:00.02 syslogd 5597 named 20 0 37116 2484 1712 S 0.0 0.0 0:00.01 named 5609 root 16 0 4004 1132 836 S 0.0 0.0 0:00.03 sshd 5619 root 20 0 2072 796 668 S 0.0 0.0 0:00.00 xinetd 5688 root 18 0 2144 1132 972 S 0.0 0.0 0:00.00 mysqld_safe 5784 postgres 16 0 16728 2128 1764 S 0.0 0.0 0:00.00 postmaster 5786 postgres 18 0 7528 836 468 S 0.0 0.0 0:00.00 postmaster 5787 postgres 18 0 6536 976 572 S 0.0 0.0 0:00.00 postmaster 5898 root 16 0 3484 816 612 S 0.0 0.0 0:00.00 couriertcpd 5900 root 16 0 3384 948 756 S 0.0 0.0 0:00.00 courierlogger
7) questo comando non passa.Codice:[mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 skip-bdb set-variable = innodb_thread_concurrency=2 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid skip-bdb set-variable = innodb_thread_concurrency=2
8) che tipologia di siti ci sono sul server?
Joomla
9) linkate una pagina phpinfo
10) Scrivete i seguenti dati della vostra configurazione di apache:Codice:PHP_VERSION 4.3.9 HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_LANGUAGE it,en;q=0.5 HTTP_XXXXXXXXXXXXXXX XXXXXXXXXXXX HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_KEEP_ALIVE 300 HTTP_CONNECTION keep-alive REQUEST_METHOD GET REQUEST_URI /test/php/test.php?1176763995687
KeepAlive off
12)
Codice:[root@62 ~]# uname -a Linux 62.149.XXX.XXX 2.6.9-023stab033.9-smp #1 SMP Tue Dec 5 14:24:39 MSK 2006 i686 i686 i386 GNU/Linux [root@62 ~]# ulimit -aH core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 69632 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [root@62 ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.80GHz stepping : 3 cpu MHz : 3790.889 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7586.35 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.80GHz stepping : 3 cpu MHz : 3790.889 cache size : 2048 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7581.54 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.80GHz stepping : 3 cpu MHz : 3790.889 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7581.55 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.80GHz stepping : 3 cpu MHz : 3790.889 cache size : 2048 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7581.57 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management:
Grazie alex ma il config per il database(come immaginavo visto che è uguale agli altri che hai incollato) non funziona... quando lo inserisco e riavvio il db non riparte quindi ho dovuto mettere quello originario. Uso debian 3.1 eh.
Mentre per apache non da problemi, speriamo che sia servito aumentare i valori che dici![]()
@andreavanni: mi servono più dati sulla conf di apache non solo quella
@koala: quale conf dici? non vedo tue richieste di configurazione ...
Il miglior sito italiano su winning eleven e pro evolution soccer
Ubuntu è una antica parola africana che significa: "Non so installare Debian"
Ci sono attualmente 1 utenti che stanno visualizzando questa discussione. (0 utenti e 1 ospiti)
Segnalibri