Hi Mat, this is usually not an issue with "a" solution but rather a path to a solution that requires a lot of investigation.
I'd suggest you have a look into the following existing threads to get an idea: http://groups.google.com/group/cfaussie/browse_thread/thread/de7b179fe103f3c5/5772df37ee902021?lnk=gst&q=memory#5772df37ee902021 http://groups.google.com/group/cfaussie/browse_thread/thread/5d855bc4c91f947/bcf4927d47026072?lnk=gst&q=memory#bcf4927d47026072 http://groups.google.com/group/cfaussie/browse_thread/thread/61c8a0ea94850ca4/27117ec0e191762d?lnk=gst&q=memory#27117ec0e191762d http://groups.google.com/group/cfaussie/browse_thread/thread/de7b179fe103f3c5/b44b44b4aa2eb5b0?lnk=gst&q=memory#b44b44b4aa2eb5b0 I'd start with learning about the way the JVM manages and cleans up memory. For that you'd need to look into your CF server's JVM settings. Understand what they mean and how much memory is available for the various regions. If you run out of heap space, that could mean that your GC doesn't catch up with the amount of memory churn in your app. If you set a lot of Java objects into the session scope and create a lot of sessions that might be the case. Generate a heap dump and examine that - tools like VisualVM and gcviewer (among others) help with that. Re load balancing - I wouldn't even think about going down that route unless you know what the issue in your app or server is. But if you feel you must - there are tons of ways to set up load balancing. Hardware/Software; JRUN-cluster based or on a HTTP-server level etc. Just as a side note: What you're asking for "a solution to the following" or "does anyone have instructions on how to setup load balancing" is rather a consulting gig than a question on a mailing list imho. As you can see from just the few pointers I've provided you, it's a vast topic with a lot of implications for a system's architecture. There are a bunch of people on this mailing list who provide exactly this type of support/consulting experience commercially. Cheers Kai -- Kai Koenig - Ventego Creative Ltd ph: +64 4 476 6781 - mob: +64 21 928 365 / +61 435 263 414 web: http://www.ventego-creative.co.nz blog: http://www.bloginblack.de twitter: http://www.twitter.com/agentK -- > Hi All, > > I am new to the group and was hoping someone can help me with a > solution to the following; we have created an application using java > and cold fusion; we do create a lot of Java objects that we hold in > memory at the session level. We are getting an out of memory error; > basically the heap space fills up; server slows to the point that it > crashes. > > First thought is we have a memory leak; I am using jconsole, nice > graphs but what is it really telling me; if anyone knows of a > monitoring tool that will help me see if we have memory that is not > being cleared that should be and what that memory is; would be > appreciated? > > Second thought is we designed the application to hold a lot in memory > to save time hitting the db; I wonder if we are just under resourced. > We are running CF 8,0,1,195765 STD, Java 1.6.0_04, on a Windows 2003 > 32bit Svr. I do have a second server available; does anyone have > instructions on how to setup load balancing so that I can have two > servers sharing the load? > > Any help would be most appreciated? > > Many Thanks, > Mat > -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.