Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi Perrin, > It looks to me like you are creating this problem by using "our". Why > > not use "my" and pass the handle around, or put it somewhere like > $r->pnotes() instead? Yes I should have used 'my' and passed the handle around :( > Also, why do you want to avoid persistent connections?

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi Stas, > 1) use Apache::DBI > > 2) if not, refer to: > http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler > http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object Thank you for the answer. I tried to use Apache::DBI with dbi_connect_method =>

Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi, How can I pass $dbh value from PerlResponseHandler to PerlCleanupHandler to be disconnected? My scripts are running in ModPerl::Registry, and I don't want to do $dbh->disconnect() at the end of every scripts. So I try to write a module in PerlCleanupHandler to clean up the DB handler at the en

Re: Memory leakage?

2004-10-14 Thread Batara Kesuma
Hi Stas, > Batara, please try first with mod_perl 1.19_16 or the current cvs [1]. > If it didn't make any different please tell us how much memory > consumes each modperl process on the startup (shared and absolute). > You can use Apache::VMonitor for that purpose if you have libgtop > installed.

Memory leakage?

2004-10-13 Thread Batara Kesuma
Hi, I am using mod_perl 1.99_13, with Apache 2.0.49. When I start the processes, free shows me that about 17 MB of swap is used. And ps -aux, shows me that each httpd process eats up to 1.1 %MEM. But after about 30 minutes running, the swap memory usage will increase to up to about 200 MB, and eac

Persistent DB connection problem

2004-07-23 Thread Batara Kesuma
Hi, I do queries from several DB servers. I use Apache::DBI to initiate persistent connection: ## startup.pl use Apache::DBI (); use DBI (); The problem is, Apache::DBI will make persistent connection to all DB servers, but since some servers are not used so frequently as the others, I don't want

CPU usage of mod_perl scripts

2004-06-01 Thread Batara Kesuma
Hi, I am using mod_perl 1.99_13 with httpd 2.0.48. I noticed an unusually high CPU usage on my machine. I tried to figure out with top, and I found out that httpd processes were using a lot of CPU. How do I know which script is eating the most of the CPU usage? Thanks, Batara -- Report problem

Images and Auth

2004-03-16 Thread Batara Kesuma
Hi, I am running a web site where users can upload their pictures. The problem is, I don't want to let users view the pictures while they are not logged in. I am thinking about using AuthName, AuthType on httpd.conf, but I don't wan't to display the grey pop up box, because I already have my own l

Re: failed to get bucket brigade

2004-03-14 Thread Batara Kesuma
Hi Teresa, > Hi Batara, > The link you submitted does not work -- goes to domain.com. > --Teresa That is not real link. The problem is, I don't know how to reproduce the bug. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiq

failed to get bucket brigade

2004-03-14 Thread Batara Kesuma
Hi, I am not sure if this is mod_perl bug. I have this error in my log: [Mon Mar 15 00:12:38 2004] [error] [client 211.128.98.215] failed to get bucket brigade: 70014:End of file found, referer: http://domain.com/edit_photo.pl There are like thousands of them. The system will freeze due to high lo