Re: Getting memory amount used

2014-10-02 Thread Claude Schnéegans

 >>Might be able to get this using Java.

Thanks, I'll dig into this.
I thought that my server chokes because of lack of memory, but I finally found 
that it was because of an infinite time taken in a regExp analysis.
I just dropped a post about this.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359389
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Getting memory amount used

2014-10-01 Thread Byron Mann

Might be able to get this using Java.

http://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object

For simpler objects maybe serialize the variable to json or wddx and do a
regex to replace all the syntax characters and get the length.

Fusion reactor or the builtin CF monitoring may get this granular for
session variables. I cannot remember off hand.

Byron Mann
Lead Engineer & Architect
HostMySite.com


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359386
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Getting memory amount used

2014-10-01 Thread Claude Schnéegans

Hi,

Would any one know some trick to get the amount of memory occupied by a 
structure like query, etc.?
Thanks


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359383
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm