Load, Bandwidth, Processes, CPU With Simple Php Script
Jun 25, 2007
I am thinking about making a little php file that will print a flash game with a link to my site below the actual game. Other webmasters can use this php file on their site to embed this game.
I'm on shared hosting with Bluehost at the moment. What will be the implications on bandwidth and CPU if these php files which serve the games become popular (get hit quite frequently per day/hour/second)?
View 4 Replies
ADVERTISEMENT
Jul 22, 2008
Is there a way to prevent a certain service from taking up a certain amount of load on the server?
Like, shouldn't there be a way I can tell gzip or exim how much server load they are allowed to take up on my server?
I know it may run them slower, but it will be for the better if I could set each one to only be able to have a max load peak or something.
View 7 Replies
View Related
Oct 25, 2007
I have a centos 4.4 server, I noticed the load is high and when I checked the top command I found the following:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
17212 root 25 0 11504 6236 908 R 57 0.3 195:58.73 http
27994 ftp 18 0 7624 2232 336 R 48 0.1 0:02.39 proftpd
7056 nobody 15 0 27764 10m 1884 S 8 0.5 0:00.62 httpd
4738 nobody 15 0 25788 8952 1976 S 7 0.4 0:08.01 httpd
7199 root 18 0 6376 3704 760 R 6 0.2 0:02.41 top
7021 nobody 16 0 27240 10m 1964 S 5 0.5 0:01.73 httpd
3999 nobody 16 0 26888 9.9m 2008 S 5 0.5 0:09.39 httpd
7180 nobody 15 0 26524 9524 1700 S 5 0.5 0:00.16 httpd
6330 nobody 15 0 26856 9.8m 1992 S 4 0.5 0:04.34 httpd
6272 nobody 15 0 26764 9912 1968 S 2 0.5 0:05.36 httpd
6239 nobody 15 0 25428 8476 1888 S 1 0.4 0:02.95 httpd
1 root 16 0 2300 96 68 S 0 0.0 4:46.28 init
20323 ftp 16 0 5116 428 312 S 0 0.0 0:00.92 proftpd
22126 ftp 16 0 5512 428 312 S 0 0.0 0:01.03 proftpd
22313 ftp 16 0 5644 424 312 S 0 0.0 0:01.00 proftpd
22781 ftp 16 0 5644 460 304 S 0 0.0 0:01.04 proftpd
22837 ftp 16 0 5644 424 312 S 0 0.0 0:01.02 proftpd
24157 ftp 16 0 5776 432 308 S 0 0.0 0:01.09 proftpd
24176 ftp 16 0 5776 432 308 S 0 0.0 0:01.09 proftpd
24989 ftp 16 0 6040 476 316 S 0 0.0 0:00.91 proftpd
25327 ftp 16 0 6172 548 308 R 0 0.0 0:01.02 proftpd
25526 ftp 16 0 6172 808 308 R 0 0.0 0:01.03 proftpd
26013 ftp 16 0 6172 1128 308 R 0 0.1 0:00.98 proftpd
26152 ftp 16 0 6172 1144 312 R 0 0.1 0:01.00 proftpd
26306 ftp 16 0 6172 1172 308 R 0 0.1 0:01.02 proftpd
26455 ftp 16 0 6172 1420 312 S 0 0.1 0:04.02 proftpd
26860 ftp 16 0 6172 928 308 S 0 0.0 0:01.04 proftpd
26936 ftp 16 0 6172 928 308 S 0 0.0 0:00.91 proftpd
27166 ftp 16 0 6172 800 308 S 0 0.0 0:00.96 proftpd
27329 ftp 16 0 6172 716 308 S 0 0.0 0:01.01 proftpd
15659 ftp 16 0 6172 592 308 S 0 0.0 0:00.99 proftpd
4944 ftp 16 0 6172 544 336 S 0 0.0 0:00.98 proftpd
5163 ftp 16 0 6304 544 336 S 0 0.0 0:00.99 proftpd
18964 ftp 16 0 6304 608 308 S 0 0.0 0:00.96 proftpd
19151 ftp 16 0 6304 620 328 S 0 0.0 0:00.99 proftpd
4986 ftp 16 0 6304 596 308 S 0 0.0 0:00.87 proftpd
30721 ftp 16 0 6436 612 312 S 0 0.0 0:00.94 proftpd
13808 ftp 16 0 6436 644 316 S 0 0.0 0:01.01 proftpd
13905 ftp 16 0 6436 640 316 S 0 0.0 0:00.97 proftpd
also when I checked the `ps aux` command I found a lot in this form:
Code:
ftp 22006 0.0 0.0 5512 424 ? S 01:24 0:01 proftpd: (accepting connections)
View 2 Replies
View Related
May 1, 2008
In learning that some hosts seem to be tightening shared hosting specs, I'm wondering what a 'simultaneous process' is... as from this clip: 'number of simultaneous processes should not exceed 5'.
Is each part - for example, graphics and includes - of an individual webpage a 'process'?
View 3 Replies
View Related
Feb 28, 2008
I have a server that has server load showing at 25-40 (once it was even 53!), running like that for hours. The server has 4 cpus - and yet the sites on the server seem to run fine when I check them. What I'm wondering is, what exactly is load in this context; and how can load run so high like that without the server crashing?
According to top, the load is caused by httpd processes running under user 'nobody', that often take up double digit CPU percentage.
Does Apache always run under 'nobody'?
Is there any way to trace an httpd processes - which account it's for, or which physical script or URL is calling it?
And for top itself, the TIME field on one server of mine is in the format xx:xx (e.g. 3:25), on another it's TIME+ and in the format xx:xx.xx (e.g. 30:02.77). What exactly does this mean? I would asume it's minutes:seconds and minutes:seconds:hundredths, but while watching top it doesn't seem to correlate with that.
View 11 Replies
View Related
Apr 24, 2007
I have 2 almost similar webservers:
debian 3.2, P4 3GHZ, 1 Gb ram, kernel 2.6, apache2, php4
Initial apache2.conf:
Code:
Timeout 4
KeepAlive Off
KeepAliveTimeout 2
ServerLimit 1500
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1500
MaxRequestsPerChild 3000
</IfModule>
I update the sources.list on server 1 to mirrors of the new debian 4 etc . I run apt-get update and apt-get dist-upgrade . A whole bunch of things get updated (it was long time ago that I did this anyway). After some troubles with /boot/grub/menu.lst the server boots ok, and everything is well. This server used to have loads of 15-25 at peak times, but after the update its running very smooth with loads of 2-3 at the same peak times. I dont know why exactly, as I noticed updates in OS , kernel version (from 2.6.8x to 2.6.18) , apache2 , php (4.4.4-8+etch1) , and I also needed to update eaccelerator from 0.94 to 0.95 .
A few days later I update server 2. Everything seems to go the same, although the kernel version stays at 2.6.8-3-686. I dont think kernel version at start was exactly same at server 1. But the new php version is the same as server 1, and everything else looks the same too.
But when peak times are coming up, this server starts to have troubles. It is quickly rising to total of 200-300 processes , while server 1 always stays stable at 60-70.
Server 2 also reacts slow if I click somewhere on the site. It takes 5-10 seconds to show a new page. However the load stays pretty low at 1-2 . I see no big cpu usage and also no big memory usage. I have the impression that this server 2 is somehow wasting a lot of apache processes and is making things hard for itself without a real reason.
When I check the seperate mysql database server, I also notice a lot of processes.
Around 200-250 whereas it used to be 40-60. Sometimes this adds up so hard, that all webservers are blocked because mysql has too much processes. When I check the mysql connections, I see a few dozen things like 'unauthen ip:port Connect login' just hanging. All of them have the ip of webserver 2. Those extra apache processes are somehow hanging on to the mysql server without really doing something.
I dont know what is happening, but this server is underperforming very badly now. I managed to limit the problem by drastically lowering ServerLimit and MaxClients on webserver 2 , but this is no real solution. The server is still slow, at least now its not bringing down the others.
My question : what should I check for now ? I noticed a different structure in the conf files in debian etch, maybe something new has a bad influence on my old conf files? Is there something wrong with the combination of kernel+php version? I have no idea, please point me in the right direction so I can learn from this.
View 4 Replies
View Related
Mar 23, 2008
a topic long time ago that my server load is frequently high.
I'm talking about something like this
Server Load 158.86
Memory Used 28.2 %
Swap Used 99.57 %
[url]
The only way to solve this problem is to identify the load earlier and kill all httpd process. What I did was
#killall -9 httpd
#killall -9 httpd
#killall -9 httpd
x 30~40 times until no pid process found & the server load is back to normal.
On previous thread, I tried to update mysql & php and it works,
Right now again I am experiencing high server load again...
I'm very sure it's caused by httpd but I am still unable to find out the real cause of the problem and which account user is the culprit for causing this high load.
Can someone assist me by telling me where/how to begin with?
View 4 Replies
View Related
Sep 2, 2007
i use the following perl script(created by me) to save server load every 30 minutes to a log file i just keep it running in the background(probably would be more effective using cron)
#!/usr/bin/perl
while(1) {
$w = `w`;
#print $w;
$w =~ /load average: (.+)
/;
$log = $1;
my ($sec, $min, $hour, $mday, $mon, $year) = localtime;
my $rightnow = sprintf("%04d-%02d-%02d %02d:%02d:%02d ", $year + 1900, $mon + 1, $mday, $hour, $min, $sec);
$log = $rightnow . ": " . $log ."
";
open (OUTFILE, ">>top_logfile.txt");
print OUTFILE "$log
";
close (OUTFILE);
#sleep for 30 minutes
sleep(1800);
}
View 11 Replies
View Related
Apr 5, 2009
Any good and simple script to see Server status, server load, bandwidth, etc...?
is there like a simple script where it shows me the server info?
Like how much RAM is being used, bandwidth, load, etc?
View 5 Replies
View Related
May 30, 2009
anybody have any experience with SimpleCDN. We are considering using their Hurricane service to stream our media.
View 4 Replies
View Related
May 27, 2009
Because i have couple site hosted by both hosting company (DTH=downtownhost and TCH=totalchoicehosting) and have positive experience with them i needed to make decision who will be hoster for my new project.
The problem was by both company and by 99% others that traceroute command is not enabled by default and it is essential for my new project.
After exchanging a couple emails with both companies DTH was winner again because DTH allow on shared hosting traceroute command (in situation that you need it).
Answer from TCH was that only on VPS (semi-dedicated) is traceroute command possible and not on shared envirovment.
I must again praise DTH for the way how they handle with their customers and that they are ready to do everything for their customers. Not wonder that they are one of the greatest hosting company.
View 10 Replies
View Related
Aug 29, 2008
where I can get a simple SSL certificate for my web hosting business? So my customers feel safe on submitting their information. Is the standard SSL from GoDaddy pretty good?
View 14 Replies
View Related
Jan 23, 2007
So I was trying to run a backup process in Plesk 8.1 and the whole panel froze up on me (it's happened numerous times before).
Anyway, since the panel was all frozen up I just went into SSH and did a simple "reboot" (also, as done before many times). Only problem is, this time after I did the reboot the server never actually came back online... it seems to be locked up or something, I have no idea what.
I called my host and they are looking into it but they have no idea what's going on either and it's taking them forever to figure it out all the meanwhile my sites are down.... this isn't good.
Does anyone have any suggestions or advice as to why this could be occuring?
View 2 Replies
View Related
Sep 4, 2007
I have an ssl issued from my domain company and i have hosting in another company.
I have created an CSR with my hosting, submitted to mine domain company so i can have the ssl, and installed in my hosting company.
But now i want to change mine hosting because the hosting company doesn't accept chained certificates..
So if i change mine hosting i could mantain mine old ssl ? or what does i need to do?
View 6 Replies
View Related
Jul 24, 2007
using ftp via unix command, how do you get all files and sub directories?
get *.*? but will that get sub dir?
btw, how do you get it to switch between ascii and binary for images? does it do that automaticly?
View 1 Replies
View Related
Jun 12, 2007
Can you see if my site will load for you:
[url]
Then (if it loads) post the stats from the bottom of the page:
Page creation time: (Numbers)
And:
Your Os:
Your Browser:
Some people say my site won't load or is loading slowly for them, but I have no one to test it, thanks. If possible, I need quite a few tests.
View 4 Replies
View Related
Oct 3, 2007
We are looking at this software. Seems easy enough, secure enough.
Experiences with Simple DNS Plus?
View 2 Replies
View Related
May 21, 2009
when I get a server it comes with cPanel and I don't have to do much to get it going, but this time I don't need all the bells and whistles. What should I do to get a server with only CentOS to start running a pretty simple web server that just listens on whatever ip? I just want it to run php,mysql, and a web server which I know how to setup already. What I want to know is what else is necessary to setup? Resolvers, the hostname, bind, named, etc?
View 2 Replies
View Related
Apr 30, 2009
I cannot express this enough: Stay away from Simple Helix!
We switched to them after our last $5/mo host kicked us out without warning. Simple Helix is just as bad but more expensive... Their support system is awful. Our website is down at least once or twice a week without any warning or support.
You cannot talk to anyone in their support. You have to write a stupid ticket. Then you wait and wait until someone decides to open it and read it. The if you are lucky, they will respond to it. But you gotta be REALLY lucky that they respond with something useful. Most of their responses are irrelevant or do not make sense.
Last week my website was destroyed because their server crashed. When i wrote a support ticket, which was answered 24 hours later, they said that I did it! Then they told me I had to pay them to fix the problem. Only when I contacted their corporate offices they got their admin working on it. Even then, it took over a week to fix the website. The admin would only respond when he wanted and sometimes he would ignore my messages to the point where I had to open new tickets to tell them to take care of my original ticket.
JUST STAY AWAY! WHATEVER YOU DO-DO NOT GO WITH SIMPLE HELIX.
It seems nexcess.net is a good host and I am going to be calling them tomorrow to talk to them about switching to them.
View 14 Replies
View Related
Feb 11, 2009
I've recently re-designed my website to WP and my host which I've been with for the last 5 years has suspended my site for system abuse. Is WP no good? They suspended it last week so I added a cache which they said had fixed it, now they've comeback and said its still overloading. My site gets around 500 visitors a day. Does this sound right?
I've already had to ban google bots from my forums because of overloading in the past.
Can anyone recommend a host that can handle a wordpress site that gets 500 visitors a day?
View 14 Replies
View Related
Dec 27, 2008
I am just posting a simple reviewof my experience with MKOH (My Kind of Host)
Great people they seem from the e-mail correspondences. Just one problem with there automated message upon account setup. Include the name servers.
The support has been prompt during the day and it's been a few hours since I've e-mailed them and heard nothing back and it's nighttime which sort of worries me for the long run. No one around at night.
So, I ordered this morning 10PM EST and the acccount was setup within normal business hours. But since then haven't received a response with the nameservers. I could assume it's ns1.mkoh.com and ns2.mkoh.com but that's most likely not them or they could have multiple servers or even a datacenter or offshoots so I can't assume.
Again, great during the day. Night a bit rough. This is day 1. I will let people know here if this thread isn't deleted what happens after tonight I just think support at night is important in this industry.
View 12 Replies
View Related
Dec 15, 2008
I was able to reverse the ruleset I had earlier. I have read more and added the following rules set:
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp spt:smtp
ACCEPT tcp -- anywhere anywhere tcp spt:domain
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dptop3
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:smtps
ACCEPT tcp -- anywhere anywhere tcp
dpt:cvspserver
ACCEPT tcp -- anywhere anywhere tcp
dpt:webcache
ACCEPT tcp -- anywhere anywhere tcp
dpt:distinct
ACCEPT all -- ip-XXX-XXX-XX-XXX.ip.myserver.net anywhere
DROP all -- anywhere anywhere
I tried to follow this HOWTO:
[url]
It appears to work on most ports. However, when I try a web site on that
server, port 80, it starts but never finishes - never goes to that page. The progress bar looks like it's almost finished but never gets there.
I need to be able to:
check and send mail
serve web site
ssh/WinSCP
port 9999 needed as well as 8080
run DNS
Does that rules set look right?
View 0 Replies
View Related
May 14, 2008
i want to set about 3-5 servers behind a switch,
the purpose of the switch is just for sharing bandwidth for the 3-5 servers,
i do not need any special feature,for example,mrtg,limit port bandwidth,...etc,
it run about 5-10M only,
i just hope it is reliable and cheap,
can you recommend any switch suit for my needing?
View 11 Replies
View Related
Sep 24, 2007
somebody to write a very simple bash script to me , which will help me to "wget" some text files!
i want to do the following:
wget [url]
X changes for evey folder (main group)
Y will change for every file in the folder.
eg:
[url]
[url]
[url]
the next group:
[url]
[url]
[url]
The X value range [1-100]
the Y value range [1-13]
View 3 Replies
View Related
Aug 20, 2007
Any of you know any good mysql backup software that does all the packages for you? meaning, backup the whole shabang with only ssh access? users,dbs, etc? and probably restore it too?
View 6 Replies
View Related
Nov 20, 2007
to set up a little server that will have LAMP installed on it. All it will do is host a small program that runs on PHP and mySQL and will only be used on an office network with about 50 employees.
How well would this server run if the hardware was rather modest (667Mhz, 128mb RAM, 10GB HDD)?
View 4 Replies
View Related
Jun 29, 2007
I've had to edit alot of zone files and have been trying to find a solution to ease up the work. So far I found a nice perl command which can search and replace pretty efficiently.
I was wondering if anyone here knows something simple to search for a number. Lets say if the number was bigger then a specified amount (say 1 million) then it will add a 1 value to the large number. Of course this will scan through all the zone files in the directory and add the 1 value accordingly.
View 3 Replies
View Related
Mar 13, 2007
It seems that we are under simple DDoS attack.
They are sending multiple queries from single IP but once we block it they start using different IP
Is there a rule to add to FreeBSD firewall to block any IP which is sending more than XX queries in one minute or some other way to blcok those IPs automaticaly?
View 3 Replies
View Related
Apr 17, 2007
i have plan on powervps more than 2 years, i not speak english , not understand of linux but the power vps never down for me, i have a problem powervps staff solve in minutes, many times problems caused by me, the vps stability is very great 99.999 percent online, im very happy with power vps, my tanks to the power vps staff very competence and newbie and not speak english friendly.
View 0 Replies
View Related
Apr 3, 2009
I have a Sonicwall NSA 3500. Does anyone know if you can use it to create bandwidth charts of Network Objects (e.g. IPs or Groups of IPs)?
I am thinking something like Cacti, but I don't know the code to pull that info or if it's even technically possible.
View 1 Replies
View Related