The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Stupid Memory Tricks

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Stupid Memory Tricks Posted: Feb 7, 2007 3:44 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Stupid Memory Tricks
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Today's "oops, I discovered a self inflicted scaling problem" lesson goes to me, again. In the startup script for the image running this, I set the soft and hard memory limits to a range - which is fine, except for one small problem - I had completely forgotten about an earlier directive to grow memory by a specific amount. Well, it turns out that growing memory by as much as I set it to pushed the image right up to the soft memory limit - which placed the image into a low memory situation once it ran for awhile. That's why the server has been slow or inaccessible the last couple of days - I addressed that problem just before lunch.

Update: The final fix was to modify the settings for this:


ObjectMemory sizesAtStartup

All the values there were set to the defaults (which, for the version of the server I'm running, were 1.0). That was way too low - in particular, new space (where new objects are born) was too small. The way things were working, objects were tenuring too quickly, and ending up in old space (where they never die until a GC is done - which is much more rare until the image switches from "grow memory" to "reclaim memory").

In effect, I was filling memory up with trash until I hit a level that made things slow, and only then did the image start to respond. By setting new space larger, objects have a chance to die off without being tenured - and the image doesn't push CPU as often collecting garbage (and thus spends more time answering actual user requests).

Read: Stupid Memory Tricks

Topic: What a difference 8 months makes! Previous Topic   Next Topic Topic: The return of

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use