Re: Apache 1.3.14 and Mod_Perl
Hi, On Tue, Oct 17, 2000 at 04:01:25PM -0400, [EMAIL PROTECTED] wrote: Why can't I download it with wget? Really weird. However, if one persuades wget to lie about what it is... wget --user-agent=FooBar/10.0 http://perl.apache.org/dist/mod_perl-1.24_01.tar.gz ...it seems to work ok. An anti-wget conspiracy at apache.org perhaps...! :-) Wesley.
Re: Strange error in log: Attempt to free unreferenced scalar.
Hi, On Mon, Aug 14, 2000 at 01:29:53PM +0400, Vladimir Buyanov wrote: We don't use Apache::AuthDBI module, but use: No, we don't use it either... use Mysql; use HTML::Template; use CGI; use Mail::Mailer; use Time::Local; use Time::localtime; use Net::SMTP; use MIME::Base64; use CGI::Cookie; ...but we do use loads of modules. Attached is a list of pretty much all the nih modules preloaded in our apaches. Thanks, Wesley.
Re: Strange error in log: Attempt to free unreferenced scalar.
Hi, Doh! Forgot attachment. :-( Wesley. On Mon, Aug 14, 2000 at 11:35:53AM +0100, Wesley Darlington wrote: Hi, On Mon, Aug 14, 2000 at 01:29:53PM +0400, Vladimir Buyanov wrote: We don't use Apache::AuthDBI module, but use: No, we don't use it either... use Mysql; use HTML::Template; use CGI; use Mail::Mailer; use Time::Local; use Time::localtime; use Net::SMTP; use MIME::Base64; use CGI::Cookie; ...but we do use loads of modules. Attached is a list of pretty much all the nih modules preloaded in our apaches. Thanks, Wesley. Package Version Modified File AnyDBM_File 0.00 Wed Sep 22 08:32:30 1999 Apache 1.26 Sat Jun 5 04:16:08 1999 Apache::Connection 1.00 Mon Feb 1 05:38:56 1999 Apache::Constants 1.09 Thu Jan 28 01:13:42 1999 Apache::Constants::Exports 0.00 Fri Nov 20 04:16:06 1998 Apache::Registry 2.01 Wed Jan 13 02:56:34 1999 Apache::Server 1.01 Mon Feb 1 05:38:59 1999 Apache::Status 2.01 Tue Jun 29 06:07:22 1999 Apache::Symbol 0.00 Mon Jan 18 04:31:11 1999 Apache::Table 0.01 Mon Feb 1 05:39:00 1999 Apache::URI 1.00 Mon Feb 1 05:39:01 1999 AutoLoader 0.00 Wed Sep 22 08:32:30 1999 B 0.00 Wed Sep 22 08:32:33 1999 /usr/lib/perl5/5.005/i386-linux/B.pm Business::CreditCard 0.00 Sat Jan 18 22:11:46 1997 CCCheck 1.26 Wed Jun 7 11:30:07 2000 CGI 2.59 Mon May 15 19:21:24 2000 /usr/lib/perl5/CGI.pm CGI::Carp 1.16 Mon Mar 20 03:34:16 2000 /usr/lib/perl5/CGI/Carp.pm CGI::Cookie 1.16 Tue Mar 28 03:16:54 2000 /usr/lib/perl5/CGI/Cookie.pm CGI::Util 1.1 Wed Apr 12 19:02:25 2000 /usr/lib/perl5/CGI/Util.pm Carp 0.00 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/Carp.pm Config 0.00 Wed Sep 22 08:34:46 1999 Crypt::Blowfish 0.00 Wed Aug 6 15:45:49 1997 Cwd 2.01 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/Cwd.pm DBD::mysql 2.0409 Thu Nov 25 13:24:01 1999 DBI 1.13 Mon Jul 12 03:04:42 1999 Data::Dumper 2.101 Wed Sep 22 08:32:29 1999 DataCash::External 2.4.1g Mon Aug 23 15:29:37 1999 Date::Calc 4.2 Tue Sep 15 21:58:12 1998 Date::Manip 5.35 Tue Jul 6 17:31:00 1999 DirHandle 0.00 Wed Sep 22 08:32:30 1999 DynaLoader 1.03 Wed Sep 22 08:32:33 1999 Exporter 0.00 Wed Sep 22 08:32:30 1999 Fcntl 1.03 Wed Sep 22 08:32:33 1999 File::Basename 2.6 Wed Sep 22 08:32:29 1999 File::Find 0.00 Wed Sep 22 08:32:29 1999 File::Spec 0.6 Wed Sep 22 08:32:29 1999 File::Spec::Unix 0.00 Wed Sep 22 08:32:29 1999 FileHandle 2.00 Wed Sep 22 08:32:30 1999 FreezeThaw 0.00 Mon Oct 14 11:53:04 1996 GD 1.19 Mon Apr 26 21:31:21 1999 IO 1.20 Fri Jul 24 04:52:41 1998 /usr/lib/perl5/5.005/i386-linux/IO.pm IO::File 1.08 Thu Apr 16 02:21:55 1998 IO::Handle 1.21 Fri Jul 24 04:30:00 1998 IO::Seekable 1.08 Thu Apr 16 02:13:14 1998 IO::Select 1.13 Fri Jul 24 04:45:41 1998 IO::Socket 1.25 Tue Jul 14 04:50:53 1998 IO::Socket::INET 1.24 Thu May 21 02:06:46 1998 IO::Socket::UNIX 1.20 Thu Mar 19 02:36:09 1998 Image::Size 2.903 Fri Apr 28 03:56:13 2000 MIME::Base64 2.11 Sat Feb 27 20:40:04 1999 MIME::Lite 1.135 Sun Apr 18 15:32:13 1999 MIME::QuotedPrint 2.03 Tue Dec 2 10:24:27 1997 Mysql 1.2208 Wed Oct 13 17:29:12 1999 Mysql::Statement 1.2208 Wed Oct 13 17:29:11 1999 NDBM_File 1.01 Wed Sep 22 08:32:33 1999 Net::Cmd 2.16 Sat Sep 18 16:25:55 1999 Net::Config 1.00 Fri Oct 16 00:38:31 1998 Net::SMTP 2.15 Fri Apr 2 17:05:42 1999 Number::Spell 0.04 Sat Mar 11 20:20:17 2000 POSIX 1.02 Wed Sep 22 08:32:33 1999 SelectSaver 0.00 Wed Sep 22 08:32:30 1999 Symbol 1.02 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/Symbol.pm Tie::Hash 0.00 Wed Sep 22 08:32:30 1999 Tie::RefHash 0.00 Wed Sep 22 08:32:30 1999 Time::HiRes 01.20 Tue Mar 16 02:28:20 1999 URI::Escape 3.13 Sat Mar 20 07:43:40 1999 integer 0.00 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/integer.pm mod_perl 1.21 Sat Jul 3 00:33:50 1999 overload 0.00 Wed Sep 22 08:32:30 1999 re 0.02 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/i386-linux/re.pm strict 1.01 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/strict.pm vars 0.00 Wed Sep 22 08:32:30 1999 /usr/lib/perl5/5.005/vars.pm
Re: Strange error in log: Attempt to free unreferenced scalar.
Hi, On Fri, Aug 11, 2000 at 11:16:10PM +0400, Vladimir Buyanov wrote: I have the following problem with Apache mod_perl and MySQL. We have written Web chat server based on: FreeBSD+Apache+mod_perl+MySQL. Hardware: 2xPIII 550, 1Gb RAM Also there are PostgreSQL and exim for other tasks on that machine. We use 2 httpd scheme: one "light" for handling static content (without mod_perl) and another one with mod_perl. First uses proxy to pass requests to /script directory to mod_perl enabled "heavy" httpd - httpd.modperl. I have test program called "Load Emulator" that can send HTTP requests with certain rate. I sends 5 requests/sec to chat scripts. First all things are good. But suddenly httpd.modperl begin to spawn and reach the maximum number of processes that I set - 50. This means that summary memory usage of httpd.modperl processes is about 500M! Fifty seems like a heck of a lot of heavy apaches. Chances are you'd only hit that number when Bad Things are happening and a number that high just makes things worse. What happens if you change maxclients to ... ten, say? Then "heavy" Apache stop to respond to clients - I run my browser and see "Proxy Error". When I stop Load Emulator, such situation continue in about a 5-10 minutes, then httpd.modperl processes begin to die. During this mysqld eats about 5-10% CPU and 140M RAM. Sounds like your heavy web pages are taking too long to generate. I'd be inclined to blame any sql in there - find which queries are taking too much time and tune them. This is probably best discussed on a MySQL list, though... :-) Attempt to free unreferenced scalar. Yeah, we get those too. I don't know what they are either. *grin* Running without perlfreshrestart/graceful-restarts seems to help, but this cure is worse than the disease - we just put up with the slight memory leaks associated with the occasional graceful restart and do a hard restart every week or two. It's only a minor niggle and someday I'll sort it out! All the best, Wesley.