Holy sh*t, that's neat, a lot of work but neat nonetheless...




"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Dave Ross
To: CF-Talk
Sent: Sat May 26 13:38:22 2007
Subject: Re: Scope Memory

There *is* away to see exactly how much space a given object (CFC, array, or
otherwise) is taking up - perform a "Heap Dump". If you are running a JVM
1.4.2_12 and up, you can force a heap dump and thqen analyze the resulting
bin file with jHat (a utility that comes w/ JDK6) to see what was in your
heap, in terms of classes, number of instances, and size of each instance.
It takes some digging, but if you need to find out the actual memory
footprint of a CFC (in terms of bytes), you can do it this way. I talked a
bit about this here (with links to info on doing heap dumps):

http://www.d-ross.org/index.cfm?objectid=7DADADEF-1143-D861-4D62CCC08AB955CB

The other way is to hook a profiler (like Borland's OptimizeIt) to a running
jvm. 

Dave Ross
http://www.coldspringframework.org

>Is there any way (outside of getting CF8 in a few months) that I can 
>access the amount of memory that a given scope is using?
>
>Thanks,
>Chris
>
>-- 
>http://cjordan.us



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279332
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to