Re: mod_perl and open files limit

2002-04-06 Thread jon schatz

On Thu, 2002-04-04 at 00:46, Mike V. Andreev wrote:
 Hello.

hi.

 During the work with web interface 
 number of open files slowly grows and finally reaches OS limit. 
 And this happens with only 2-3 users working with interface !!!
 If to restart apache number of open files comes back in norm, so I think that
 the problem roots in my way of mod_perl usage.

first of all, is your code closing all the filehandles it opens? garbage
collection works differently in mod_perl, and unless you explicitly
close fh's, they have the tendency to stay around for awhile.

 What kind of diagnostics can be done to find out what causes the  
 problem?

try lsof(8), which will list all open files (and the process they belong
to).

-jon

-- 
[EMAIL PROTECTED] || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus? www.divisionbyzero.com/pgp.html
You are in a twisty little maze of Sendmail rules, all confusing. 



signature.asc
Description: This is a digitally signed message part


Re: AddModule mod_perl.c

2002-03-27 Thread jon schatz

On Thu, 2002-03-28 at 00:00, Perrin Harkins wrote:
 I'm afraid I'm not that much help with install problems because I just
 haven't had any of my own to deal with.  You can try using Apache
 Toolbox to do the build.  It's supposed to make this stuff easier. 

also check this out (Apache Compile HOWTO). Walks you through
compiling apache + mod_perl + mod_ssl + php + just about everything else
you need. i keep it bookmarked because i always forget the openssl
commands to generate a self-signed certificate.

http://www.delouw.ch/linux/apache.phtml

-jon

-- 
[EMAIL PROTECTED] || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus? www.divisionbyzero.com/pgp.html
You are in a twisty little maze of Sendmail rules, all confusing. 



signature.asc
Description: This is a digitally signed message part


Re: POST without any content - sometimes

2002-02-15 Thread jon schatz

On Fri, 2002-02-15 at 16:07, Ged Haywood wrote:
 [snip,snip]
  to use tcpdump in this case, Any hints?
 
 You can use tcpdump to record the entire conversation between the
 browser and the server.  To find out how to use it you can just type
 'man tcpdump'.  

although tcpdump output isn't very pretty, especially to someone who
isn't familiar with libpcap. you might have better luck with a front-end
to tcpdump. i personally reccomend ethereal (www.ethereal.com), which
runs on *nix and win32. using something like this makes it easier t
-- 
[EMAIL PROTECTED] || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus?: www.divisionbyzero.com/pgp.html
You are in a twisty little maze of Sendmail rules, all confusing. 



signature.asc
Description: This is a digitally signed message part


Re: POST without any content - sometimes

2002-02-15 Thread jon schatz

On Fri, 2002-02-15 at 16:20, jon schatz hit the send button to quickly:
 runs on *nix and win32. using something like this makes it easier t

meant to say makes it easier to see the actual HTTP conversation, not
just the tcp traffic. oops.

-jon

-- 
[EMAIL PROTECTED] || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus?: www.divisionbyzero.com/pgp.html
You are in a twisty little maze of Sendmail rules, all confusing. 



signature.asc
Description: This is a digitally signed message part