>On a side note:
>Why does apache, a threaded webserver, work so well ?
>It never grows above approx 5MB even if it hands out GBytes of data.
>I think it will use the standard malloc also.
As other people have noted, Apache is multi-processed instead of
Multi-threaded. This is actually fairly common for linux programs as well,
the threading model on Linux sucks. Yes, it's come by leaps and bounds, but
it still sucks.
For instance, take a look at the Glibc Bug queue on instances of the
word 'threading' it comes up with a few hundred, mostly open bugs. This is
due to the fact that the primary kernel people (Alan, Linux) do not believe
in threading. (And pthreads sucks as an implmentation) I've exchanged emails
with them on this very subject before.
Especially when it comes down to debugging multithreaded apps. In
order to do that, you need to compile a special kernel, so that GDB can even
recognize the core.pid system. And good luck using strace.
For instance, check out a bug report we files with redhat long ago
(CF5 dev):
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=38638
Come to find out, this very bug seems to be an error in the pthreads
glibc implmentation. It will supposedly be fixed in the glibc 3.0 release.
As it is, with the new 2.4 kernel implmentations (which fix ALOT of
things, esp thread memory allocation) glibc is lagging behind. Redhat has
thankfully tried to keep up with glibc patching until they can grab an
official 'released' version that doesn't break everything.
Anyways, back on topic, most Linux programs generally use the
process system instead of threading because threads are typically considered
unreliable and faulty (luckily, this had been fixed kernel side for the most
part, and redhat is keeping glibc sane). We have had problems with Cf, but,
luckily, because we did pick a sane distro to port to, we're ok.
Alot fo what you might be seeing could possibly be traced to both
kernel and Glibc implmentations.
I am not, however, pushing blame off of CF, it's actually quite
possible that the template does have a memory leak, or you have found
something inside the actual engine. However, i do reccomend trying a more
recent distro/kernel/glib combo.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.