Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Look through the logs, monitor what happens in the logs when a request comes in, there is probably something in your config that is slowing everything down. Can you give us some more info, e.g., hardware, linux distro, which webserver?
@druuna: yes there are lots of sites but not much connection and httpd requests, but still server seems very very slow. Its not the network issue as if i restart apache it comes to normal state and loads in instant.
One thing that isn't clear to me yet: Do you have access to your website from the outside?
If so: Could it be possible that there are a lot of outside connections which would slow down your box? You can check with netstat -plan | grep ":80 " (I'm assuming apache is listening on port 80).
The above command should be executed regularly to see if there are any connections (which should grow over time after (re)starting apache). This is also true for the top command you showed earlier (it is just a snapshot), maybe you see increases in cpu/mem/swap/load over time.
You mention that there are a lot of file not found errors in your apache error_log: Where do these come from (it does strengthen my feeling that your website does have outside access).
Maybe the slowdown is just that: people trying to connect to your website (these connections could be legitimate, or not).
I would suggest running the following commands on a regular base:
1) top (to see mem/cpu/load/swap)
2) netstat -plan | grep ":80 " (to see the amount of connections)
3) ps -ef | grep http (to see the httpd processes)
Hope this helps.
BTW: I'm not sure which log files in /var/log are of interest, you need to check yourself if you see anything that is out of the ordinary.
Last edited by druuna; 06-03-2010 at 11:58 AM.
Reason: fixed a typo