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)?
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'?
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.
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.
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?
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)
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.
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?
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?
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?
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.
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?
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.
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
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?
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)?
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.
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?
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.