Little enough that it doesn't matter.  If you're not doing any data
caching in the components, then the're practically no way you could
hope to have memory issues.

I don't know how to measure exactly, but you should be able to get a
reasonable approximation by summing up the total size of all your
instance variables.  Obviously that doesn't include the storage of the
code, but that is handled as part of CF's internal processing, so you
a) can't control it, and b) it has to happen even if you don't cache
the instance.  Note that if you have complex data in your instance
variables (structs, arrays, objects), you need to sum up the data
enclosed within those as well.

Just for reference, we probably keep about a hundred application
objects in memory, not counting cached objects, and have no memory
issues.  If you count caching of data objects, that number is
significantly larger (in the thousands), but i don't know exactly how
large.  We run what I'd consider a medium-large application (90,000
lines) on small-medium hardware resources (no individual app server
has more than 1 GB of RAM).

cheers,
barneyb

On Wed, 10 Nov 2004 11:33:22 -0800, Jonathan Bigelow
<[EMAIL PROTECTED]> wrote:
> Hi all!
> 
> After Max I've decided to start playing around with caching some of my
> more frequently used CFCs in memory for faster execution times.  I'm
> only caching components that are used extremely often (those that handle
> security, generate navigation, data formatting, etc.)  The navigation
> components are stored in the application scope and I have a few
> formatting components (for phone numbers, title-case, etc.) stored in
> the server scope so I can access them from every site on the server.
> 
> Is there any way to determine how much of the servers memory these
> components are occupying?  I'm not having any issues with them so far,
> it's worked really well actually, but for curiosity and planning's sake
> I'd like to figure this out.
> 
> Thanks!
> 
> Jon

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/blog/

I currently have 0 GMail invites for the taking

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183941
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to