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.
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.
9 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. What is on Your Mind?
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
5. Shell Programming and Scripting
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. Shell Programming and Scripting
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
7. UNIX for Advanced & Expert Users
what is the good way to improve your skill in shell scripting?? (4 Replies)
Discussion started by: memphiz16
4 Replies
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
LEARN ABOUT DEBIAN
aspect::advice::around
Aspect::Advice::Around(3pm) User Contributed Perl Documentation Aspect::Advice::Around(3pm)
NAME
Aspect::Advice::Around - Execute code both before and after a function
SYNOPSIS
use Aspect;
around {
# Trace all calls to your module
print STDERR "Called my function " . $_->sub_name . "
";
# Lexically alter a global for this function
local $MyModule::MAXSIZE = 1000;
# Continue and execute the function
$_->run_original;
# Suppress exceptions for the call
$_->return_value(1) if $_->exception;
} call qr/^ MyModule::w+ $/;
DESCRIPTION
The "around" advice type is used to execute code on either side of a function, allowing deep and precise control of how the function will
be called when none of the other advice types are good enough.
Using "around" advice is also critical if you want to lexically alter the environment in which the call will be made (as in the example
above where a global variable is temporarily changed).
This advice type is also the most computationally expensive to run, so if your problem can be solved with the use of a different advice
type, particularly "before", you should use that instead.
Please note that unlike the other advice types, your code in "around" is required to trigger the execution of the target function yourself
with the "proceed" method. If you do not "proceed" and also do not set either a "return_value" or "exception", the function call will
return "undef" in scalar context or the null list "()" in list context.
AUTHORS
Adam Kennedy <adamk@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2010 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-01 Aspect::Advice::Around(3pm)