web application speed problem with OO modules

2005-08-14 Thread Badai Aqrandista
e). (I only try to improve the speed of the code, so the use of proxy shouldn't be relevant here - I think, I could be wrong). Does anyone has any other suggestion to improve a web application's speed? I'd give more details if needed... Thanks for your attenti

Re: web application speed problem with OO modules

2005-08-14 Thread Badai Aqrandista
n't really accurate. How do I make it to show the statistics of the subroutines called from the handler? Thank you... --- Badai Aqrandista Cheepy (?) From: "Philip M. Gollucci" <[EMAIL PROTECTED]> To: Badai Aqrandista <[EMAIL PROTECTED]> CC: modperl@perl.apache.o

Re: web application speed problem with OO modules

2005-08-15 Thread Badai Aqrandista
, like this: require Apache::DB; Apache::DB->init; Any code that you compile (e.g. use from startup.pl) before this will not get profiled at all. - Perrin Thanks for the replies... I'll give it a try... --- Badai Aqrandist

apache children waits for each other? (was: Re: web application speed problem)

2005-08-15 Thread Badai Aqrandista
en? Is it memcached? Or is it how apache works? Or is it because of the benchmarking application that I use? Thanks... --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across all industries at Australia's #1 job

RE: apache children waits for each other? (was: Re: web application speed problem)

2005-08-15 Thread Badai Aqrandista
ll requests are accepted (apache forks off lots of children), then processed (no process finishes), and after a while, all the processes finish almost at the same time... .... --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000

Re: apache children waits for each other?

2005-08-15 Thread Badai Aqrandista
Badai Aqrandista wrote: My mod_perl web app uses memcached to cache most of the (MySQL) database query results and as the session storage (Apache::Session::Memcached). Would it be a problem for your application if you suddenly lost all of your session data? That could happen with

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
/mysql/en/join.html). Thanks... --- Badai Aqrandista Cheepy (?) _ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
here... Thanks a lot... --- Badai Aqrandista Cheepy (?) _ Your opinion counts..for your chance to win a Mini Cooper click here http://www.qualifiedopinions.com/joinup.php?source=hotmail

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
!$_[0]->_load_memcached() ) { $_[0]->_load_mysql(); } } I thought about the same thing last night, but is there any race condition problem if I use it for session? --- Badai Aqrandista Cheepy (?) _ SEEK:

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
ome advice as well. And don't forget that there is a profiler for DBI queries that comes with DBI. I've done the database profiling as well... Thanks for your help... --- Badai Aqrandista Cheepy (?) _ REALESTATE: bi

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
e tested without it and it still use 99.98% of the time... Wierd eh? Thanks a lot... --- Badai Aqrandista Cheepy (?) _ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
thod... does this prevents the debugger to know which subroutine should be profiled? all the test that I've done is on the hostname whose object is of class ELRes::Property... Anyway, Hmmm... Where can I learn more about the debugger? I didn't know profiling needs debugger,

Re: apache children waits for each other?

2005-08-16 Thread Badai Aqrandista
Apache::DProf uses the debugger hooks. You can also try Sam Tregar's Devel::Profiler::Apache which is somewhat slower but easier to use since it doesn't use the debugger. I'll look into that... Thanks for your suggestions... --- Badai Aq

Re: apache children waits for each other?

2005-08-17 Thread Badai Aqrandista
Will let you know how it goes... Thanks, mate... --- Badai Aqrandista Cheepy (?) _ Single? Start dating at Lavalife. Try our 7 day FREE trial! http://lavalife9.ninemsn.com.au/clickthru/clickthru.act?context=an99&locale=en_AU&a=19179

Re: Clear Registry

2005-08-17 Thread Badai Aqrandista
Got bitten by that on the last project... Cheers... --- Badai Aqrandista Cheepy (?) _ Low rate ANZ MasterCard. Apply now! http://clk.atdmt.com/MAU/go/msnnkanz003006mau/direct/01/ Must be over 18 years.

Re: Hanging apache child on fork

2005-08-17 Thread Badai Aqrandista
stored in memory. --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail

Re: Scope Question

2005-08-21 Thread Badai Aqrandista
oach? 1. declare @context with 'my' in the package 2. add this to your module: sub clean_context { @context = () } 3. add this to your config file: PerlCleanupHandler MyApp::clean_context I think that'll do the trick... --

swamped with connection?

2005-08-22 Thread Badai Aqrandista
e detail if requested. THANKS A LOT!!! --- Badai Aqrandista Cheepy (?) _ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au

Re: swamped with connection?

2005-08-22 Thread Badai Aqrandista
hared memory usage. I've tried to load every modules upfront. But even before any request comes in, the shared memory is only 7 Mb. What makes it so small? Thank you... --- Badai Aqrandista Cheepy (?) _ REALESTATE: bigges

maintaining shared memory size (was: Re: swamped with connection?)

2005-08-23 Thread Badai Aqrandista
ry modules upfront. But even before any request comes in, the shared memory is only 7 Mb. What makes it so small? Thanks... --- Badai Aqrandista Cheepy (?) _ Your opinion counts..for your chance to win a Mini Cooper click

Re: maintaining shared memory size (was: Re: swamped withconnection?)

