Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2003, 04:46 PM
Moonlight Moonlight is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Optimizing Dedicated Server

I am looking for some advice about how to optimize a Dedicated Server to run vBulletin correctly.

I have a Pentium 4, 2.4 Ghz, 1 gig RAM, 80 gig HD using CPanel.

I have installed MySQL 4.0.13, using the hack for using FULLTEXT search feature from MySQL, PHP Accelerator, vBulletin 2.3.1.

The server is having trouble handling the load.

There is currently 101 users connected and the load is above 1.

Here is the top of the mysqlinfo.php output :

1:43pm up 2 days, 7 min, 0 users, load average: 0.86, 1.26, 1.27
130 processes: 111 sleeping, 4 running, 15 zombie, 0 stopped
Mem: 1023104K av, 1001456K used, 21648K free, 0K shrd, 97016K buff
Swap: 2048276K av, 23324K used, 2024952K free 731604K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
27514 nobody 17 0 6664 6180 3560 R 28.4 0.6 0:00 httpd
27563 nobody 16 0 1068 1068 832 R 16.1 0.1 0:00 top
27577 nobody 16 0 7072 6584 3488 R 8.4 0.6 0:00 httpd
27582 nobody 16 0 0 0 0 RW 0.0 0.0 0:00 httpd

Http processes currently running = 13
Mysql processes currently running = 51

Netstat information summary
2 SYN_RECV
2 SYN_SENT
4 FIN_WAIT1
5 ESTABLISHED
25 LISTEN
168 FIN_WAIT2
426 TIME_WAIT

Does anyone know what I should be doing to improve it?

Apache Config :
Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 8
MinSpareServers 5
MaxSpareServers 25
StartServers 8
MaxClients 512
MaxRequestsPerChild 0

MySQL Config :
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
max_connections = 500
key_buffer = 32M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 128
wait_timeout = 3600
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 48M
query_cache_type = 1
skip-innodb

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

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

Thanks!
Reply With Quote
  #2  
Old 06-25-2003, 06:59 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IMO there is nothing wrong with the load (i get loads of 2.00 1.20 0.97 and worse)...

But if you really want to optimise vBulletin, try installing a few "forumhome optimisation" hacks - One by Xenon, one by filburt, and any hacks that you have installed, make sure the templates are included in the "$templatesused" and that you try and run as few queries as possible...

Satan
Reply With Quote
  #3  
Old 06-25-2003, 07:10 PM
cirisme cirisme is offline
 
Join Date: Jan 2003
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's an entire forum on this on vbulletin.com.(the configuration forum )
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 11:13 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.08857 seconds
  • Memory Usage 2,175KB
  • 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)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