The Allaire knowledge base article on monitoring memory usage states:

One of the most common causes [of increased memory usage] are improperly
locked access to session, application, and server variables. These variables
are stored in memory and need to be enclosed in a CFLOCK tag with the
appropriate SCOPE attribute specified (i.e. session, application, or server)
when referenced.

while Ben Forta says:

Caution: avoid unnecessary use of <CFLOCK>. Forcing code to single-threaded
use only can seriously impact system performance.

We're building an application which uses session and application variables
on every page (for security and user customisation). Should we use <cflock>
when we read them? Or when we write them? Or both? Does anyone have any
guidelines on <cflock> usage?

Thanks

Tom

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to