question: Do you have to modify the JVM settings so that CF can actually use our theoretical 1GB of RAM?
-----Original Message----- From: John Paul Ashenfelter [mailto:[EMAIL PROTECTED] Sent: 09 November 2005 16:02 To: CF-Talk Subject: Re: SESSION or not to SESSION On 11/9/05, Ken Ferguson <[EMAIL PROTECTED]> wrote: > I'll go along with this sentiment. Use session variables when you need > them, but put what you can into the applicaiton and request scopes. RAM > is cheap. > > --Ferg Agreed. Actually, it's a lot easier to turn the calculation around. You have a maximal peak of a little less than 30,000 users (2000 active 27000 casual), so 1MB of RAM gives each of those 30k users 33bytes. Assuming Unicode to give a lot of overhead, that's 16 usable bytes per MB. Cut that in half to factor in a lot of overhead and you've got 8 usable bytes left. So 1 GB of RAM for session use would give you 8000 bytes per person with plenty of room left over.... that's assuming your box can *handle* all 30k at once, which is pretty unlikely :) Using a more realistic scenario like 1000 users with active sessions 1MB -> 1000 bytes -> 500 unicode characters -50%overhead-> 250 usable bytes/user So 1GB yields 250,000 "usable bytes" of storage for that user. That's a lot of storage.... <sidebar>I'm using characters to equate to usable bytes since ColdFusion isn't really typed -- under the hood, it's converted in many cases, but using characters should be on average equal or greater than the underlying data strucuture. This is really an order of magnitude calculation so the specifics are not a big deal -- and if anything, these should be pretty conservative numbers.</sidebar> So the point is, you really have to put a *lot* in session scope and/or have a *lot* of users to approach any real worries about session memory. -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:223680 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

