Any advice would help


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Any advice would help
# 1  
Old 03-03-2008
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. Smilie 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.
# 2  
Old 03-04-2008
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.
# 3  
Old 03-05-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Advice

Guys, Can you tell me what value would additional knowledge of PERL and CGI scripting will add to my skill set of UNIX shell scripting and ORACLE PL/SQL? I understand that PERL is a good tool for text processing. (1 Reply)
Discussion started by: yabhi_22
1 Replies

2. UNIX for Dummies Questions & Answers

need advice

i am currently running windows vista home premium, i want to install unix because i just started a computer programing course, i am just wondering if i install unix will i still have vista?? how does it work? will i get a choice of which os to run on system startup?? (1 Reply)
Discussion started by: naner9
1 Replies

3. UNIX for Advanced & Expert Users

scripting advice

what is the good way to improve your skill in shell scripting?? (4 Replies)
Discussion started by: memphiz16
4 Replies

4. Shell Programming and Scripting

Script Advice please?

Ok. I want to parse a log file and search only for denied traffic for the previous hour. The log looks like this: Jun 18 17:47:56 routername 36806: Jun 18 17:53:01.088: %SEC-6-IPACCESSLOG: list ingress-filter denied tcp 1.2.3.4(1234) -> 6.7.8.9(53), 4 packets I only really care about the... (12 Replies)
Discussion started by: earnstaf
12 Replies

5. Shell Programming and Scripting

looking for advice...

Hi. First of all, Im an msoft guy, and when it comes to linux/unix, I'm retarded. Here is what I'm trying to do. I want to start I want to automatically connect to a remote server. Then I need it to login(https) -insert the licensce in the box(vi) -based on that licensce, the... (1 Reply)
Discussion started by: bravo24601
1 Replies

6. What is on Your Mind?

Career advice

I am a junior unix sys admin (Tru64) I have been in this job for 9 months and I am quite worried. When I first got the job I was delighted as I was finally in a job where I could have the chance to be a specialist in a field rather than being a general support guy (i graduated from uni and got... (5 Replies)
Discussion started by: supadid
5 Replies

7. Shell Programming and Scripting

Advice on Script

I would like some advice on how to logically put together a script to handle a daily task of data gathering for the following problem. I have two files, file1 has 125,000 records that I cut and remove unwanted fields through scripts and cron. In file2, I have 25000 records that has the same... (4 Replies)
Discussion started by: greengrass
4 Replies

8. Shell Programming and Scripting

first script. need help and advice.

Hello everyone, This is my first post here and this is the first time I am using UNIX OS (Slackware). I find it really useful and powerful and would like to master it but as you may guess I am expreicing quite a few problems. I've been reading a few documentations about it and bash this week... (17 Replies)
Discussion started by: sanchopansa
17 Replies

9. UNIX Desktop Questions & Answers

Looking for some advice

I am looking for some advice on wether to use unix or red hat linux? I have played with most windows OS and Mac OS up to in and including OS X. any and all advice would be appreciated (4 Replies)
Discussion started by: justawind
4 Replies
Login or Register to Ask a Question