Hello all!

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!
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.

I see strange error in httpd.modperl error log :

Attempt to free unreferenced scalar.

No line number, no script name, nothing more.

Maybe someone knows, what's the matter and how I can solve such strange
problem?

Sincerely yours,

Vladimir Buyanov, senior web-developer
Agama Internet Systems
http://www.aport.ru
http://www.agama.com

Reply via email to