MyBB Community Forums

Full Version: HTTPD - Processes hanging - need some advice as stuck now
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi Guys

Hoping for some advice here as having done many many hours of reading i'm none the wiser on how to resolve my issues.

My VPS reboots 2-3 times per day due to being unable to allocate resources, in most cases this is memory.

We have 2 cores of a 6 core Xeon and 4Gb of RAM allocated to the VPS and most of the time the VPS runs at around 25% load and at busy times 40% ish.

I use WHM and Cpanel and when looking at the running processes i see many entries for:

2939 (Trace) (Kill) nobody 0 4.1 0.6 /usr/local/apache/bin/httpd -k start -DSSL
2967 (Trace) (Kill) nobody 0 3.9 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2937 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2941 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2943 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2947 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2949 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2948 (Trace) (Kill) nobody 0 3.6 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2944 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2951 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2952 (Trace) (Kill) nobody 0 3.1 0.5 /usr/local/apache/bin/httpd -k start -DSSL
4363 (Trace) (Kill) nobody 0 3.0 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2925 (Trace) (Kill) nobody 0 2.8 0.7 /usr/local/apache/bin/httpd -k start -DSSL
4903 (Trace) (Kill) nobody 0 2.2 0.5 /usr/local/apache/bin/httpd -k start -DSSL

I've looked at the httpd.conf's page in WHM under Apache Configuration>Global Confiuration and have these entries


Apache Configuration
** SSL Cipher Suite [?]
ALL:!ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP default
ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:!kEDH PCI recommended

** Trace Enable [?]


Default: On
PCI Recommendation: Off
** Server Signature [?]


Default: Off
PCI Recommendation: Off
** Server Tokens [?]


Default: Full
PCI Recommendation: ProductOnly
** File ETag [?]


Default: All
PCI Recommendation: None
** Directory “/” Options [?]
ExecCGI default
FollowSymLinks default
Includes
IncludesNOEXEC default
Indexes default
MultiViews
SymLinksIfOwnerMatch default
** Start Servers [?]
5 default

** Minimum Spare Servers [?]
5 default

** Maximum Spare Servers [?]
10 default

** Server Limit (maximum: 20,000) [?]
256 default

** Max Clients [?]
150 default

** Max Requests Per Child [?]
10000 default

** Keep-Alive [?]
On
defaultOff
** Keep-Alive Timeout [?]
5 default

** Max Keep-Alive Requests [?]
Unlimited
100 default

** Timeout [?]
300 default




My guess, but i'm only guessing here and dont want to take action on a guess in case I damage my forum I have worked so hard on is.

a) The HTTPD processes are hanging and not closing. Might and maybe just might be myBB but I dont think it is because myBB is just so good and fault free.

b) Maybe it's a plugin? (I'll list them at the bottom)

c) Maybe and most likely it's server config somewhere and I'm totally at the mercy of my webhost on this as I have no idea what I should or shoudn't change.

Any ideas would be so helpful.

Thanks Guys

Plugin List below:

Facebook Like Button
Fit on Page
Google SEO
Google +1
Moderator CP permissions
My Advertisments
Plugin Library
Quick Theme on Change
Registration security question
User id in profile

*** We also run Blueimps Ajax Chat - max 30 people chatting at one time*

TY Big Grin

Just a little more info from the server generated email when it went into reboot

sorry if its formatted a little messy


Server: server.deadmanscrosszone.com
Primary IP: 95.154.220.46
Service: lfd
Notification Type: failed
Notification: lfd failed @ Wed Jul 23 13:44:14 2014. A restart was attempted automagically.
Service Check Method: [check command]
Number of Restart Attempts: 1
Memory Information:
Used: 880MB
Available: 3131MB
Installed: 4010MB
Load Information: 0.13 0.24 0.32
Uptime: 52 days, 17 hours, 39 seconds
IOStat Information:
avg-cpu: %user %nice %system %iowait %steal %idle
25.73 0.11 9.26 0.05 0.32 64.51
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
xvda 11.98 5.93 182.94 27024797 833558052
xvdf 0.64 0.00 0.00 1072 0
xvde 1.89 0.28 18.48 1273072 84195264
dm-0 15.86 6.20 201.41 28263996 917694976
dm-1 0.00 0.01 0.01 25840 57712
ChkServd Version: 15.1
what is the httpd process actually running?
these are the processes I see in WHM when I have a look

2939 (Trace) (Kill) nobody 0 4.1 0.6 /usr/local/apache/bin/httpd -k start -DSSL
2967 (Trace) (Kill) nobody 0 3.9 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2937 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2941 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2943 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2947 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2949 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2948 (Trace) (Kill) nobody 0 3.6 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2944 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2951 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2952 (Trace) (Kill) nobody 0 3.1 0.5 /usr/local/apache/bin/httpd -k start -DSSL
4363 (Trace) (Kill) nobody 0 3.0 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2925 (Trace) (Kill) nobody 0 2.8 0.7 /usr/local/apache/bin/httpd -k start -DSSL
4903 (Trace) (Kill) nobody 0 2.2 0.5 /usr/local/apache/bin/httpd -k start -DSSL
(2014-07-23, 03:52 PM)GCZone Wrote: [ -> ]these are the processes I see in WHM when I have a look

2939 (Trace) (Kill) nobody 0 4.1 0.6 /usr/local/apache/bin/httpd -k start -DSSL
2967 (Trace) (Kill) nobody 0 3.9 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2937 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2941 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2943 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2947 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2949 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2948 (Trace) (Kill) nobody 0 3.6 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2944 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2951 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2952 (Trace) (Kill) nobody 0 3.1 0.5 /usr/local/apache/bin/httpd -k start -DSSL
4363 (Trace) (Kill) nobody 0 3.0 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2925 (Trace) (Kill) nobody 0 2.8 0.7 /usr/local/apache/bin/httpd -k start -DSSL
4903 (Trace) (Kill) nobody 0 2.2 0.5 /usr/local/apache/bin/httpd -k start -DSSL

yes but that doesn't show the page sit is actually running

We need to find what this is getting hung on, at the moment there is no specific evidence that this is a mybb issue.

Does your VPS come with any support, you may need to log it with them.

I dont like the performance of apache, so under WHM it may be worth installing
https://github.com/Prajithp/ApacheBooster

(well actually https://github.com/breezylinuz/ApacheBooster.git now)

That will alleviate some of the load.

Under SSH what do you get when you run TOP?
(2014-07-23, 03:55 PM)Dannymh Wrote: [ -> ]
(2014-07-23, 03:52 PM)GCZone Wrote: [ -> ]these are the processes I see in WHM when I have a look

2939 (Trace) (Kill) nobody 0 4.1 0.6 /usr/local/apache/bin/httpd -k start -DSSL
2967 (Trace) (Kill) nobody 0 3.9 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2937 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2941 (Trace) (Kill) nobody 0 3.8 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2943 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2947 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2949 (Trace) (Kill) nobody 0 3.7 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2948 (Trace) (Kill) nobody 0 3.6 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2944 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2951 (Trace) (Kill) nobody 0 3.4 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2952 (Trace) (Kill) nobody 0 3.1 0.5 /usr/local/apache/bin/httpd -k start -DSSL
4363 (Trace) (Kill) nobody 0 3.0 0.5 /usr/local/apache/bin/httpd -k start -DSSL
2925 (Trace) (Kill) nobody 0 2.8 0.7 /usr/local/apache/bin/httpd -k start -DSSL
4903 (Trace) (Kill) nobody 0 2.2 0.5 /usr/local/apache/bin/httpd -k start -DSSL

yes but that doesn't show the page sit is actually running

We need to find what this is getting hung on, at the moment there is no specific evidence that this is a mybb issue.

Does your VPS come with any support, you may need to log it with them.

I dont like the performance of apache, so under WHM it may be worth installing
https://github.com/Prajithp/ApacheBooster

(well actually https://github.com/breezylinuz/ApacheBooster.git now)

That will alleviate some of the load.

Under SSH what do you get when you run TOP?

what has this got to do with mybb ?
JimR

Depending on the config of the vps mybb can lock up threads and not release them
(2014-07-23, 05:58 PM)Dannymh Wrote: [ -> ]JimR

Depending on the config of the vps mybb can lock up threads and not release them

how can this be doone?
so that
i can avoid this what needs to be avoided in the apache config
First we need to find the cause in this persons environment.
Nginx solved it in mine as well as ensuring your DB is configured right.

It is a misnomer to say "how do I avoid it" when we don't yet know the specific cause. The same goes for saying "this has nothing to do with mybb"

We don't have enough information for either assumption yet
Thanks Danny. Yes it's myBB opening the connections as mybb is the only thing installed on my VPS. 1 single forum only at the moment. This doesn't necessarily mean that mybb is causing the connections to stay open. I've been changing server settings for over a week now + mybb settings and still not moved forward.

I have looked at Apachebooster and will get this installed in a minute and then if needed come back to you as from the reading ive done this may well help.

Either way, thank you for the help and support so far.

PS: I dont chuck threads up here until I really am stuck. But in this case I am Smile
(2014-07-23, 03:23 PM)GCZone Wrote: [ -> ]Service: lfd
Notification Type: failed
Notification: lfd failed @ Wed Jul 23 13:44:14 2014. A restart was attempted automagically.

Have you checked the lfd log? Maybe update CFS?

It is also possible that it is hanging because of mysql -- can you see if there is a table lock or something else happening in the database when it's hanging?
Pages: 1 2