Web Hosting Talk







View Full Version : Not showing any websites?


DraginX
08-13-2004, 04:43 PM
My server was working fine yesterday but now sometimes it'll show the web page but sometimes it'll just be a blank page. I'm not really fimiliar with all the commands and whatnot but saw on one of my swap drives it was 100% (which is bad) and my server load was 7.50+ I have no idea why it was that high though. Can someone please tell me the commands to see who is the cause of the high load and the other problem with my swap drive and to get webpages working again. I tried restarting apache & MySQL but no luck. And I don't think it's anything with the httpd.conf since no one has touched it.

Please help :)

TQ Mark
08-13-2004, 04:58 PM
You should have someone experienced in running a server help you if you are planning to offer professinal webhosting. 'top' will show you active processes, and you can sort by highest memory or cpu usage.

DraginX
08-13-2004, 09:19 PM
Yeah I figured out "top" would be the answer lol. I was expecting something else, perhaps another command? And yes, we do have someone very experienced, however he has to help his parents with their business (something happened to the last manager, iunno). So basicly it's just me lol. :S

Amdac
08-13-2004, 09:26 PM
Type "ps -aux" to list all processes.

DraginX
08-13-2004, 09:56 PM
Server load seems to be fine now, however, Disk hda7 (/tmp) is 100%. It's been like that all day. I'm assuming something is wrong with back ups or something? And that webpage error is still happening. :(

Amdac
08-13-2004, 10:10 PM
Originally posted by DraginX
Server load seems to be fine now, however, Disk hda7 (/tmp) is 100%. It's been like that all day. I'm assuming something is wrong with back ups or something? And that webpage error is still happening. :(

I really hope you're not hosting client sites on that server. I'd go with sloop's advice.

Pheaton
08-13-2004, 10:12 PM
delete a few temp files in /tmp and you will be good to go.

I would advise that you get a server admin.

DraginX
08-13-2004, 10:45 PM
Yeah, I'm just a web programmer not a sysadmin lol. And we're giving free hosting but some people's sites work and some others don't. Thanks for your help guys! :)

galacnet
08-14-2004, 02:28 AM
Sometimes the Load can go up because one of your users installed a CPU hungry program.
We have experiences of an old HiveMail installlation (1.2.2) "killin" one of my servers in less than 10 minutes... ( future versions of that program are stable though :) )

Maybe you would like to check if your users have installed any program that is very resource hungry OR some as* is trying to pump loads of files or huge files into your server.
We get a lot of those kind of things happening over at our side too.

overulehost
08-14-2004, 04:39 AM
yeah, usually cgi eats up loads, check that out

Promethyl
08-15-2004, 08:43 PM
Find out what program is running badly. A lot of times my crontabs take up a lot of server processor time. Run nice against them to slow them down.

NetHosted-Andrew
08-15-2004, 08:53 PM
I'll assume the sites that aren't running are forums and similar things that need to create new sessions for users. If the /tmp drive is full they wont be able to do so. Clear the /tmp and all we be good in the world.

Andrew