>
> Hi, I have Solaris 2.6, 1 GB memory, apache 1.3.14, mod_perl 1.24, embperl
> 1.3b7.
> We have an Embperl+Mysql application with approx 600 simultaneous users.
> I'm suspicious that Embperl causes Apache to grow to the limit it can -
> httpds keep free physical memory limit constantly on level 30-40 MB. When
> tehere are peaks, and we have 70-80 httpds, they are about 20 MB large.
> When need for service drops, they grow to 50 MB.


Perl (mod_perl) really needs a lot of memory and Embperl caches any compiled
Perl code for performance resons. So it's not unusual that you are getting
big httpd's. How big it gets depends on the number of Perl/Embperl pages you
have. You may try to loaded your Embperl pages on server startup via
Execute, so they are shared between httpd childs. It depends on our
application if this gives a better memory usage or not.

As Gunnar already pointed out the mod_perl guide
(http://perl.apache.org/guide/performance.html) has a lot of tunning tips.

On the other side you should make sure that your code doesn't leak. Normaly,
if you request the same page over and over, the httpd shouldn't grow after
the second request. To test this you may start a httpd with -X option, so
you have only one child to watch and request the page to test via
ApacheBench (ab), the httpd should have a constant size, if not something
inside your app is leaking.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to