Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2007, 10:43 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Enormous Handler_read_rnd_next in MySQL

Folks,

Upon checking my status variables for my database, I see a huge number for Handler_read_rnd (81M) and Handler_read_rnd_next (3,812.55M) and the second number is increasing rapidly (it was 3,810.07 about 2 minutes ago).

At this moment, my board is not very active (about 80 users online), Server Load Averages 1.05 0.97 0.93.

I read the explanation offered by MySQL for this parameter, so I went around checking for tables that are used without indexes (or with wrong indexes) and I can't find anything significantly wrong.

Do you guys have any idea what can cause this? Is there any way I can find out what tables are causing this?

Many tnx
Reply With Quote
  #2  
Old 02-08-2009, 07:09 PM
Daky Daky is offline
 
Join Date: Aug 2006
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually i have a same question..


Handler_read_rnd_next 13 G The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.

This MySQL server has been running for 3 days, 17 hours, 7 minutes and 29 seconds. It started up on Feb 04, 2009 at 10:56 PM.

Query statistics: Since its startup, 7,262,067 queries have been sent to the server.

PHP Code:
[mysqld]
log-slow-querie = /var/log/mysql/mysql-slow.log
datadir 
= /var/lib/mysql
socket 
= /var/lib/mysql/mysql.sock
user
=mysql
#skip-name-resolve
safe-show-database
#old_passwords
back_log 50
skip
-innodb
max_connections 
500
key_buffer_size 
1024M
myisam_sort_buffer_size 
64M
join_buffer_size 
1M
read_buffer_size 
1M
sort_buffer_size 
2M
table_cache 
4000
thread_cache_size 
256
wait_timeout 
28800
connect_timeout 
10
tmp_table_size 
64M
max_heap_table_size 
64M
max_allowed_packet 
64M
net_buffer_length 
16384
max_connect_errors 
100000
thread_concurrency 
8
concurrent_insert 
2
table_lock_wait_timeout 
30
read_rnd_buffer_size 
786432
bulk_insert_buffer_size 
8M
query_cache_limit 
4M
query_cache_size 
80M
query_cache_type 
1
query_prealloc_size 
262144
query_alloc_block_size 
65536
transaction_alloc_block_size 
8192
transaction_prealloc_size 
4096
default-storage-engine MyISAM
max_write_lock_count 
8

[mysqld_safe]
log-error = /var/log/mysqld.log
pid
-file = /var/run/mysqld/mysqld.pid
nice 
= -10
open_files_limit 
8192

[mysqldump]
quick
max_allowed_packet 
16M

[myisamchk]
key_buffer 384M
sort_buffer 
64M
read_buffer 
16M
write_buffer 
16M 
Server is:
Quad Xeon 2.4 Ghz
4GB RAM
2x250GB SATAII 32Mb cache.

Please advise,
D
Reply With Quote
  #3  
Old 02-09-2009, 09:55 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please use vBulletin.com to get suggestions on your servers configuration on the topic of general PHP/MySQL optimisation. On the vBulletin.com Server Configuration you will get suggestions by one of our Support Professionals.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03682 seconds
  • Memory Usage 2,192KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete