Typo 4.0 and memory reduction... 4

Posted by Steve Longdo Fri, 04 Aug 2006 22:56:00 GMT

Have you upgraded to the latest Typo release only to find that it hits the per process memory limit on your host? It happened to me.

Here is how I went about reducing the memory footprint of Typo:
  • Removed sidbars that aren't used from the installation.
    • Amazon through XBox.
  • Removed unused requires from environment.rb
    • In particlular aggregation classes for the Sidebars that were removed.
  • Make sure to not load any unnecessary parts of Rails (i.e. ActiveWebService) That's right I use the admin screen to post!
  • Most importantly deleted the sparklines_textfilter.
That last one makes a huge difference in the memory use of Typo. It removes the need to load RMagick saving around ~8MB from your process size. In fact these changes have brought Typo down to about 33MB in memory. Since the average Rails app uses 30MB this isn't too bad, however memory consumption slowly creeps up over a period of days and hits the limit. Seemingly a memory leak. I will be digging into this issue as time allows, but work is keeping me busy.

I will eventually be using a diferent theme but I switched to this one while checking out memory use and haven't spent enough time on my new one yet.

Older posts: 1 2 3