[Rails] RubyGems runtime memory use in Rails apps...
Stef T
stef at ummon.com
Wed Aug 9 02:41:16 GMT 2006
Hello Steve,
Well, since you asked for help, can I suggest that you provide
pertinent details ? OS used, ruby version, and also the example code
that you used to profile would be nice ;) I must say, that rubygems
hooks into the main process from what I can (hence the require) so I
would -expect- it to stay resident in memory. Which reminds me, what
memory are you profiling here ? VSZ ? RSZ ? Then again, in the day and
age of 1GB in my desktop machine, its probably highly easy to dismiss a
RSZ of 10MB ;) Heck, almost all of the servers at work have >4GB. Thats
not the point, I know, but, there is no point in chasing rabbits down
holes if you don't need to (also called the 'premature optimisation'
problem).
Details details, the devil is in the details*
Regards
Stef
(* this should not be taken as an endorsement of satan nor that I have
-the- answer to your problems ;)
Steve Longdo wrote:
> This an open plea for someone with knowledge of RubyGems to explain
> why RubyGems stays in memory (over 10MB) after a Rails application is
> loaded. I am unable to figure out why this would be necessary. I
> haven't had any response from Jim or Chad from RubyGems about it so I
> thought I would throw it open to the list to see if anyone could
> educate me or share thier experiences with this.
>
> There is a more detailed write up on my blog (
> http://www.stevelongdo.com/articles/2006/08/08/rubygems-dependency-management-and-memory-use
> <http://www.stevelongdo.com/articles/2006/08/08/rubygems-dependency-management-and-memory-use>
> ).
>
> --
> Thanks,
> -Steve
> http://www.stevelongdo.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
More information about the Rails
mailing list