vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   inlinemod.php causing high server loads (https://vborg.vbsupport.ru/showthread.php?t=322447)

Panzer Max 04-23-2016 09:29 PM

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.

MarkFL 04-23-2016 09:40 PM

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_".

Panzer Max 04-23-2016 09:44 PM

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?

Dave 04-23-2016 09:49 PM

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.

MarkFL 04-23-2016 09:54 PM

Quote:

Originally Posted by Panzer Max (Post 2569452)
...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.

Panzer Max 04-23-2016 09:56 PM

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!

Dave 04-23-2016 10:04 PM

A PHP process shouldn't get stuck because it has built-in timeout settings to prevent such thing from happening.

Panzer Max 04-24-2016 06:38 PM

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....:confused:

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

Panzer Max 04-26-2016 07:00 PM

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

Lynne 04-26-2016 07:07 PM

1 Attachment(s)
Quote:

Originally Posted by Panzer Max (Post 2569455)
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.


All times are GMT. The time now is 10:52 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.01815 seconds
  • Memory Usage 1,738KB
  • 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
  • (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