Previous Thread
Next Thread
Print Thread
Rate Thread
#214685 03/29/2002 4:54 PM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
Alright, I'm on a box with a gig of ram, two dual p3 800's, SCSI drives, name it; running Windows 2000 Server. Anyhow...

The problem I'm having is, MySQL, once every two minutes or so, is spiking to %40 percent (on both processors). This causes problems, as we also run some game servers on this box.

My database is approximately 26.2 megs big (we get a lot of posts []/forum/images/icons/smile.gif[/], and I'm wondering what I can POSSIBLY do to take down the load time on the processors, which is unacceptable. I already tried optimizing the tables with phpmyadmin... But what else can I do?

I'm looking to decrease the processor usage as much as possible, without really damaging the forums. Like I said, it does it about once every 2 minutes.

Any help?

P.S. - Also running a bit older version of wwwthreads, last release before bought out by Infopop. This shouldn't effect it though, should it?

Sponsored Links
wappie #214686 03/30/2002 1:00 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Can you post your MySQL settings here?

Also, you might consider either upgrading to v6 when it's released as pb, or check into some of the modifications posted that reduce the number of queries and improve performance with a few well-placed indexes. []/forum/images/icons/smile.gif[/]


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
I looked into some of the modifications... But don't know what I really need to do. Mind referring some Allen?

I'll post our MySQL settings here in a bit when the box comes back up, we moved its location today.

wappie #214688 03/30/2002 11:19 AM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
Allen, in the config file generated by mysqladmin, I have the following values:

#This File was made using the WinMySQLAdmin 1.4 Tool
#3/28/2002 9:38:21 PM

#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions

[mysqld]
basedir=C:/mysql
#bind-address=192.168.1.102
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe

wappie #214689 03/30/2002 11:24 AM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
Server variables:

Server Status Values

Server Info 3.23.49-nt
Host Info localhost via TCP/IP
Client Info 3.23.49
Proto Info 10
Aborted_clients 0
Aborted_connects 0
Bytes_received 0
Bytes_sent 0
Com_admin_commands 0
Com_alter_table 0
Com_analyze 0
Com_backup_table 0
Com_begin 0
Com_change_db 0
Com_change_master 0
Com_check 0
Com_commit 0
Com_create_db 0
Com_create_function 0
Com_create_index 0
Com_create_table 0
Com_delete 0
Com_drop_db 0
Com_drop_function 0
Com_drop_index 0
Com_drop_table 0
Com_flush 0
Com_grant 0
Com_insert 0
Com_insert_select 0
Com_kill 0
Com_load 0
Com_load_master_table 0
Com_lock_tables 0
Com_optimize 0
Com_purge 0
Com_rename_table 0
Com_repair 0
Com_replace 0
Com_replace_select 0
Com_reset 0
Com_restore_table 0
Com_revoke 0
Com_rollback 0
Com_select 0
Com_set_option 0
Com_show_binlogs 0
Com_show_create 0
Com_show_databases 0
Com_show_fields 0
Com_show_grants 0
Com_show_keys 0
Com_show_logs 0
Com_show_master_stat 0
Com_show_open_tables 0
Com_show_processlist 1
Com_show_slave_stat 0
Com_show_status 1
Com_show_tables 0
Com_show_variables 1
Com_slave_start 0
Com_slave_stop 0
Com_truncate 0
Com_unlock_tables 0
Com_update 0
Connections 2
Created_tmp_disk_tables 0
Created_tmp_tables 0
Created_tmp_files 0
Delayed_insert_threads 0
Delayed_writes 0
Delayed_errors 0
Flush_commands 1
Handler_delete 0
Handler_read_first 1
Handler_read_key 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd_next 10
Handler_update 0
Handler_write 0
Key_blocks_used 0
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
Max_used_connections 0
Not_flushed_key_blocks 0
Not_flushed_delayed_rows 0
Open_tables 0
Open_files 0
Open_streams 0
Opened_tables 6
Questions 3
Select_full_join 0
Select_full_range_join 0
Select_range 0
Select_range_check 0
Select_scan 0
Slave_running OFF
Slave_open_temp_tables 0
Slow_launch_threads 0
Slow_queries 0
Sort_merge_passes 0
Sort_range 0
Sort_rows 0
Sort_scan 0
Table_locks_immediate 5
Table_locks_waited 0
Threads_cached 0
Threads_created 1
Threads_connected 1
Threads_running 1
Uptime 41

Variables Values

back_log 50
basedir C:\mysql\
binlog_cache_size 32768
character_set latin1
character_sets latin1 big5 czech euc_kr gb2312 gbk 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 5
datadir C:\mysql\data\
delay_key_write ON
delayed_insert_limit 100
delayed_insert_timeout 300
delayed_queue_size 1000
flush OFF
flush_time 1800
have_bdb NO
have_gemini NO
have_innodb NO
have_isam YES
have_raid NO
have_openssl NO
init_file
interactive_timeout 28800
join_buffer_size 131072
key_buffer_size 8388600
language C:\mysql\share\english\
large_files_support ON
log OFF
log_update OFF
log_bin OFF
log_slave_updates OFF
log_long_queries OFF
long_query_time 10
low_priority_updates OFF
lower_case_table_names 1
max_allowed_packet 1048576
max_binlog_cache_size 4294967295
max_binlog_size 1073741824
max_connections 100
max_connect_errors 10
max_delayed_threads 20
max_heap_table_size 16777216
max_join_size 4294967295
max_sort_length 1024
max_user_connections 0
max_tmp_tables 32
max_write_lock_count 4294967295
myisam_max_extra_sort_file_size 256
myisam_max_sort_file_size 2047
myisam_recover_options 0
myisam_sort_buffer_size 8388608
net_buffer_length 16384
net_read_timeout 30
net_retry_count 10
net_write_timeout 60
open_files_limit 0
pid_file C:\mysql\data\biscuit.pid
port 3306
protocol_version 10
record_buffer 131072
record_rnd_buffer 131072
query_buffer_size 0
safe_show_database OFF
server_id 0
slave_net_timeout 3600
skip_locking ON
skip_networking OFF
skip_show_database OFF
slow_launch_time 2
socket MySQL
sort_buffer 2097144
sql_mode 0
table_cache 64
table_type MYISAM
thread_cache_size 0
thread_stack 65536
transaction_isolation READ-COMMITTED
timezone Central Standard Time
tmp_table_size 33554432
tmpdir D:\WINNT\TEMP\
version 3.23.49-nt
wait_timeout 28800

Remember, the database is 26 megs big. Should I split it? If so, how tipsy I'm a novice when it comes to MySQL.

Sponsored Links
wappie #214690 03/30/2002 4:01 PM
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
Carmack look for my.cnf in your WINNT directory and post it please? That will help lots. []/forum/images/icons/smile.gif[/]

Also have a look here, Max posted some things that might help you out a lot.


Picture perfect penmanship here.
zerind #214691 03/30/2002 5:40 PM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
Ok, I think I posted this before, but here it is:


[mysqld]
basedir=C:/mysql
#bind-address=192.168.1.102
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-opt.exe
user=******
password=******


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)