Hi Everybody,
We have an e-commerce website developed using Coldfusion 7, Model-
Glue, Coldspring and Transfer. Over the past months we have struggled
with what we thought was a "Memory Leak". We could see the jrun memory
usage climb until it just became unresponsive (queue a bunch of
requests and never serve them). We would then have to restart jrun and
repeat the process over and over again.
After months of trying to figure out what was going on we finally
realized who the culprit was; the Transfer cache.
Now, here's our original cache configuration:
<objectCache>
<defaultcache>
<maxobjects value="60"/>
<maxminutespersisted value="10" />
<accessedminutestimeout value="10"/>
<scope type="instance" />
</defaultcache>
<!-- SOME CLASSES WE DONT WANT TO CACHE -->
<cache class="Users.Orders">
<scope type="none" />
</cache>
....
</objectCache>
It turns out leaving the cache on by default was killing us. Although
performance was always great, under heavy load our site would
sometimes have to go down every hour.
After some experimenting we decided to turn the cache off by default
and be very conservative on the objects we cached. Our latest
transfer.xml looks something like this:
<objectCache>
<defaultcache>
<scope type="none" />
</defaultcache>
<cache class="Users.Customer">
<maxobjects value="60"/>
<maxminutespersisted value="10" />
<accessedminutestimeout value="10"/>
<scope type="instance" />
</cache>
<cache class="Products.ProductType">
<maxobjects value="10"/>
<maxminutespersisted value="30" />
<accessedminutestimeout value="10"/>
<scope type="instance" />
</cache>
...
</objectCache>
I guess the main question I have is whether anyone here has had
similar experiences or has any rule's of thumb when it comes to
caching objects. We are still unsure on whether the behavior we were
experiencing was an actual memory leak or just poor cache management.
Any comments?
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---