If you're upgrading to CF7, many of the issues will go away for free. On CF5 and below, you had to use CFLOCK to prevent memory corruption and avoid race conditions. On CFMX (6 and up), the underlying Java runtime takes care of the memory corruption for you, so CFLOCK is only needed for avoiding race conditions.
I'd do the upgrade first, and then if you're still having issues, worry about going back and adding CFLOCK all over the place. CFLOCK is a performance hog (because it reduces the ability of CF to run multiple requests concurrently), and should be avoided where possible. I suspect most of the places you'd be adding it will be unneeded on CF7. cheers, barneyb On 11/7/05, Horne, Jeff <[EMAIL PROTECTED]> wrote: > We have recently discovered that many of the variables on our site are not > enclosed by cflock tags. As a result, the CF service would restart at times > when we had high volume. We were never sure why. Now we are. We are now > going through the code and doing a great deal of clean up. The point we are > unsure of is how long we should set our the timeout for. Is there a rule of > thumb for timeout length? Exclusives vs read-only? We've seen many > examples of cflock tags around code with timeout amounts varying widely. > Sometimes we see 3 seconds, other times 10 seconds and even 60 seconds. > What happens if CF can't get a lock before the timeout, will it wait, skip > that code or error out? We are still on CF 5.0 and we are doing this clean > up to get ready to upgrade to MX 7. > > Thanks for any help. > > Jeff > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223516 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

