Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2016, 09:29 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default inlinemod.php causing high server loads

Our server has been running really heavy loads for weeks, and we think it is due to something that uses inlinemod.php

Does anyone recognize that file? Is it part of standard vB or a mod? If it is a mod, how do you suggest I identify which mod it is associated with?

Appreciate any feedback you can give.
Reply With Quote
  #2  
Old 04-23-2016, 09:40 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That file is part of vBulletin itself, and handles the inline moderation functions. As such it likely isn't being called that often, unless a product hooked into it. I would suggest first taking a look at your plugins to see which are hooked to any locations beginning with "inline_mod_".
Reply With Quote
Благодарность от:
Panzer Max
  #3  
Old 04-23-2016, 09:44 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thanks Mark--how do I look at a plugin and see if any are hooked to things? Open the plugin file and examine the code? Do I just look in the Plugin Manager under Hook Location?
Reply With Quote
  #4  
Old 04-23-2016, 09:49 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That script should only cause "some" load when hundreds of posts or threads are being moved/deleted or some other action is executed against hundreds of entries.
Reply With Quote
3 благодарности(ей) от:
MarkFL, Max Taxable, Panzer Max
  #5  
Old 04-23-2016, 09:54 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Panzer Max View Post
...Do I just look in the Plugin Manager under Hook Location?
Yes...and if none of your staff are doing any heavy duty and ongoing inline moderation (as Dave mentioned), there shouldn't be heavy loads.
Reply With Quote
  #6  
Old 04-23-2016, 09:56 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've turned off the forum, gone in the cPanel and killed the processes that were inlinemod.php related, the server load came down.

Hopefully we can get a backup now, and I will watch this.

I checked the Plugin Manager under Hook Location but did not find any plugins that had inlinemod.php listed.

Dave, is it possible some process got stuck? What could cause hundreds of entries to be executed or acted on like this, other than something I or the Admin would be doing?

Very strange!
Reply With Quote
  #7  
Old 04-23-2016, 10:04 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A PHP process shouldn't get stuck because it has built-in timeout settings to prevent such thing from happening.
Reply With Quote
  #8  
Old 04-24-2016, 06:38 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it shouldn't get stuck, but I think that's what happened.

Quote:
cpuwatch (Thu Dec 31 01:00:03 2015): System load is currently 9.17; waiting for it to go down to 7.00 to continue …
====

From the above errors, it is clear that the backup process was terminated because of high load in the server. After this, I have checked the load statistics of the server. I have found that the server load is high and it is nearly 16 and there are high accesses to the server.

===
root@server [~]# w
15:18:46 up 898 days, 22:16, 1 user, load average: 16.52, 16.25, 16.12
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 61.15.45.80 14:36 0.00s 0.08s 0.00s w

root@server [~]# nproc
8
root@server [~]#

root@server [~]# netstat -plane | grep :80 | wc -l
620
====

I have also analyzed the previous load statistics and could see that the load was high for the past days. The average server load is nearly 16, which is double the threshold value. We infer that the server load was always 16, after Dec 31, 2015 and this is the reason for backup failure.
And inlinemod.php was the culprit. There must be something to explain this....

Can you give me some examples of exactly what "inline moderation" is?

Edit: http://www.vbulletin.com/forum/forum...certain-timing

I guess it's simply hitting the delete or edit key on a thread/post? Maybe selecting a group of threads to move....
Reply With Quote
  #9  
Old 04-26-2016, 07:00 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

25196 (Trace) (Kill) server_alpha 0 CPU 99.75 Memory 0.13 /usr/bin/php /home/alpha/public_html/inlinemod.php

I have no idea why this is happening.... if this was happening to you guys, what would youndo? Any ideas?

I checked the moderator log, there has been some activity, a few posts merged, deleted, unstuck...
Reply With Quote
  #10  
Old 04-26-2016, 07:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Panzer Max View Post
I checked the Plugin Manager under Hook Location but did not find any plugins that had inlinemod.php listed.
You don't want to see if any are calling the inlinemod.php file, you want to go to the Plugin Manger and look in the Hook Location column for some hook that starts with "inlinemod_" like these:

Attachment 154844

If you do, then take note of the Product and go to Manage Products and disable it.
Reply With Quote
2 благодарности(ей) от:
MarkFL, Panzer Max
Reply

Thread Tools
Display Modes

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 12:17 AM.


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.04321 seconds
  • Memory Usage 2,280KB
  • Queries Executed 14 (?)
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
  • (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
  • (3)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_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
  • 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