2005-08-23 Thread Badai Aqrandista
On Tue, 2005-08-23 at 17:23 +1000, Badai Aqrandista wrote: > How do I maintain the size of the shared memory between apache children? > What cause a memory page to be copied (not shared) from perl's point of > view? Anything that writes to memory -- modifying any variable (even ju

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-24 Thread Badai Aqrandista
is. It seems that the more connection there is, the higher the avg reply time. Does anyone ever experienced this? Why does it happen? Basically I just want to make my webapp ready to launch... (doesn't anyone?) THANK YOU.

Re: maintaining shared memory size (was: Re:swampedwithconnection?)

2005-08-24 Thread Badai Aqrandista
e out... Especially perrin... I'll let you know how it goes... --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail

Re: maintaining shared memory size (was: Re:swampedwithconnection?)

2005-08-25 Thread Badai Aqrandista
emory consumption -> look for ways to do more things on compile time To reduce CPU usage -> write the most called subroutine in C To reduce database contention -> cache as much as possible Thanks for all your help... The journey just begins... --- Badai Aqr

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-28 Thread Badai Aqrandista
(or probably I uncounciously don't want to make changes because I don't have any test suites)... --- Badai Aqrandista Cheepy (?) _ Low rate ANZ MasterCard. Apply now! http://clk.atdmt.com/MAU/go/msnnkanz003006mau/dir

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-29 Thread Badai Aqrandista
On 29 Aug 2005, at 01:15, Badai Aqrandista wrote: I think I have to write some of the code in C. I can't find any other places in the code to optimize (or probably I uncounciously don't want to make changes because I don't have any test suites)... Then how do you know wha

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-29 Thread Badai Aqrandista
eed less than 10 sec/request. Is that possible without changing hardware? --- Badai Aqrandista Cheepy (?) _ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-30 Thread Badai Aqrandista
hit the server with some requests and watch the strace output. This is especially useful for finding I/O or IPC bottlenecks. Hmmm... Interesting... I'll give it a try... good luck Thanks... --- Badai Aqrandista Cheepy (?) _

Re: maintaining shared memory size (was: Re:swampedwithconnection?)

2005-08-30 Thread Badai Aqrandista
rocess, so all the combinations can be calculated in parallel. Thanks for helping... --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-30 Thread Badai Aqrandista
lmost 100%, around 90%... --- Badai Aqrandista Cheepy (?) _ Your opinion counts..for your chance to win a Mini Cooper click here http://www.qualifiedopinions.com/joinup.php?source=hotmail

Re: maintaining shared memory size

2005-08-30 Thread Badai Aqrandista
search request. That lets your server scale to handling many more clients at once, even though some of them are just waiting for their turn. Good idea!!! Thanks... You've been a great help... POE sounds good to start with, right? --- Bad

Re: maintaining shared memory size

2005-08-31 Thread Badai Aqrandista
ailable room and package combinations on the particular hotel, based on various constraints. --- Badai Aqrandista Cheepy (?) _ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au

Re: maintaining shared memory size

2005-08-31 Thread Badai Aqrandista
mpare to Parallel::ForkManager. Thanks. --- Badai Aqrandista Cheepy (?) _ Low rate ANZ MasterCard. Apply now! http://clk.atdmt.com/MAU/go/msnnkanz003006mau/direct/01/ Must be over 18 years.

Re: Crontab entry from perl

2005-09-05 Thread Badai Aqrandista
-Cron-0.9/Cron.pm --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail

RE: mod_perl advocacy

2005-09-11 Thread Badai Aqrandista
http://search.cpan.org/~chamas/Apache-ASP-2.59/ASP.pm --- Badai Aqrandista Cheepy (?) _ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au

RE: Masquerading requests as HTTPS

2005-09-15 Thread Badai Aqrandista
want to connect to a backend server, why do you need a secure connection anyway? However, other probably know better... --- Badai Aqrandista Cheepy (?) From: Mark Moseley <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: modperl@perl.apache.org Subject: Masquerading requests as HTTPS Da

Re: Class::DBI and CGI::Application under mod_perl

2005-11-09 Thread Badai Aqrandista
t to check this out: http://www.perlmonks.org/?node_id=504724 I quite agree with it... --- Badai Aqrandista Cheepy (?) _ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au

Detecting request cancellation behind proxy servers

2005-11-15 Thread Badai Aqrandista
vious process that has been cancelled before releasing it. Does anyone know a workaround or a way to combat this? Thanks... --- Badai Aqrandista Cheepy (?) _ Start something musical - 15 free ninemsn Music downloads! http://ninemsn.c

Re: mod_perl: How pass variables (objects) from page to page?

2005-11-15 Thread Badai Aqrandista
modproxy server that "talks" directly to the perl code ... perhaps as a open software project What do you mean by 'a custom reversed modproxy server that "talks" directly to the perl code'? --- Badai Aqrandista Cheepy (?)

Re: Detecting request cancellation behind proxy servers

2005-11-16 Thread Badai Aqrandista
On Wed, 2005-11-16 at 10:11 +1000, Badai Aqrandista wrote: > But I need to know if a request has been cancelled. The problem is that I > need to release the session lock when someone click submit button before the > page is fully loaded, otherwise the next page won't load

RE: Newbie

2005-11-29 Thread Badai Aqrandista
appreciated. Thank you, in advance, for any assistance. IMHO, you can learn more than what you have ever imagined about perl here: http://www.perlmonks.org/?node=Tutorials --- Badai Aqrandista Cheepy (?) _ Start something musical

Apache::Session's session size

2005-11-29 Thread Badai Aqrandista
data. I am just wondering has anyone experience problems with the size of the data put in the session using Apache::Session? The problem is so critical yet so intermittent that we can only fix it by trial and error. Thank you... --- Badai Aqrandista Cheepy

Re: Apache::Session's session size

2005-11-29 Thread Badai Aqrandista
data into database tables instead and only loading it as needed. Yes, that's why I am using Storable hooks to only serialize as small information as possible. --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jobs across al

Re: Apache::Session's session size

2005-11-30 Thread Badai Aqrandista
7;t really know what causes this. That the size is just a guess. I am just looking for inspiration from you guys because you all are very helpful. Thanks for all who replied. --- Badai Aqrandista Cheepy (?) _ SEEK: Over 80,000 jo