Josh,

We've seen similar activity, with a very similar configuration. Here are 
a few things that we've done to relieve our growing pains a little.

1) JVM tuning is critical. The default jvm.config 'out-of-the-box' only 
addresses 512m of RAM for each instance. Garbage Collection choice is 
very important as well. JVM tuning is a lot of trial and error.
2) ColdFusion 8 runs better on Java 1.5. This is a very easy process to 
switch. Google is your friend here.
3) StructClear(VARIABLES) at the end of each page request (can't use in 
application.cfc, so if anyone has suggestions...)
4) Application tuning. When running multiple sites on your server, you 
probably also have multiple applications, each with their own set of 
memory requirements. The server monitor can be very valuable here, as it 
can show you which applications are using the most memory, and what 
variables of those applications are hogs. You can do similar profiling 
with session data in each application. What we found was that, 
throughout the day a site would get hit, initialize it's application, 
and that application wouldn't clear until the wee hours. The more sites 
get hit, the more apps get initialized, the more RAM begins to fill up. 
Additionally, as traffic steadily increased so would the number of 
active sessions in memory.

We saw some unnecessary query caching causing some problems. We also 
discovered some session variables that were much better served in the 
application scope. By making a few code adjustments we recaptured some 
fairly large amounts of RAM.

Here are a few blog postings that helped me in our quest:
http://www.forta.com/blog/index.cfm?mode=entry&entry=A61BAA93-3048-80A9-EF7306C155FD29F4
http://www.petefreitag.com/articles/gctuning/
http://www.jmpj.net/jason/index.cfm/2007/5/11/Cold-Fusion-Memory-Leak-Continued
http://www.webapper.net/index.cfm/2006/6/8/20060606021131
http://www.robisen.com/index.cfm/2006/5/26/More-on-ColdFusion-tuning-and-clarifying-JRUNXML-settings
http://www.talkingtree.com/blog/index.cfm?mode=alias&alias=ContextSwitchingBad
http://www.coldfusionmuse.com/index.cfm/2008/2/12/leaky.heap.jvm

Hope some of this helps you out.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com

Josh L wrote:
> Ok, i'll first start off by saying thank you to all of the previous
>  people who have given information on here about JRUN and the memory
>  issues; you have kept me partly sane past few weeks. I'm a bit new to
>  coldfusion but not to computers in general and my company is having a bit of 
> a
>  problem, or so i think...
> 
> We are running Coldfusion 8 on a Win2003 server with 3 servers running
>  in multiserver mode. The web sites that they host are small and nothing
>  flashy but mainly used for transfering and receiving mass amounts of
>  numbers and figures. One of the servers had almost all of the traffic
>  and other two very few clients on them. Basically what we were seeing (on
>  only the heavy loaded server) is the memory for JRUN.exe going up
>  throughout the day and never ever going back down. Eventually the pages
>  would lock up and we had to just restart jrun and everything was fine. 
> 
> Since then, I've been searching the google-web in search for some
>  fixes, we've tried thread dumps to try and pinpoint when the problem was
>  occuring and what was causing it, but all i could get is JRUN was running.
>  So i've spread out the load a bit moving a handful of my heavily used
>  sites to the other two servers. Since i've done that there have been no
>  freezes in the pages or errors on the sites. My concern however is the
>  fact that on the task manager my JRUN will still climb steadily
>  throughout the day on the main heavy server. For example yesterday it started
>  out around 200k and by the time i left it was around 850k memory used.
>  Just to be safe i restarted JRUN before i left. In the server monitor
>  my graphs look ok no real high peaks and i can see where garbage
>  collection is bringing everything back down. 
> 
> SO after all that i ask my question. Should i trust my taskmanager or
>  the graphs in coldfusion server monitor? My other two servers all stay
>  at 280-310k memory usage and we've never gotten this error on them. 
> 
> Thanks for all the help
> 
> Josh 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302615
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to