Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:36:04 AM

Pages: [1]   Go Down
  Print  
Author Topic: Apache processes goes into D state (uninteruptable sleep)  (Read 5007 times)
aliefmaksum
Space Explorer
***
Offline Offline

Posts: 8


« on: August 18, 2010, 04:48:17 AM »

Hello,
Recently, my server got this issue..  Confused

Many apache process state goes into D state and after searching on the net, i know that it is uninteruptable sleep.

Does anybody know how to fix this? Because of that, the child process who function only small because the D process eat memory but not responding.
I am using Xen VPS with 1 GB memory and the latest apache. Hope someone can help me fix this because i must reboot my server each time this happen..  (restarting apache also work, but i must manually kill the remaining process after i stop apache and i little bit worried about that)



Regards,

Alief
« Last Edit: August 18, 2010, 04:50:52 AM by aliefmaksum » Logged
JoshuaK
SysAdmin Supervisor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26



WWW
« Reply #1 on: September 03, 2010, 11:37:05 AM »

Hello Alief,

Looking at the stats and reviewing your VPS, it looks like you have been hitting swap (Hard drive space being used as memory) at times on the VPS, which can cause some latency when your server is trying to access files.  This can cause processes to "hang" while the IO waits.

Kind Regards,

Joshua Knapp

Lunarpages Web Hosting
Logged

aliefmaksum
Space Explorer
***
Offline Offline

Posts: 8


« Reply #2 on: September 19, 2010, 09:55:56 PM »

Hello Alief,

Looking at the stats and reviewing your VPS, it looks like you have been hitting swap (Hard drive space being used as memory) at times on the VPS, which can cause some latency when your server is trying to access files.  This can cause processes to "hang" while the IO waits.

Kind Regards,

Joshua Knapp

Lunarpages Web Hosting

Thanks for the reply Joshua,
And how should i response to this problem? Should i decrease my apache setting? Or buying more RAM could solve this problem? Or is this because the database or maybe the harddrive? This thing has start troubling my server and it got down 2 times on just 3 days because of this problem  Crying or Very sad
Logged
JoshuaK
SysAdmin Supervisor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26



WWW
« Reply #3 on: September 20, 2010, 09:24:44 AM »

Hello Alief,

It looks like you have some pretty busy scripts/files on your server.  At the time of writing this your server's load was at 55% (normally you want this number below 1%)
~350 simultaneous connections to your port 80 (web server)
and between 50 and 60 apache processes running at any given time.

It looks like you have installed nginx at some point, but it doesn't appear to be configured properly yet.  You may want to continue setting that up as it does help quite a bit when serving static files.

You may want to consider upgrading RAM and CPU temporarily if you are seeing a boost in traffic on one of your sites.  To discuss that further you will want to email dedicated@lunarpages.com or visit http://Http://support.lunarpages.com to open a ticket.

Kind Regards,

Joshua Knapp

Lunarpages Web Hosting
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: