Run Away Apache - Can Not Find Cuase

Sep 5, 2007

I am having a problem with my web server where apache is eating up all memory AND all swap. For example last night I left a SSH session open to my server running top sorted by memory usage and this am the server was down again, I was unable to reach it. I had request a reboot, but on my screen running top I had...

06:21:16 up 24 days, 2:47, 1 user, load average: 179.43, 137.53, 75.9
Cpu(s): 1.8%us, 9.4%sy, 0.0%ni, 0.0%id, 86.6%wa, 0.3%hi, 1.9%si, 0.0%st

It also reported 8mb of RAM free, and 0K of swap free. It was sorted on memory usage and my 17" monitor was filled only with httpd on that list, top entry said 385mb. This will happen with out fail fairly quickly if I do not intervene. Right now I have a cron script that runs ever hour and issues a

/etc/init.d/httpd restart

And that works until Apache runs out of semiphores, then I have to do a

/etc/init.d/httpd stop
for semid in `ipcs -s | grep apache | cut -f2 -d" "`; do ipcrm -s $semid; done
/etc/init.d/httpd start

for it to recover. Right now after the reboot, and 30 mins past the last httpd restart I have...

top - 11:33:05 up 2:00, 3 users, load average: 0.17, 0.12, 0.09
Tasks: 126 total, 1 running, 125 sleeping, 0 stopped, 0 zombie
Cpu(s): 7.1%us, 1.5%sy, 0.0%ni, 90.5%id, 0.8%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 960656k total, 785560k used, 175096k free, 40512k buffers
Swap: 1927792k total, 0k used, 1927792k free, 216472k cached

So all looks fine. Eventually that free number will fall to nothing, and the swap will start filling up. I do not see anything in the logs that is all that helpful. After a httpd restart I will have a lot more free ram.

Server is:

OS: CentOS 5.x x86_64 w/ PLESK + Power Pack

Hardware: AMD 64 Athlon 4200 DC/1024MB/160GB SATA

(if I could do it over I would not put PLESK on, turns out to be a PITB, my other servers do not have a control panel and all run fine... )

Apache is:

[root@www log]# rpm -q httpd
httpd-2.2.3-7.el5.centos

The primary function of this server is to run a web forum based on Invison Power Board, and I have kept up with their patches.

I have never had this problem on any server I have run.

View 14 Replies


ADVERTISEMENT

Where Can I Find How To Configure Apache

May 31, 2009

Where can I find how to configure apache for web hosting correctly?

View 7 Replies View Related

[Apache] Anyway To Stop Bots Trying To Find Pages

Apr 22, 2009

Looking trough my logs I found something that bothers me, there are bots who keep doing requests on my website with pages like /admin or /secure to find vulnerabilities.
It's making about 5-6 requests for unexisting pages every second until it comes to the end of it's dictionary (the pages are even sorted in alphabetical order,

Is there some way to let my Apache server block access to these bots when they make X attemps to see a page who does not exists in a short amount of time? A bit like iptables reject connection if someone tries to log in but fails to do so too many times.

View 6 Replies View Related

Find Out Which .conf Files Apache 2.2 Is Loading

Apr 23, 2009

Is there a way to get Apache to tell me which .conf file it is loading at start-up?

There's a box that's misbehaving and Apache is running on port 80 and 8080 on the box... but we can't locate *why* it's running on port 8080. I can't find any Listen 8080 statement in the typical config files. If I knew which config files it was loading, I could go through all of the files in more detail.

View 4 Replies View Related

Apache :: Cannot Find Right Redirect Code For HTAccess

Feb 26, 2013

For an unknown reason Google is generating url extentions on rich snippet pages. the most common one that I get it domain.com/?SD I would like to get rid of ?SD and redirect to domain.com or / is enough Now, I am unable to redirect using htaccess %{QUERY_STRING} , and a few other syntaxes did not work.

View 2 Replies View Related

How To Find The Script Which Uses Exim And Apache To Send Spam

Mar 14, 2008

Not far ago somebody hacked our customer account through the vulnerability in phpBB Album module and uploaded some scripts. Then it started to send nigerian spam using exim and apache. These scripts were found and deleted and the Album module was fully deleted too. But when I look at the processes now I see that exim and httpd still start very often so the system resources are probably overused by them ......

View 7 Replies View Related

Using Find Command With Regex To Find All Number-only Filenames

Oct 15, 2007

how can i do a search for all files (probs using regex) of files consisting purely of numbers?

for e.g. find:

53243.php
24353.php
24098.php

(always have 5 numbers).

seems one of my accounts has had some script run which generated a bunch of these in various subfolders, and the php file basically does a callback to www3.rssnews.ws and www3.xmldata.info, which seem to be some sort of spyware servers.

View 10 Replies View Related

Find & Tar

Jun 21, 2007

I can't seem to figure out why this is not working. I want to cd into a directory and only compress certain files. However, what I end up with is a file called ..tgz (I am not sure why it is adding that other dot).

Here is the command line:

find . -mmin +1 -exec tar czf {}.tgz {} ;

View 2 Replies View Related

Someone Are Using My BW. Can I Find Out Whose Ips

Jul 14, 2007

I have a CentOS web server at my company. It's dual opteron. That server also acts like a router and I have about 5 computer are connected to that router. My web server has been slowed and can i find out who is using my bw ?. Those 5 computers has only local ips (10.10.0.x).

that my website is just for me, no one else know that website.

View 5 Replies View Related

How-To: Find PHP Nobody Spammers!

Apr 9, 2004

Someone posted some code similar to below, I made modifications or two after trying to detect PHP "nobody" users, after dumping a few printenv I found PHP exports PWD when calling an external program such sendmail. Basically the PWD will show the user directory that is coming from, which is enough to detect who is sending SPAM even as nobody! It's not 100% secure in that they could wipe /var/log/formmail but I don't imagine any spam will notice the logger, they presume any cPanel server (or other CP for that matter) is the same.

mv /usr/sbin/sendmail /usr/sbin/sendmail2
pico /usr/bin/sendmail (paste the below code into it)
chmod +x /usr/bin/sendmail
echo > /var/log/formmail
chmod 777 /var/log/formail

#!/usr/local/bin/perl

# use strict;
use Env;
my $date = `date`;
chomp $date;
open (INFO, ">>/var/log/formmail.log") || die "Failed to open file ::$!";
my $uid = $>;
my @info = getpwuid($uid);
if($REMOTE_ADDR) {
print INFO "$date - $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME";
}
else {

print INFO "$date - $PWD - @info";

}
my $mailprog = '/usr/sbin/sendmail.real';
foreach (@ARGV) {
$arg="$arg" . " $_";
}

open (MAIL,"|$mailprog $arg") || die "cannot open $mailprog: $!";
while (<STDIN> ) {
print MAIL;
}
close (INFO);
close (MAIL);

View 14 Replies View Related

How Do You Find Joe's Datacenter

Oct 3, 2009

i want to know more about there service.
does any one work with them?
i need more review about them.

View 14 Replies View Related

Where To Find My Crontab

Jun 23, 2009

in which folder is the crontab generally located.

i run LAMP

also,i m looking for a specific cron right now (xbt_cron).once i find it ,what command do i use to run it manually.its supposed to run by itself..i just moved to a new server last week and now its stopped working.

View 7 Replies View Related

Where To Find VPS On Litespeed

Feb 27, 2009

I tried searching for it on google but couldn't find any server company offering VPS using Litespeed instead of Apache. Yes, I know that Apache could be optimized, but would like to try a VPS or dedicated server with Litespeed, just for testing and learning to use and troubleshoot Litespeed. Does anybody here know of a supplier? I would need less than 10 gigs, 250+ Ram as well as cPanel.

View 13 Replies View Related

How To Find Paths Within The VPS

Nov 26, 2008

How can I find a path in my VPS? It uses virtuozzo. I am new to all this so this might be a stupid question..

For example, my host says ffmpeg is in usr/bin/ffmpeg,, how do I find /usr/?

View 6 Replies View Related

Where Can I Find 10+ Tb Bandwidth

Sep 4, 2008

Here's my situation:

I run a site that does a lot of transfers AND uses a lot of CPU resources. I think I would like to get two different hosting plans to deal with these different patterns of usage, but where can I find a good host offering lots of bandwidth that is content to have it actually used? I've been with DreamHost for a while but they don't allow "data archiving" or whatever (and I have arguments against their claims but it's neither here nor there). So, really, where the heck can a guy find a good host offering plenty of space and bandwidth? Keep in mind I need pretty much no CPU power with such a plan; the web server can be stone cold stupid for all I care, as I can just get a VPS to run the CPU-intensive part of my site!

View 14 Replies View Related

How Do You Find Your Host

Apr 21, 2008

I was wondering how you guys go about finding a host?

Where do you do your research?

What forums do you use?

What else do you do in your process before finding a web host?

Do you subscribe to newsletters or web host magazines?

View 14 Replies View Related

/var Is Full, Cant Find

May 10, 2008

Weve got a server where the /var is setup at 7gb, which is now %100 full.

Weve deleted the common logs we always notice, but thats only gotten us down to %94.

Anyone have any ideas what we should be cleaning or a good script that might help?

seems 5.5gb of data is in /lib

What is safe to delete from /lib and why is it taking up so much space?

View 4 Replies View Related

Find Domain Against PID

Sep 12, 2007

If I have PID 1122 of apche httpd and using 99% CPU. How can I find the crosponding web site name which is utilizing that much CPU so I can the suspend it.

View 1 Replies View Related

How To Find A Big File

Sep 14, 2007

Over the last day. I have noticed that something is suddenly taking up 15gb on my server.

My server is Centos.

How would i find what this is. I have tried for about 1 hour to track this down but cant find anything.

How do i do a search of all files on the server and arranging it by the file size.

View 3 Replies View Related

Cannot Find The Maillog

Jan 23, 2007

waht i do ?

Code:
root@server [~]# service exim restart
Shutting down clamd: [ OK ]
Shutting down exim: [ OK ]
Shutting down antirelayd: [FAILED]
Shutting down spamd: [ OK ]
Starting clamd: [ OK ]
Starting exim-26: [ OK ]
Starting exim: [ OK ]
Starting exim-smtps: [ OK ]
Starting antirelayd: Cannot find the maillog at /usr/sbin/antirelayd line 26.
[FAILED]
Starting spamd: [ OK ]

View 2 Replies View Related

How To Find The Fiber

May 26, 2007

Assuming that one was to get a local office in a town, how would someone find building or area that had a high availbility of fiber nearby, but was not a datacenter? Are their fiber maps for each big city? Does anyone have fiber maps for Houston, Texas? I would be interested in seeing these maps if possible.

View 5 Replies View Related

Can't Find Wget

Dec 28, 2007

I can't find wget on a hosting. SSH command find / -name wget returns with nothing, however wget works properly on a hosting, what could the problem be?

View 14 Replies View Related

How To Find Blocked IPs

Jun 4, 2007

Some of our servers are complaining that they can't access the website. How can we check the blocked IPs using IP tables rules? Are there any special command to check?

View 3 Replies View Related

Find Shell

Oct 9, 2007

How can i find shell in my server?

is a program that find them?

my server is linux / centos / cpanel control panel

how can i disable shell in my server?

and stop deface

View 5 Replies View Related

Can I Find Free Hosts?

May 13, 2008

where can I find free hosts?

View 1 Replies View Related

Find And Kill Spammers!

May 18, 2007

Just got alerted that my server is being used to send spam. Here is the information the datacenter gave me:

[information .....]

NOTE: I changed the real domain name and IP only.

Is there an expert who can help me decipher this? How do I find the culprit? My provider is threatening to shut me down and sink all my clients with the ship!

I am running the latest WHM and cpanel server, fyi.

View 14 Replies View Related

How Do I Find Out CPU Details Of My Server

Oct 2, 2009

Q. I've a dedicated server and I'd like to find out my servers details [CPU, RAM, HDD] etc. How?

Q. My server comes with two HDDs. How do I access them through the WHM or cPanel?

View 5 Replies View Related

Trying To Find A Server Host

May 13, 2009

Im trying to find the most reliable webhoster on the wed. Im looking to start a business where i can offer regular hosting as well as reseller accounts. Im looking for a good server with a low price.

View 8 Replies View Related

Find A Host. NO SPAM

Feb 1, 2009

I have a web blog that shows promise of growing pretty big soon! This is a vbulletin whith chatbox and arcade games. The forum is for gamers and game modification talk. I want to keep my features such as in forum mp3 player for streaming music. I host no files everything is linked from outside sources. Even photos are linked from photo hosts. I forsee about 20-30 members on at all time browsing and chatting in chatbox. Playing in the online arcade!

I have no idea how much bandwidth all this will use up. I do know that 20-40 gig of space should be quite enough but as always I want all I can get. As far as bandwidth I have no idea what all those features will eat up.

I have looked at fatcow.com and talked to them they said their unlimited is this 300gig space 3000 gig bandwidth and they do not keep up with msql databases. I looked on BBB and they have an A+ record if compared to hostgator they have unsatifatory! The only problem is they are yearly contract only. I do not trust this! I also have to let them re-bill me at end of year and this gives them access to my account. The payment options are check,paybal, or credit.

View 9 Replies View Related

How To Find Out One Provider If It Is An Overseller

Jun 4, 2009

how to find out one provider if it is an overseller.

Disk storage size
Bandwidth
CPU/Memory

For CPU/Memory it is hard to say how to check, but we can check the allowed Disk storage size and Bandwidth.

The marketing price can be presumed $0.1/1GB for Bandwidth, and $1/1GB for Disk storage size.

If the assumed marking price is correct, we can use this standard to check one provider if it is overseller.

View 14 Replies View Related

Where Can I Find Free PhP Web Hosting

Jan 24, 2009

Where can I find free web hosting that supports Php?

Basically so I can have my viewers post me form messages on my website to my email?

Also which is better to use Php or .asp & whats there differences?

View 3 Replies View Related







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