RE: squid performance
On Mon, 17 Jan 2000, Gerald Richter wrote: > Look at proxy_http.c line 263 (Apache 1.3.9): > > if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, > (const char *) &conf->recv_buffer_size, sizeof(int)) > > I am not an expert in socket programming, but the setsockopt man page on my > Linux says: "The system places an absolut limit on these values", but > doesn't says where this limit will be? For 2.2 kernels the max limit is in /proc/sys/net/core/rmem_max and the default value is in /proc/sys/net/core/rmem_default. It's good to note the following comment from the kernel source: "Don't error on this BSD doesn't and if you think about it this is right. Otherwise apps have to play 'guess the biggest size' games. RCVBUF/SNDBUF are treated in BSD as hints." So, if you want to increase RCVBUF size above 65535, the default max value, you have to raise first the absolut limit in /proc/sys/net/core/rmem_max, otherwise you might be thinking that by calling setsockopt you increased it to say 1 MB, but in fact the RCVBUF size is still 65535. HTH, Radu Greab
nt, unc file names
Hello, I have a computer connected 1) to the Internet served by Apache and mod_perl and 2) to a local network. I need to be able to see from the 'OUTSIDE' a file on a computer inside the LAN (not on the server). I try to copy this file to the server in a 'visible' location. I can successfully use unc filename in plain perl (copying files between computers). (NT 4 or 2000) The same code doesn't work in mod_perl. Do I need to configure something in Apache or mod_perl to be able to see remote files as \\computername\g$\filename.xxx ? I could have an Apache server on the remote machine (local network), but as I have to see this file from outside the network, only one ip address is visible (the computer connected to Internet). Thank you Radu Caulea, Senior Oracle Consultant www.caulea.fr.st
RE: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27
This is what i've got trying the same thing: httpd >= 2.0.40 is needed by mod_perl-1.99_05-3 perl >= 5.8.0 is needed by mod_perl-1.99_05-3 httpd-mmn = 20020628 is needed by mod_perl-1.99_05-3 libapr.so.0 is needed by mod_perl-1.99_05-3 libaprutil.so.0 is needed by mod_perl-1.99_05-3 libc.so.6(GLIBC_2.3) is needed by mod_perl-1.99_05-3 Radu -Original Message- From: Beau E. Cox [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 13:59 To: Frank Laczko Jr.; [EMAIL PROTECTED] Subject: RE: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27 No No No - mod_perl-1.99 is really the pre-relase mod_perl 2. You MUST use Apache 2 with mod_perl 2! Aloha => Beau. -Original Message- From: Frank Laczko Jr. [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 29, 2002 11:37 PM To: [EMAIL PROTECTED] Subject: Help! :) - Installation problem with mod_perl-1.99_07 and apache_1.3.27 Hello all I am having a problem getting mod_perl-1.99_07 and apache_1.3.27 installed. I have looked through the docs and have not seen a solution, so if one exists and I missed it, let me apologize in advance. I am running the apache configure script that uses apaci with options to enable mod_so and several other modules, then running the perl Makefile.pl script for mod_perl. This is the error I get: $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 USE_DSO=1 Reading Makefile.PL args from @ARGV !!! Unable to determine server version, aborting. !!! Please specify MP_APXS or MP_AP_PREFIX. I have also tried : $ perl Makefile.PL APACHE_SRC=../apache_1.3.xxx/src NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 Reading Makefile.PL args from @ARGV !!! Unable to determine server version, aborting. !!! Please specify MP_APXS or MP_AP_PREFIX What am I missing? Anyone have any ideas? Thanks in advance Frank Laczko [EMAIL PROTECTED] -- virus checked - cciu unitbv
Re: RegistryLoader and multiple virtualhosts
On Thu, 30 Dec 1999, Jason Terry wrote: > Is there a way to RegistryLoader a single instance of a script > /cgi-bin/admin.cgi > and have this instance work across ALL virtual hosts. > > simply loading > $r->handler("/cgi-bin/admin.cgi", > "/home/jter/public_html/cgi-bin/admin.cgi"); > doesn't seem to work. It loads it, but if I check my processes after > running the script, I see multiple instances of it in the child processes, > one for each host. Yes, in your PerlRequire startup file set $Apache::Registry::NameWithVirtualHost to 0. Don't forget to see the guide http://perl.apache.org/guide/config.html#A_Script_from_one_virtual_host_c for possible problems when setting this value to 0. HTH, Radu Greab
RE: squid performance
On Mon, 17 Jan 2000, Markus Wichitill wrote: > > So, if you want to increase RCVBUF size above 65535, the default max > > value, you have to raise first the absolut limit in > > /proc/sys/net/core/rmem_max, > > Is "echo 131072 > /proc/sys/net/core/rmem_max" the proper way to do > this? I don't have much experience with /proc, but this seems to work. Yes, that's the way described in Linux kernel documentation and I use myself. > If it's ok, it could be added to the Guide, which already mentions how > to change it in FreeBSD. I'd also like to see this info added to the Guide. Radu Greab
Bad Action
I would like to apologies for my yesterday post of many lines. Though this message will cause also bandwith consumption, please forgive me ! I replied to the digest, instead of creating a new message. I am truly sorry ! Radu Caulea, Senior Oracle Consultant www.caulea.fr.st