> This means that a CFML file that gets requested every 5 minutes just eats up
> all available memory (and even the complete swap space if we let it run long
> enough).
>
> I do not yet understand why this happens. If (with Linux) a process
> allocates 1 MB, frees it and then malloc's 1 MB again, the first memory
> chunk is reused !
Calling any custom C++ CFX tags? Memory allocation within them, if done
improperly could be causing it. If you're not using any CFX tags perhaps
you could list all the CF tags you're using? Maybe an obscure one has a
memory leak in it?
> 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.
Ack... Apache's not threaded really. Perhaps it does some internally but
that's not it's overall design. Run a 'ps ax' once, you'll notice that
each httpd process has a different PID. Apache spawns out a few children
which are seperate processes, lets them handle requests and eventually
kills the child in case of memory leaking. The MaxRequetsPerChild setting
defines how many connections an httpd handles before it dies off and is
replaced by a new child.
Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI 49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
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.