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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2014, 05:03 PM
Webdevkirk Webdevkirk is offline
 
Join Date: Nov 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Issue with a script taking up..

Hi,

I'm having an issue with a certain vBulletin script taking up too much CPU usage on my forums, the host had said to "contact the developers to help optimize this issue" so, I was wondering if anyone could possibly assist me in resolving this..

thank you.
Reply With Quote
  #2  
Old 03-17-2014, 05:04 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the script? It is most likely a plug in.

Ask your host to be more specific and to send you the server logs.
Reply With Quote
  #3  
Old 03-17-2014, 05:05 PM
Webdevkirk Webdevkirk is offline
 
Join Date: Nov 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
What is the script?

I honestly am not sure, the host said to I quote "contact the developer to help resolve this issue or figure out what the script is".. I'm not too sure what to do in this case, so I thought posting here would possibly help.

--update--

CPU Usage: 97% (warning)


Snapshot 1
habbtune 14222 18.0 0.0 323896 27432 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14243 27.0 0.0 322612 26196 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14269 22.0 0.0 314716 16904 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14279 21.0 0.0 313252 16192 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14291 18.0 0.0 197468 7860 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php

Snapshot 2
habbtune 14222 18.5 0.0 323636 27540 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14243 33.0 0.0 323636 27548 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14269 24.0 0.0 316192 19072 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14279 24.0 0.0 317280 20464 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14291 20.0 0.0 311408 14092 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php

Snapshot 3
habbtune 14222 12.6 0.0 323636 27540 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14243 17.0 0.0 323636 27548 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14269 12.0 0.0 316792 19780 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14279 13.0 0.0 321164 24696 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14291 10.5 0.0 312068 14872 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php

Snapshot 4
habbtune 14222 13.0 0.0 323636 27540 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14243 17.5 0.0 323636 27548 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14269 12.0 0.0 316792 20196 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14279 14.5 0.0 322356 26196 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14291 11.0 0.0 312988 15928 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14319 8.5 0.0 173040 5856 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php

Snapshot 5
habbtune 14222 13.3 0.0 323636 27596 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14243 18.0 0.0 323636 27600 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14269 12.5 0.0 319280 22852 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14279 16.5 0.0 323124 26656 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14291 11.0 0.0 314184 16280 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php
habbtune 14319 9.0 0.0 218528 9764 ? RN 19:01 0:00 /opt/php53/bin/php-cgi /home4/habbtune/public_html/misc.php

Current load: 19:01:16 up 13 days, 17:57, 0 users, load average: 0.12, 0.03, 0.01

--------------- Added [DATE]1395078414[/DATE] at [TIME]1395078414[/TIME] ---------------

Still need help, if anyones there
Reply With Quote
  #4  
Old 03-17-2014, 08:21 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What mods do you have installed? I see it is all the misc.php, but that could be almost anything.

What host is this, and what package do you have?
How many users are you averaging on your site, members & guests?
Reply With Quote
  #5  
Old 03-17-2014, 11:02 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

misc.php doesn't do much by default. Are you runninr 4.2.2?
Reply With Quote
  #6  
Old 03-19-2014, 12:57 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
misc.php doesn't do much by default. Are you runninr 4.2.2?
He posted in 3.x forums... but possibly a "posted in wrong area" however remember that a default misc.php does not do much however a hacked misc.php will . Your site could have *possibly* been hacked.

I would do this:
  • Download the same version of 3.x you are running from the members area.
  • Rename your misc.php to misc1.php.
  • Upload the 100% fresh misc.php file, now check is the load issue resolved now?

If the issue is resolved after uploading the new file then have someone review the misc1.php file, if they find malicious code you'll then need to take further action.
Reply With Quote
Благодарность от:
RichieBoy67
  #7  
Old 03-19-2014, 01:02 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the site in question?

http://habbtunesforum.net/
Reply With Quote
  #8  
Old 03-19-2014, 01:05 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a really strange file being called that produces a 404 error, here.
HTML Code:
URL: http://habbtunesforum.net/clientscript/moosmyth1.js
Host: habbtunesforum.net
IP: 108.162.196.62
Location: Cloudflare
Error/Status Code: 404
Client Port: 64667
Start Offset: 0.801 s
Time to First Byte: 126 ms
Content Download: 0 ms
Bytes In (downloaded): 1.0 KB
Bytes Out (uploaded): 0.5 KB
Webpagetest shows no calls at all to 'misc.php' and also shows no abusive CPU usage.

You do have some minor optimization work to do though.
Reply With Quote
Благодарность от:
blind-eddie
  #9  
Old 03-19-2014, 01:08 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ I checked the url you posted and viewed the source code, granted not the same as having access to the templates directly but I didn't notice anything odd until I reached the bottom:

Code:
<script type="text/javascript"> 
specialmyth();
</script>
What does that do I wonder?

Edit: The function name is similar to moosmyth1.js i.e. the myth part of each.
Reply With Quote
3 благодарности(ей) от:
blind-eddie, Max Taxable, RichieBoy67
  #10  
Old 03-19-2014, 02:04 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
^ I checked the url you posted and viewed the source code, granted not the same as having access to the templates directly but I didn't notice anything odd until I reached the bottom:

Code:
<script type="text/javascript"> 
specialmyth();
</script>
What does that do I wonder?

Edit: The function name is similar to moosmyth1.js i.e. the myth part of each.
Yeah I dunno what the hell these are but I do know they don't belong there.

His server load he reports in post #3, from his admin CP is quite curious as well... Possible the host server is having issues related to other site(s) on the machine? I don't think his lone vB installation is loading the server that much by itself.
Reply With Quote
Благодарность от:
RichieBoy67
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 10:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04751 seconds
  • Memory Usage 2,275KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete