PDA

View Full Version : Last chance. need help with cfg.


ImportPassion.com
Mon 17th May '04, 11:46pm
I have paid ppl to tune this and I still no where. My load hit 53 tonite!
I get page cannot be displayed errors and slowness
I am out of solutions, but there has to be something wrong.
I was getting that link id error from mysql, so i followed the tip in here somwhere about chaging the max requests for apache.

1. dedicated
2. your server specs. For example:

cpu speed/type single or dual cpus): dual p4 xeon 2.4ghz
how much memory installed: 2gb ram
hard drive type/configuration: 2x73gb scsi non raid
linux distributor or windows version: redhat ent 3
apache version: apache 1.3.29
PHP version: php 4.3.4
MySQL version: mysql 4.018

3. if you use mysql 4.x instead of mysql 3.23.x, do you have any innodb type databases/tables on your server ?
no

4. if possible how mysql was compiled/installed
not sure, but i have cpanel

5. your top stats

22:28:44 up 8 days, 4:04, 1 user, load average: 15.14, 6.54, 4.34
460 processes: 440 sleeping, 20 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 16.3% 0.0% 5.0% 0.0% 0.4% 78.1% 0.0%
cpu00 16.1% 0.0% 3.9% 0.0% 1.6% 78.1% 0.0%
cpu01 16.9% 0.0% 5.3% 0.0% 0.0% 77.6% 0.0%
cpu02 16.3% 0.0% 6.2% 0.0% 0.0% 77.4% 0.0%
cpu03 15.8% 0.0% 4.8% 0.0% 0.0% 79.3% 0.0%
Mem: 2061552k av, 1914560k used, 146992k free, 0k shrd, 64772k buff
1413492k actv, 375340k in_d, 9260k in_c
Swap: 2048276k av, 1024136k used, 1024140k free 697832k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
28129 mysql 15 0 189M 108M 1248 R 1.4 5.3 1:04 1 mysqld
9683 mysql 15 0 189M 108M 1248 R 1.2 5.3 0:20 3 mysqld
14725 mysql 15 0 189M 108M 1248 R 1.0 5.3 2:02 0 mysqld
30949 mysql 15 0 189M 108M 1248 R 0.9 5.3 0:43 0 mysqld
14741 mysql 15 0 189M 108M 1248 R 0.8 5.3 2:15 2 mysqld
28133 mysql 15 0 189M 108M 1248 S 0.8 5.3 0:54 3 mysqld
30948 mysql 15 0 189M 108M 1248 R 0.8 5.3 0:38 3 mysqld
31316 nobody 15 0 8000 6924 1472 S 0.8 0.3 0:49 0 httpd
2575 nobody 15 0 10752 10M 1508 S 0.5 0.5 0:02 0 httpd
31363 nobody 15 0 7916 6444 1496 R 0.4 0.3 0:49 1 httpd
7541 root 16 0 1500 1500 824 R 0.4 0.0 0:00 1 top
31328 nobody 15 0 6900 6428 1152 S 0.3 0.3 0:43 1 httpd
26973 nobody 16 0 7824 7388 1524 S 0.3 0.3 0:09 3 httpd
31314 nobody 15 0 7232 6692 1468 S 0.2 0.3 0:45 1 httpd
31324 nobody 15 0 7688 7096 1484 S 0.2 0.3 0:41 2 httpd
31332 nobody 15 0 6968 3172 1232 R 0.2 0.1 0:52 1 httpd
31345 nobody 15 0 7300 6872 1512 S 0.2 0.3 0:48 2 httpd
31346 nobody 15 0 7224 6748 1452 S 0.2 0.3 0:43 0 httpd
31436 nobody 15 0 7116 5064 1388 D 0.2 0.2 0:57 2 httpd
5667 nobody 15 0 7700 7196 1480 R 0.2 0.3 0:59 1 httpd
5012 nobody 15 0 7700 7344 1516 S 0.2 0.3 0:01 0 httpd
5020 nobody 16 0 7156 6816 1648 S 0.2 0.3 0:01 3 httpd
5021 nobody 15 0 7020 6648 1584 S 0.2 0.3 0:01 1 httpd
6879 nobody 15 0 7112 6772 1636 S 0.2 0.3 0:00 2 httpd
7119 nobody 15 0 7896 7564 1840 S 0.2 0.3 0:03 3 httpd
7306 nobody 15 0 7064 6700 1624 S 0.2 0.3 0:00 3 httpd
7508 nobody 15 0 6932 6616 1792 S 0.2 0.3 0:00 1 httpd
31320 nobody 15 0 15388 7196 1496 S 0.1 0.3 0:58 1 httpd
31323 nobody 15 0 7756 7260 1504 S 0.1 0.3 0:44 1 httpd
31331 nobody 15 0 7492 6780 1476 S 0.1 0.3 0:48 0 httpd
31333 nobody 15 0 7244 6836 1524 S 0.1 0.3 0:58 2 httpd
31337 nobody 15 0 7312 6804 1532 S 0.1 0.3 0:44 1 httpd
31341 nobody 15 0 7132 6368 1392 S 0.1 0.3 0:51 0 httpd
31361 nobody 15 0 7300 6684 1476 S 0.1 0.3 0:49 3 httpd
31362 nobody 15 0 7264 6752 1508 S 0.1 0.3 0:44 2 httpd
31366 nobody 15 0 8084 7564 1500 S 0.1 0.3 0:46 2 httpd
31369 nobody 15 0 7208 5608 1292 S 0.1 0.2 0:49 2 httpd
31372 nobody 15 0 7256 6172 1488 R 0.1 0.2 0:53 3 httpd
31398 nobody 15 0 6896 6120 1160 S 0.1 0.2 0:38 0 httpd
31402 nobody 15 0 7244 6788 1500 S 0.1 0.3 0:46 2 httpd
31405 nobody 15 0 7272 6344 1508 S 0.1 0.3 0:44 0 httpd
31431 nobody 15 0 7412 6836 1448 S 0.1 0.3 0:46 2 httpd
31451 nobody 15 0 7584 7100 1460 S 0.1 0.3 1:13 2 httpd
5671 nobody 15 0 7568 7128 1524 S 0.1 0.3 1:01 2 httpd
9700 mysql 15 0 189M 108M 1248 S 0.1 5.3 0:23 1 mysqld
5033 nobody 15 0 7524 7156 1532 S 0.1 0.3 0:01 2 httpd
6818 nobody 15 0 6856 6484 1564 S 0.1 0.3 0:00 1 httpd
6919 nobody 15 0 7020 6684 1684 S 0.1 0.3 0:01 0 httpd
7499 nobody 15 0 6216 5876 1944 S 0.1 0.2 0:00 2 httpd
1 root 15 0 492 460 436 S 0.0 0.0 0:22 0 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 2 migration/2
5 root RT 0 0 0 0 SW 0.0 0.0 0:00 3 migration/3
6 root 15 0 0 0 0 SW 0.0 0.0 60:19 2 keventd


6. my.cnf

mysql.admin access
[mysqld]
skip-locking
skip-innodb
query_cache_limit=4M
query_cache_size=32M
query_cache_type=1
max_connections=700
interactive_timeout=75
wait_timeout=30
connect_timeout=30
thread_cache_size=256
key_buffer=128M
join_buffer=4M
max_allowed_packet=16M
table_cache=1024
record_buffer=2M
sort_buffer_size=4M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
# try 4 if not working well
thread_concurrency=4
myisam_sort_buffer_size=64M
#log-bin
server-id=1
query_cache_size=64M
query_cache_type=1
ft_min_word_len=2

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
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
ft_min_word_len=2

[mysqlhotcopy]
interactive-timeout


7.

+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 1562 |
| Aborted_connects | 14 |
| Bytes_received | 263293299 |
| Bytes_sent | 4274988915 |
| Com_admin_commands | 308 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 9 |
| Com_change_db | 151494 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 2 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_delete | 10797 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 41 |
| Com_flush | 0 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 27585 |
| Com_insert_select | 0 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 4915 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 14025 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 6 |
| Com_savepoint | 0 |
| Com_select | 402139 |
| Com_set_option | 0 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 0 |
| Com_show_databases | 0 |
| Com_show_fields | 76 |
| Com_show_grants | 0 |
| Com_show_keys | 24 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 54 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 9 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 106 |
| Com_show_variables | 7 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 4915 |
| Com_update | 167930 |
| Connections | 143496 |
| Created_tmp_disk_tables | 548 |
| Created_tmp_tables | 19477 |
| Created_tmp_files | 4 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 9951 |
| Handler_read_first | 32961 |
| Handler_read_key | 22549862 |
| Handler_read_next | 223922135 |
| Handler_read_prev | 147071 |
| Handler_read_rnd | 174759780 |
| Handler_read_rnd_next | 840768350 |
| Handler_rollback | 0 |
| Handler_update | 3013980 |
| Handler_write | 93895779 |
| Key_blocks_used | 98326 |
| Key_read_requests | 62125881 |
| Key_reads | 95371 |
| Key_write_requests | 113987 |
| Key_writes | 81247 |
| Max_used_connections | 198 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 1009 |
| Open_files | 1065 |
| Open_streams | 0 |
| Opened_tables | 1056 |
| Questions | 1468102 |
| Qcache_queries_in_cache | 5934 |
| Qcache_inserts | 389703 |
| Qcache_hits | 541418 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 18632 |
| Qcache_free_memory | 51643840 |
| Qcache_free_blocks | 3930 |
| Qcache_total_blocks | 16198 |
| Rpl_status | NULL |
| Select_full_join | 89 |
| Select_full_range_join | 9 |
| Select_range | 91057 |
| Select_range_check | 0 |
| Select_scan | 77394 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 215 |
| Sort_merge_passes | 2 |
| Sort_range | 107279 |
| Sort_rows | 330696779 |
| Sort_scan | 34641 |
| Table_locks_immediate | 962024 |
| Table_locks_waited | 25238 |
| Threads_cached | 197 |
| Threads_created | 199 |
| Threads_connected | 2 |
| Threads_running | 1 |
| Uptime | 16303 |
+--------------------------+------------+


8. is your vB the only thing on the server? or other scripts & sites which utilise php and mysql?
vb 3.01 is all.

9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
average 180, max 300+ cookie is 900

10. http://www.7thgencivic.com/x.php

11. if you run Apache and you have your own dedicated server or access to your httpd.conf (apache configuration file) can you post the values you have set for the following :

KeepAlive on
MaxKeepAliveRequests 500
KeepAliveTimeout 30
MinSpareServers 30
MaxSpareServers 60
StartServers 30
MaxClients 2048


12. 3.01

I also have MRTG if needed http://67.15.16.20/mrtg/

eva2000
Tue 18th May '04, 8:22am
holy cow!

1. httpd.conf maxclients set WAAAY too high reduce from 2048 to 150 and restart apache
2. memory allocation in my.cnf is set too high causing you to swap to disk by 1GB!!!


change my.cnf to below and restart mysql


[mysqld]
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 = 1024
thread_cache_size = 64
wait_timeout = 1800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit = 8192

[mysql.server]
user=mysql
basedir=/var/lib

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

ImportPassion.com
Tue 18th May '04, 8:33am
ok, done. now the wait.

Thanks!

ImportPassion.com
Tue 18th May '04, 5:42pm
ok, well I went to the main page of the site and got the stupid IE error again.

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

Something is taking too long to return or timing out or something.

eva2000
Wed 19th May '04, 3:48am
main page being http://www.7thgencivic.com/ ? as it loads fine for me.. sure it ain't your internet connection /ISP ?

ImportPassion.com
Wed 19th May '04, 12:56pm
it's a random thing.

also, just got 18 errors with this

Database error in vBulletin :

Link-ID == false, connect failed
mysql error:

mysql error number: 0

eva2000
Thu 20th May '04, 12:42am
can you install script at http://vbulletin.com/forum/showthread.php?threadid=3477 and post the url to it here

ImportPassion.com
Thu 20th May '04, 8:02am
Here you go.

http://www.7thgencivic.com/z.php

ImportPassion.com
Thu 20th May '04, 8:07am
the stats will be a little off cause I just restarted mysql.
site gets busy around 1pm EST, then around 10pm est.

legolas
Thu 20th May '04, 10:33am
You might also drop keepalivetimeout down to 15 or 10.

ImportPassion.com
Mon 24th May '04, 10:41pm
Hey George,

Any news for me since posting that script?

Derek

eva2000
Wed 26th May '04, 12:24am
sorry been having ADSL drop outs and must of missed this thread update :o

seems from the script's extended-status output for mysql, you're swapping to disk by a LARGE amount 870800k used in swap! this will cause cpu loads to skyrocket and crash mysql = connection failed messages!

which was your originally problem you had 1GB swap usage from first post stats you posted!

The my.cnf i recommended should of helped unless memory consumption isn't mysql/vB related ? ya got any other perl/php/cgi/mysql scripts on the server ? maybe banner serving script ?

can you post output of this command to see if the my.cnf settings i recommended took affect

mysqladmin -u root -p variables

ImportPassion.com
Wed 26th May '04, 8:11am
now that you mention it, I do use phpAdsNew2


+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| back_log | 50 |
| basedir | / |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set | latin1 |
| character_sets | latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 |
| concurrent_insert | ON |
| connect_timeout | 10 |
| convert_character_set | |
| datadir | /var/lib/mysql/ |
| default_week_format | 0 |
| delay_key_write | ON |
| delayed_insert_limit | 100 |
| delayed_insert_timeout | 300 |
| delayed_queue_size | 1000 |
| flush | OFF |
| flush_time | 0 |
| ft_boolean_syntax | + -><()~*:""&| |
| ft_min_word_len | 2 |
| ft_max_word_len | 254 |
| ft_max_word_len_for_sort | 20 |
| ft_stopword_file | (built-in) |
| have_bdb | NO |
| have_crypt | YES |
| have_innodb | DISABLED |
| have_isam | YES |
| have_raid | NO |
| have_symlink | YES |
| have_openssl | NO |
| have_query_cache | YES |
| init_file | |
| innodb_additional_mem_pool_size | 1048576 |
| innodb_buffer_pool_size | 8388608 |
| innodb_data_file_path | |
| innodb_data_home_dir | |
| innodb_file_io_threads | 4 |
| innodb_force_recovery | 0 |
| innodb_thread_concurrency | 8 |
| innodb_flush_log_at_trx_commit | 1 |
| innodb_fast_shutdown | ON |
| innodb_flush_method | |
| innodb_lock_wait_timeout | 50 |
| 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_mirrored_log_groups | 1 |
| innodb_max_dirty_pages_pct | 90 |
| interactive_timeout | 28800 |
| join_buffer_size | 1044480 |
| key_buffer_size | 16777216 |
| language | /usr/share/mysql/english/ |
| large_files_support | ON |
| local_infile | ON |
| locked_in_memory | OFF |
| log | OFF |
| log_update | OFF |
| log_bin | OFF |
| log_slave_updates | OFF |
| log_slow_queries | ON |
| log_warnings | OFF |
| long_query_time | 7 |
| low_priority_updates | OFF |
| lower_case_table_names | 0 |
| max_allowed_packet | 16776192 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connections | 500 |
| max_connect_errors | 10 |
| max_delayed_threads | 20 |
| max_heap_table_size | 16777216 |
| max_join_size | 4294967295 |
| max_relay_log_size | 0 |
| max_seeks_for_key | 4294967295 |
| max_sort_length | 1024 |
| max_user_connections | 0 |
| max_tmp_tables | 32 |
| max_write_lock_count | 4294967295 |
| myisam_max_extra_sort_file_size | 268435456 |
| myisam_max_sort_file_size | 2147483647 |
| myisam_repair_threads | 1 |
| myisam_recover_options | OFF |
| myisam_sort_buffer_size | 67108864 |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| open_files_limit | 2558 |
| pid_file | /var/lib/mysql/server.7thgencivic.com.pid |
| log_error | |
| port | 3306 |
| protocol_version | 10 |
| query_alloc_block_size | 8192 |
| query_cache_limit | 1048576 |
| query_cache_size | 33554432 |
| query_cache_type | ON |
| query_prealloc_size | 8192 |
| range_alloc_block_size | 2048 |
| read_buffer_size | 1044480 |
| read_only | OFF |
| read_rnd_buffer_size | 262144 |
| rpl_recovery_rank | 0 |
| server_id | 0 |
| slave_net_timeout | 3600 |
| skip_external_locking | ON |
| skip_networking | OFF |
| skip_show_database | OFF |
| slow_launch_time | 2 |
| socket | /var/lib/mysql/mysql.sock |
| sort_buffer_size | 2097144 |
| sql_mode | 0 |
| table_cache | 1024 |
| table_type | MYISAM |
| thread_cache_size | 64 |
| thread_stack | 126976 |
| tx_isolation | REPEATABLE-READ |
| timezone | EDT |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
| transaction_alloc_block_size | 8192 |
| transaction_prealloc_size | 4096 |
| version | 4.0.18-standard-log |
| version_comment | Official MySQL RPM |
| wait_timeout | 1800 |
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

ImportPassion.com
Wed 26th May '04, 8:45pm
i got more of the link errors today. will more ram fix it? even tho i can't get any ram right now. damn ev1!!
i was thinking of leaving the dual xeon to the db and getting a single p4 for the webserver. would that help?

ImportPassion.com
Tue 1st Jun '04, 1:37pm
still getting these :(

Database error in vBulletin :

Link-ID == false, connect failed
mysql error:

mysql error number: 0

Scott MacVicar
Tue 1st Jun '04, 5:30pm
Can you turn on the slow query log, I noticed that when looking at the script today.

Not sure how to do this in MySQL though.

ImportPassion.com
Tue 1st Jun '04, 5:47pm
it is on.
Need the output?

Scott MacVicar
Tue 1st Jun '04, 6:26pm
Well there is 9000 slow queries so just a handful would help as I'll presume there rougly the same.

ImportPassion.com
Tue 1st Jun '04, 10:45pm
Well there is 9000 slow queries so just a handful would help as I'll presume there rougly the same.

Some are not vB related, so I will just give the vb ones.


# Query_time: 11 Lock_time: 1 Rows_sent: 1 Rows_examined: 17009
SELECT COUNT(*) AS threads,
SUM(IF(thread.lastpost>=1085977180 AND open<>10,1,0)) AS newthread
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE forumid = 20
AND sticky = 0
AND visible = 1



AND deletionlog.primaryid IS NULL;


# Query_time: 13 Lock_time: 2 Rows_sent: 30 Rows_examined: 143410
SELECT pmtext.pmtextid
FROM pmtext AS pmtext
LEFT JOIN pm AS pm USING(pmtextid)
WHERE pm.pmid IS NULL;


# Query_time: 11 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid,
deletionlog.username AS del_username, deletionlog.reason AS del_reason,
NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed, emailupdate, folderid,
thread.*
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON (deletionlog.primaryid = thread.threadid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 10133)

WHERE thread.threadid = 155182;


# Query_time: 10 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT title, data
FROM datastore
WHERE title IN ('options', 'cron', 'forumcache', 'usergroupcache', 'stylecache', 'stylecache', 'arcadesettings', 'rankphp', 'smiliecache', 'bbcodecache', 'mailqueue', 'hidprofilecache');


# Query_time: 14 Lock_time: 3 Rows_sent: 1 Rows_examined: 0
SELECT *
FROM session
WHERE sessionhash = 'f41b9e5d56eca565bf8095f575030479'
AND lastactivity > 1086132344
AND host = '69.37.40.180'
AND idhash = '8b3c86b65e4646e09e7e8a2d5878a26f';


# Query_time: 11 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT title, data
FROM datastore
WHERE title IN ('options', 'cron', 'forumcache', 'usergroupcache', 'stylecache', 'stylecache', 'arcadesettings', 'smiliecache', 'bbcodecache', 'iconcache', 'userstats', 'birthdaycache', 'vbindex_setting', 'vbindex_version', 'vbindex_config');


# Query_time: 10 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT * FROM style
WHERE (styleid = 6 AND userselect = 1)
OR styleid = 6
ORDER BY styleid ASC
LIMIT 1;


# Query_time: 37 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
DELETE FROM attachment
WHERE posthash <> '' AND
dateline < 1086129624;


# Query_time: 11 Lock_time: 2 Rows_sent: 1 Rows_examined: 0
SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_threadmanage AS phrasegroup_threadmanage,
language.phrasegroup_posting AS phrasegroup_posting,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep
FROM user AS user
INNER JOIN userfield AS userfield ON (user.userid = userfield.userid)
INNER JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
WHERE user.userid = 13261;


I think that is about a handfull.

LMK what you think.

eva2000
Wed 2nd Jun '04, 1:30am
actually give Scott the slow queries regardless off vB/phpadnews related in the order you see them i think that would be better