vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Issue with a script taking up.. (https://vborg.vbsupport.ru/showthread.php?t=309623)

Webdevkirk 03-17-2014 05:03 PM

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.

RichieBoy67 03-17-2014 05:04 PM

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.

Webdevkirk 03-17-2014 05:05 PM

Quote:

Originally Posted by RichieBoy67 (Post 2487826)
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

ozzy47 03-17-2014 08:21 PM

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?

Zachery 03-17-2014 11:02 PM

misc.php doesn't do much by default. Are you runninr 4.2.2?

TheLastSuperman 03-19-2014 12:57 AM

Quote:

Originally Posted by Zachery (Post 2487897)
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.

Max Taxable 03-19-2014 01:02 AM

Is this the site in question?

http://habbtunesforum.net/

Max Taxable 03-19-2014 01:05 AM

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.

TheLastSuperman 03-19-2014 01:08 AM

^ 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.

Max Taxable 03-19-2014 02:04 AM

Quote:

Originally Posted by TheLastSuperman (Post 2488241)
^ 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.


All times are GMT. The time now is 05:26 AM.

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.01041 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete