Thread: hosting problem
View Single Post
  #1  
Old 09-16-2009, 08:54 PM
digif's Avatar
digif digif is offline
 
Join Date: Feb 2009
Location: Bosnia
Posts: 198
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default hosting problem

We can see in the logs that the serverload was normal until around 23:15:
...
10:50:03 PM 0 271 1.54 1.52 1.34
11:00:01 PM 11 228 1.20 2.02 1.87
11:10:01 PM 6 232 2.07 1.75 1.80
11:22:25 PM 0 712 46.38 55.42 34.00
Average: 4 213 1.48 1.55 1.38
...

Then it jumped up to over 55 which is very high - below 5 is normal. Over 60 and the server will go down.

I can see alot of processes like theese was running:
...
User:beneamat PID:22711 Run Time:190(secs) Memory:133760(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/member.php
User:beneamat PID:22716 Run Time:188(secs) Memory:134284(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22718 Run Time:188(secs) Memory:134284(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22723 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22724 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22727 Run Time:184(secs) Memory:133768(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22730 Run Time:184(secs) Memory:133752(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/index.php
User:beneamat PID:22731 Run Time:184(secs) Memory:133768(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22732 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22748 Run Time:178(secs) Memory:133776(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22768 Run Time:172(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
....

The above is just an example of at least 60 processes with the same name (misc.php) that was running at the same time.

But all looks ok now - so I guess it was Your script that couldn't handle to many visitors.

Can this be true? What to do to prevent it next time?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01277 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete