Lighttpd - 95% Cpu Usage. Apache - All Ram Used, Swap Comes In

Oct 9, 2007

I've hired *name* to take care of my server, but it's just getting so frustrating, as it seems they can't fix my server/optimize it correctly.

I just want some input as to what the problem is here.

I got them to install lighttpd along with xcache.

After about 15-18 hours, the server's CPU slowly increases to be using 90-90%, giving me the 500 Internal Server Error.

I've asked them to optimize xcache and lighttpd, but I keep getting these responses:

Quote:

The should be pretty optimized. Xcache has limited optimization features.

Quote:

Lighttpd itself is pretty optimized, the problem is php. Php runs as its own binary and theres not many parameters that can be tweaked.

Is that even correct?

-------------------------

So I got them to enable apache, and disable lighttpd.

This time, it's the other way around.

My ram get's completely used up, forcing the server to use Swap; making the load shoot to 50+. CPU usage is fine the entire way.

-------------------------

This has been going back and forth, enabling/disabling lighttpd and re-enabling apache but a problem always comes up each time.

Am I asking for too much?

Server specs;
Intel C2D E6400
4GB Ram

There is only one IPB board on this server - nothing else.

Average users is 70-200 users within 15 minutes.

This is what I'm getting when lighttpd is on:

Code:
top - 22:56:02 up 18:46, 1 user, load average: 23.38, 22.84, 22.44
Tasks: 117 total, 17 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 95.0%us, 4.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.5%si, 0.0%st
Mem: 4147196k total, 1346888k used, 2800308k free, 203144k buffers
Swap: 2907756k total, 0k used, 2907756k free, 712584k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2401 mysql 15 0 318m 107m 3868 S 44 2.6 49:02.02 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib
3279 root 15 0 27712 15m 2900 S 12 0.4 10:33.81 /usr/local/lighttpd/bin/php-cgi
3272 root 16 0 29752 16m 2908 R 11 0.4 10:15.94 /usr/local/lighttpd/bin/php-cgi
3266 root 15 0 27536 14m 2920 S 11 0.4 10:40.14 /usr/local/lighttpd/bin/php-cgi
3270 root 16 0 27624 14m 2908 R 11 0.4 10:36.71 /usr/local/lighttpd/bin/php-cgi
3267 root 16 0 27796 14m 2972 R 10 0.4 10:35.22 /usr/local/lighttpd/bin/php-cgi
3268 root 15 0 28148 15m 3112 S 10 0.4 10:49.86 /usr/local/lighttpd/bin/php-cgi
3276 root 16 0 27696 15m 2900 R 10 0.4 10:29.73 /usr/local/lighttpd/bin/php-cgi
3269 root 16 0 28312 15m 2916 R 10 0.4 10:23.57 /usr/local/lighttpd/bin/php-cgi
3274 root 16 0 27924 15m 2912 R 10 0.4 10:44.51 /usr/local/lighttpd/bin/php-cgi
3275 root 16 0 29368 16m 2928 R 9 0.4 10:41.84 /usr/local/lighttpd/bin/php-cgi
3278 root 15 0 29432 16m 2876 S 9 0.4 10:28.52 /usr/local/lighttpd/bin/php-cgi
3271 root 16 0 26784 14m 2900 R 9 0.3 10:41.61 /usr/local/lighttpd/bin/php-cgi
3277 root 16 0 27156 14m 2928 R 9 0.4 10:31.07 /usr/local/lighttpd/bin/php-cgi
3265 root 15 0 28408 15m 2880 S 8 0.4 10:46.89 /usr/local/lighttpd/bin/php-cgi
3280 root 16 0 27036 14m 2880 R 8 0.3 10:43.20 /usr/local/lighttpd/bin/php-cgi
3273 root 15 0 24676 12m 2952 R 8 0.3 10:43.57 /usr/local/lighttpd/bin/php-cgi
3262 root 15 0 13356 11m 632 R 3 0.3 3:04.27 /usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
1 root 15 0 2032 648 552 S 0 0.0 0:00.36 init [3]
2 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/0]
3 root 34 19 0 0 0 R 0 0.0 0:00.00 [ksoftirqd/0]
4 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/0]
5 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/1]
6 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/1]
7 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/1]
8 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/0]
9 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/1]
10 root 10 -5 0 0 0 S 0 0.0 0:00.00 [khelper]
11 root 11 -5 0 0 0 S 0 0.0 0:00.00 [kthread]
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/0]
16 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/1]

View 14 Replies


ADVERTISEMENT

High Swap Usage

Feb 18, 2007

i have a problem with my server it is a Xeon with 2Gb ram, i have a igh swap usage and when it reach the size of 4gb that i have set it go in kernel panic, this is the actual value

top - 14:19:47 up 1 day, 23:07, 1 user, load average: 1.74, 1.93, 1.89
Tasks: 223 total, 5 running, 217 sleeping, 1 stopped, 0 zombie
Cpu(s): 39.8% us, 6.6% sy, 14.0% ni, 32.3% id, 7.3% wa, 0.0% hi, 0.0% si
Mem: 2074640k total, 1980804k used, 93836k free, 66200k buffers
Swap: 4192924k total, 1735588k used, 2457336k free, 365136k cached

total used free shared buffers cached
Mem: 2026 1877 148 0 61 306
-/+ buffers/cache: 1509 516
Swap: 4094 1699 2394

maybe i can work on KeepAlaive setting?

View 6 Replies View Related

High Swap Usage

Jan 20, 2007

Quote:

total used free shared buffers cached
Mem: 1034060 1004864 29196 0 50756 340272
-/+ buffers/cache: 613836 420224
Swap: 1020088 373648 646440

Is there anything I can do to reduce the swap usage?

Running cpanel, Dual Xeon 3.0ghz with 1 gb ram

Quote:

root@****** [~]# uname -a
Linux ****** 2.6.9-42.0.3.EL.cernsmp #1 SMP Fri Oct 6 12:07:54 CEST 2006 i686 i686 i386 GNU/Linux

View 1 Replies View Related

High Server Load! Swap And Memory Usage

Nov 19, 2007

I have a linux server that is only hosting one site , and although the httpd and mysql are working well , then the server load is high and when I restart the server the server load is high till the swap accelerates to 100% and then it uses the memory alot.

View 5 Replies View Related

Plesk 12.x / Linux :: High Memory Usage - Swap So High

Nov 14, 2014

This is my free -m

total used free shared buffers cached
Mem: 1998 1903 95 0 45 542
-/+ buffers/cache: 1315 683
Swap: 2662 36 2625

Not good ....

I got 5 wordpress and 5 statics website on this server and 100 visitors by 24H00 each day.

Question 1 : Why the memory is so low and the swap so high ?
Question 2 : Why i don't find high usage process in top command ?
Question 3 How can i resolve this problem ?

View 2 Replies View Related

Apache Eats All Free Memory And Swap

Jun 22, 2009

I'm having an issue with what I believe is Apache. Things will be running nicely, then all of a sudden things will just 'blow up'. Apache seems to fork a bunch of new processes, and it starts ripping into the memory. I've had it essentially eat through all the free memory and swap, and the system will then freeze up as there's no more memory. This is a CentOS server running CPanel, the configuration had been up and running for a long time without problems then this suddenly started happening.

View 7 Replies View Related

Apache And Lighttpd, Both Use Same Php.ini

Jun 3, 2009

my php.ini had some changes (/etc/php.ini). Today i have switch from apache to lighttpd, do i need to edit another php.ini file ? Apache and lighttpd use the same php.ini ( /etc/php.ini)?

View 5 Replies View Related

Apache Vs Lighttpd

Aug 9, 2009

Until recently, it seemed like everything I read about a server indicated that Apache was king. I have never read anything that has given me any reason not to use Apache.

However, about a year ago when I discovered Django, I discovered Lighttpd. From everything I've been able to read, Lighttpd seems to be a better web server, but still don't know very much at all about Lighttpd.

I'm fairly comfortable with Apache, although I've never cared much for it. I have a feeling that I'll like Lighttpd quite a bit more from the very little that I do know about it. I'm wondering if I should even consider switching.

For one, it seems that everyone knows how to work with Apache and Lighttpd seems to be far less common. Apache also seems to be much more established which leads me to believe that it's a safer choice. Nonetheless, I still really want to give Lighttpd a shot. And, judging from what I've seen about Django and Lighttpd, Lighttpd seems to be a better choice when working with Django.

What do you think? Should I stick with Apache since I already know how to use it? Is Lighttpd worth the time to learn or is Apache just too good?

View 2 Replies View Related

Apache Or Lighttpd

Jun 5, 2009

I wanted to know what do you prefer as server apache or lighttpd , though I am running lighttpd and have no issue except that there is too much work for mod rewrite and it effects search engine, so I was thinking to use apache instaed of it will it be possible to install apache over lighttpd or will I have to go for fresh install.

View 14 Replies View Related

Lighttpd Or Apache

Aug 6, 2007

For a year now I've been running my server with Lighttpd. It's worked out well so far, but now that I have a new box I'm reconsidering.

Lighttpd does not support .htaccess files which is a bit of a pain, and doesn't have the same support by apps like Apache does. Given that I get very little traffic to my box (it sits idle most of the time) I am considering Apache.

How is security between Apache and Lighttpd? I know Apache has things like mod_security and mod_evasive, but I've never really checked how Lighttpd compared.

View 12 Replies View Related

Apache And Lighttpd Together

Dec 23, 2007

Is it possible to do this scenario:

[url]

[url]

So basically anything that comes out of "upload" directory will be served by apache and both on port 80 from the end-users point of view.

View 3 Replies View Related

Apache 2.2.x Vs Lighttpd

Jan 7, 2007

which web server you recommend for a vb forum? apache 2.2.x or lighttpd?

performance and resource usage....

View 1 Replies View Related

Switch From Apache To Lighttpd

May 14, 2009

i want to Migrate from apache to lighttpd and i found out hypervm can do it, just click Update. But i'm noob here and i need help.

- Does i need to check something to make sure Migrating from apache to highttpd without problem?

- Can i switch back later ( withou problem )?

View 4 Replies View Related

Lighttpd / Apache - Restarting The Server

May 30, 2009

We've been thinking about writing our own hosting control panel for our own
"tight" hosting setup, so that can alter the panel just to our needs without relying on updates from anybody else.

To read new configurations in Lighttpd or Apache, as far as I know, requires the software to be restarted (for example service apache restart). Are there any negative effects of this, I'm assuming that whilst being restarted there is a small amount of time during which the software is "down" and websites can't be accessed during that period (probably <1 second). Am I correct?

What is the best way to reload configurations into these http servers without service interruption? I notice that DirectAdmin seems to just restart Apache on any function that alters the configuration file - for example adding a new user.

View 4 Replies View Related

Lighttpd And Apache Configuration For A Subdomain

Jul 2, 2008

I was recently inroduced to lighttpd being able to run on apache with a different port. So I setup my lighttpd that way.

lighttpd.conf

Code:
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog" )

server.document-root = "/var/www/vhosts/domain.com/httpdocs/lighttpd/"

server.errorlog = "/var/log/lighttpd/error.log"

index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
and my httpd.conf

Code:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /lighttpd http://0.0.0.0:81/
ProxyPassReverse / http://0.0.0.0:81/
Now when I created a folder on my server's httpdocs /lighttpd/

everything runs smooth so I got the lighty to work for me.

Okay now that i figure it works I wanted to run one of my subdomain on lighty so that I can reduce the load on the server. Does anyone know how I can setup one of my subdomain to open with lighttpd and keep everything else on apache?

View 1 Replies View Related

Lighttpd And Apache With Cpanel Or Directadmin

Jun 21, 2007

Has anyone done this or currently running this setup? to try it with my directadmin server first but havent found very good documentation or howtos. Ive looked the last week or so and havent really found anything helpful. So if anyone is running such a setup Id like to know how you did it and how much better if any it is.

View 0 Replies View Related

Apache RewriteRule Convert To Lighttpd

Dec 31, 2007

at Lighttpd, and after trying for 2 hours to convert/rewrite apache's rewriterule into Lighttpd format, I became extremely confused.

Here's what I have in apache's rewriterule:

Code:
RewriteCond %{IS_SUBREQ} ^false [NC]
RewriteCond %{HTTP:Authorization} ^basic [NC]
RewriteCond /root/to/a/folder/%{REMOTE_USER} -f
RewriteRule (.*) http://www.domain.com/your_username_is_blocked.html

View 1 Replies View Related

Running Lighttpd Along Side Apache

Apr 19, 2007

How do I configure Lighttpd to serve images/javascript/css files that are littered about my websites? Can I just input the paths of all the directories that I want Lighttpd to serve from?

For example, I have 4 separate websites with each having a message board, main page etc... Could I have lighty serve the files from:

/var/www/html/site1/images
/var/www/html/site2/images
/var/www/html/site3/images
/var/www/html/site4/images
/var/www/html/site1/javascript
etc....

and have Apache serve the files from all the other directories?

View 8 Replies View Related

How To Set Lighttpd Proxy To Let Apache Run Cgi/perl Scripts?

Oct 24, 2008

I'm running both Apache (on port 81) and Lighttpd (port 80) on my VPS. I would like to have Apache run CGI/Perl scripts only for virtual hosts in the Lighttpd.conf. My Lighttpd.conf already has fastCGI enabled though.

View 3 Replies View Related

Serving Domain Through Apache And Lighttpd At Same Time

Jan 11, 2008

There are 2 different domains with the same IP being served by Apache. I want one of the domains to be served by lighttpd, is it possible without having to change the IP of that domain?

View 11 Replies View Related

How To Setup Linux Proxy Server Apache+lighttpd

Apr 24, 2007

somebody know is possible on some way route traffic before come to web server (apache or lighttpd)?

I want to setup lighttpd on port 80 and apache on port 81 and I want visitors to go direct to apache or lighttpd without url:81 and that must work on this way if somebody visiting url1.domain.com that go to lighttpd on port 80 and if somebody visiting url2.domain.com that go to apache on port 81 and something must route it before lighttpd and apache (and get/post must work), is this possible on some way?

