Re: Debugging a long process

Tosh Cooey <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Twelve Hundred Group LLC
Message-ID <[email protected]>
I haven't tried Devel::NYTProf, but the blocking seems to have been the 
keyword here...

root      2661  0.0  1.5  37900 27492 ?        Ss   Jun08   0:00 
/usr/sbin/apache2 -k start
www-data  3875  0.0  1.3  37264 23300 ?        S    06:25   0:00 
/usr/sbin/apache2 -k start
www-data  3882  3.9  8.7 395156 153644 ?       Sl   06:25   6:15 
/usr/sbin/apache2 -k start

As you can see I've only got three Apache+mod_perl processes running, 
which I suspect is causing the blocking issues since there aren't enough 
processes being spawned to handle the incoming requests.

Oddly enough I used to have the problem that this application was 
spawning too many processes, now I have the opposite problem.

Anyone have sweet spots for Apache settings running on an EC2 small 
instance?

Thanks Fred!

Tosh


On 6/8/11 10:15 PM, Fred Moyer wrote:
> On Wed, Jun 8, 2011 at 12:50 PM, Tosh Cooey<[email protected]>  wrote:
>> I have a mod_perl Registry script that is taking about 30 seconds to
>> execute.
>>
>> I am trying to debug it but when I run the script from the command line or
>> the debugger it only takes 9 seconds to execute.
>
> Sounds like Apache may be blocking on other processes?  Have you tried
> Devel::NYTProf with your program on the command line?
>
>>
>> I am running Apache/2.2.11 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.0
>>
>> Is there something obvious I should be looking at, and does anyone have any
>> tips for debugging something like this?
>>
>> Thanks!
>>
>> Tosh
>>
>> --
>> McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
>>
>

-- 
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.