Interesting...I saw the option of buddy servers in the JRUN admin panel but didn't know you can just edit an XML props file to achieve the same thing for CFMX with the built-in JRUN. Can you point me in the direction of where to find that XML file? (file name, dir location)
Much appreciated! Chris -----Original Message----- From: Stacy Young [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:23 PM To: CF-Talk Subject: RE: Measuring session scope impact on memory? Any version of CFMX...waiting for confirmation on whether it can be done in Pro...I think so.... -----Original Message----- From: Chris Kief [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 3:03 PM To: CF-Talk Subject: RE: Measuring session scope impact on memory? Is this with CFMX for JRUN4 (currently in Beta)? Chris -----Original Message----- From: Stacy Young [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:25 AM To: CF-Talk Subject: RE: Measuring session scope impact on memory? Check this out: http://livedocs.macromedia.com/jrun4docs/JRun_Administrators_Guide/clust erin g2.jsp#1113343 (watch for url wrapping) This applies to CFMX since it runs on JRun4...and we're using it now. In short, you specify a list of "buddy" servers running in the cluster and CMFX will handle automatic session sync'ing with the other machines. Here's a snippet of what to edit in the xml properties file: <session-config> <persistence-config> <active>true</active> <persistence-type>file</persistence-type> <persistence-synchronized>true</persistence-synchronized> <class-change-option>reload</class-change-option> <session-swapping>true</session-swapping> <session-swap-interval>5</session-swap-interval> <session-max-resident>500</session-max-resident> <replication-config> <active>true</active> <buddy-list>jrunserver2</buddy-list> <buddy-list>jrunserver3</buddy-list> <buddy-list>jrunserver4</buddy-list> </replication-config> </persistence-config> .... That should do it! -----Original Message----- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 1:58 PM To: CF-Talk Subject: Re: Measuring session scope impact on memory? Stacy, This is great info.. can you please explain on... "CFMX is cool because you can easily load balance the session data across a cluster just by editing a server buddy list!" How do you go about doing this? Joe ----- Original Message ----- From: "Stacy Young" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, July 25, 2002 12:19 PM Subject: RE: Measuring session scope impact on memory? > Hi Andre, > > I'm storing plenty of objects in session scope relating to > reporting/queries....and I've used a rather primitive method of determining > memory requirements....I output a typical session to flatfile and measure > the bytes. Then I've got a rough estimate per user session. I think you'll > find you can hold a lot more data with ur existing RAM then you thought! > > I used to use query caching but I found it was holding recordsets longer > than it had to...if they're in session then they'll dissipate when the > sessions over either via logout or browser close...but I'll be honest...I > wouldn't have moved to the session solution before CFMX but that's really > just paranoia on my part... > > CFMX is cool because you can easily load balance the session data across a > cluster just by editing a server buddy list! > > Hope that helps, > > Stace > > -----Original Message----- > From: Andre Turrettini [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 11:48 AM > To: CF-Talk > Subject: Measuring session scope impact on memory? > > Hi, I've never read anything about this so this q is for the gurus! Please > read completely and thanks for your attention. Let me describe the issue > then I'll ask my question. > > I've pretty much stuck to client vars to avoid ugly locking code. However > now, I have a use for them. I need to store dozens of queries in a > structure in the session scope. I've got it coded and it works like a > charm(Yes its locked) saving lots of time for the database server. The > performance savings is dramatic as the queries that were repeatedly > generated each time took time away from other tasks. Client vars might not > be so good as I"d have to wddx the whole thing back and forth which would be > a big chunk of data to and fro from the server. Plus the serialization and > deserialization overhead. Cacheing the queries is not good as each user > will have different queries. > > So, to my question. I've estimated this would take a gig of ram per server > to store these queries for all of our users. So, (1)is there a way to > measure how much memory is being allocated for session vars? (2)When I look > at the cf memory, will it go from 60megs to a gig? Anyone tried this and > gotten burnt? Thanks. DRE > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

