The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need advice on AWK kekanap Shell Programming and Scripting 14 04-22-2008 02:01 AM
Need advice: Awk vs something else? yongho UNIX for Dummies Questions & Answers 1 06-13-2005 06:15 PM
Looking for some advice justawind UNIX Desktop for Dummies Questions & Answers 4 07-18-2002 06:40 AM
Need Advice! DaveC UNIX for Dummies Questions & Answers 9 02-14-2002 11:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
Stumble this Post!
Any advice would help

Hi everyone. I must admit up front that I am not very strong when it comes to Linux. I am actually a Windows guy, but don't let that count against me. I work for a very small company so we do not have a Server/Linux Admin on staff. Most of our needs have been handled by our WebHost. We have started running into a problem and I can't seem to figure out what it is and I was hoping someone could point me in the right direction.

My company is webbased. We have one server that runs Apache and PHP. We have a secondary server that is used strictly for MySQL. We know that our PHP code is not as fine tuned as we would like it to be, but overall it is pretty solid. To ensure that it is we are in the process of installing Zend Platform to help catch some bottlenecks and such. The webserver is running RedHat, not exactly sure of which version but I know it is pretty current. I could get the exact info if it is needed. It is a Dell PowerEdge 1425 with 2 Xeon 3.2Ghz Processors, 2GB RAM and 2 80GB mirrored Hard Drives. Our server load has been skyrocketing lately. We have had an increased traffic level so it is understandable to a point. When I view top it seems to run on average from a .2 to around a 1.8. But it does get up around a 4 to an 8 quote a bit. So far today it is has skyrocketed to about 210 before Apache crashes and restarts. It has done this 4 times today. On average over the past 2 weeks it does this about 4 to 5 times a day. I know the code isn't perfect, but this seems pretty crazy to me. Zend Platform will be installed within the next few days so that will shed some light on the coding issues, but I guess I'm worried that something else might be going on as well.

If anyone could point me in the right direction to find out what is going on I would appreciate it. Again, I'm not a Linux Admin so my knowledge is pretty sparse as to how to go about locating the problem. Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-04-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
As far as I understood, apache is blowing away, due to some un-optimized php code. In order to ensure at least apache's fine work, you can try to tune it up a little bit. See those two articles - tune apache and Tune apache + php, while waiting for Zend.
Reply With Quote
  #3 (permalink)  
Old 03-05-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
Stumble this Post!
You are exactly right. We were able to get Zend Platform installed overnight and the difference just with the caching and optimization is night and day. No apache crashes in the last 24 hours so that is a blessing. Now it is on to optimizing the code and fixing all of the bottlenecks thanks to all of the Event logging. I will definitely be checking out those articles you referenced as well. It always helps to know the entire picture. Thank you so much for your response.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0