I know that lighttpd and apache can do it but I don`t need it on that way!

View 8 Replies View Related

How We Can Up The Apache Memory Usage

Nov 18, 2008

my grunted memory for apatchi is 51 meg
i want make him 256meg
because the vps its alwayes down
see this please

HTML Code:
29890 nobody 0

2.5

0.1 /usr/local/apache/bin/httpd -k start -DSSL
31854 nobody 0

2.3

0.1 /usr/local/apache/bin/httpd -k start -DSSL
31766 nobody 0

1.8

0.1 /usr/local/apache/bin/httpd -k start -DSSL
32043 nobody 0

1.7

0.1 /usr/local/apache/bin/httpd -k start -DSSL
25921 nobody 0

1.4

0.1 /usr/local/apache/bin/httpd -k start -DSSL
32014 nobody 0

1.3

0.1 /usr/local/apache/bin/httpd -k start -DSSL
25998 nobody 0

1.3

0.1 /usr/local/apache/bin/httpd -k start -DSSL
30388 nobody 0

1.0

0.1 /usr/local/apache/bin/httpd -k start -DSSL

View 3 Replies View Related

Can I Limit Apache's Cpu Usage

Feb 2, 2007

I have a server running Apache 2 with php 5 as an apache module. There are 2 PHP scripts that get about 500k hits a day. These scripts have to parse data out of a remote webpage and display it on an image. They used to make loads go up to 40-50, but I have added a cache which only updates every 4 hours. This helped a lot, but loads are still around 10 when the script updates, and it slows down the server. Memory usage is fine.
The server is an AMD Athlon 64 2800+ with 1 gb of ram and an 80GB SATA hard drive.

Here's `top` when the cache had just been cleared.

Quote:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28004 named 16 0 121m 11m 3796 S 12.3 1.3 0:00.96 apache2
28003 named 15 0 121m 11m 3740 S 12.0 1.3 0:01.00 apache2
5316 tarball 15 0 43032 29m 2320 S 11.3 3.1 326:08.68 ircd
27998 named 16 0 121m 11m 3808 S 11.3 1.3 0:00.51 apache2
27989 named 15 0 121m 11m 3800 S 10.3 1.3 0:01.14 apache2
28007 named 16 0 121m 11m 3776 R 8.0 1.2 0:00.24 apache2
28008 named 15 0 121m 11m 3776 S 7.0 1.2 0:00.22 apache2
27979 named 16 0 121m 11m 3752 R 6.0 1.3 0:02.06 apache2
27983 named 16 0 121m 11m 3748 R 6.0 1.3 0:01.94 apache2
27985 named 15 0 121m 11m 3748 S 6.0 1.3 0:01.05 apache2
27992 named 16 0 121m 11m 3792 S 5.0 1.3 0:00.33 apache2
27980 named 15 0 121m 11m 3796 R 2.3 1.3 0:03.24 apache2
28009 named 15 0 121m 11m 3796 S 1.7 1.3 0:00.82 apache2
27715 root 15 0 5192 1164 844 R 0.3 0.1 0:00.94 top
27960 named 15 0 121m 11m 3808 S 0.3 1.3 0:01.42 apache2
27984 named 15 0 121m 11m 3804 S 0.3 1.3 0:01.94 apache2
27987 named 15 0 121m 11m 3796 S 0.3 1.3 0:01.04 apache2
28006 named 15 0 121m 10m 3292 S 0.3 1.2 0:00.50 apache2

Idle CPU usage usually goes anywhere from 30%-0%. Is there any way to limit apache from using more than 75% cpu, or any other ways to drop cpu usage?

View 10 Replies View Related

Limit Apache Usage And

Oct 23, 2007

i have one centos dedicated server and cpanel i will going to apache status is very request link and 2 site are very high in the list and my apache worked very hard and going to down any hours of your seems i must how control it?

View 7 Replies View Related

Remove Apache Usage Log In DirectAdmin

Jun 8, 2009

is it possible to remove or reset Apache Usage Log in DirectAdmin?

because it takes large space on my server and it increase heavily everyday

any idea , I can't find anything on DA forums!

View 10 Replies View Related

Apache Memory Usage, Why So Different On 2 VPSs

Mar 24, 2009

I currently have 2 VPSs that I'm monitoring and I noticed that on one of them the memory usage is much higher than the other which doesn't make sense to me. I tracked the high memory usage to the Apache processes.

Here's the overview of the VPSs:

LiquidWeb VPS- 512MB RAM, 10 Sites with minimal usage.
Average httpd process (Owner Priority Cpu% Mem% Command):
nobody 0 0.0 1.2 /usr/local/apache/bin/httpd -k start -DSSL

Virpus VPS- 384MB RAM, 61 sites with moderate usage.
Average httpd process (Owner Priority Cpu% Mem% Command):
nobody 0 0.0 0.3 /usr/local/apache/bin/httpd -k start -DSSL

Both Apache configurations are identical, the only difference besides the hardware is that LiquidWeb runs CentOS4.7 and Virpus runs CentOS5.2, any ideas? It's not to big of a deal since I'm not near my limit for either of them but I was just curious.

View 7 Replies View Related

Average Apache CPU And Memory Usage

Aug 14, 2008

tell me what the average usage of the CPU and RAM be from apache?

User 'Nobody' (Which I presume is apache) is using 13% CPU and 38.98% of RAM. Is this normal or is it well overloaded?

View 13 Replies View Related

Apache Memory / Cpu Usage / Magento

Jul 31, 2014

I'm running a single Magento website with only around 150 products, and very low traffic, on a VPS with 2 Cores and 4GB of ram. However I am getting constant warning emails about high Apache Memory usage and High CPU usage.

The server and site were working fine, however since the server failed (Power cut on upgrade at the hosts end) and we rebuilt the website I'm getting these warnings, my host said it is just the website and the server needed upgrading... to which I did (server was a 1 core 2GB ram server). However since I've upgraded I'm still getting these warning emails.

Here is the latest one: URL...

Code:
4951 apache 20 0 441m 137m 6556 S 0.0 3.6 2:28.77 httpd
4952 apache 20 0 443m 139m 7168 S 0.0 3.6 2:43.72 httpd
7377 apache 20 0 358m 54m 6576 S 0.0 1.4 1:25.76 httpd
7692 apache 20 0 433m 129m 6588 S 0.0 3.4 1:20.64 httpd

[code]....

I'm really new to VPS's and plesk so I'm wondering what I can do to try and track down what is causing these high usage as I'm 100% certain the site was fine before. The server has default build both before and after the fail.

Server Information:
OSCentOS 6.5 (Final)
Panel version11.5.30 Update #47
2 Cores
4GB Ram

Are there any tools within plesk that I can use to see what is causing these issues? It's making the website load extremely slow.

View 8 Replies View Related

Apache :: Get Current CPU Usage From Mod Status On Windows?

Mar 19, 2014

Is it possible to get current CPU usage from mod_status on Windows? I thought it's ExtendedStatus On directive required but still no CPU usage.

View 7 Replies View Related

Plesk 11.5 - Apache Memory Usage High

Jul 20, 2014

We are currently running plesk 11.5 and over the last few months, the apache memory usage has been very high. On investigation we have gone through the logs and we can't find a cause.

I can issue a service httpd restart and the memory drops for about 30 minutes and then we see the apache memory grow to almost 1.5 - 2GB. Why this keeps happening?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved