Memory issue

I just updated a ruby on rails application from rails 1.1.0 to 1.2.x and
got into the following problem:
The lighttpd memory footprint rised from 23Mb(already not loading
actionmailer and actionwebservice) to 27Mb and since the platform on
which the rails app must run is very very limited on memory, that is not
acceptable.
What would you suggest to do? Is that app bound to stay on rails 1.1.0
to keep the memory footprint under 25Mb?

Thank you in advance,
Emanuele R…

I think you need to do what you can to remove whatever real or
artificial
memory limit you have. Typically, a Rails app will grow far beyond 25mb
when under heavy use, regardless of what version you’re using. You can
verify that yourself by hitting your application’s URL with httperf
Rails
1.2 does consume a bit more memory than previous versions though.

Brian H. wrote:

I think you need to do what you can to remove whatever real or
artificial
memory limit you have. Typically, a Rails app will grow far beyond 25mb
when under heavy use, regardless of what version you’re using. You can
verify that yourself by hitting your application’s URL with httperf
Rails
1.2 does consume a bit more memory than previous versions though.

Thank you for your answer.
Unfortunately the memory limit is there to stay since the app is running
on an enbedded linux platform with only 64Mb of ram. Beside the memory
is not going to rise much from the footprint cause only one user at a
time is allowed and the webserver restarts automatically once a day.

Is there something else I could strip from loading as I did with
actionwebservice and actionmailer that were not needed to lower the
footprint?

With memory restrictions like that you may want to consider Merb or
Camping,
lighter Ruby frameworks. Rails has a LOT of stuff that loads… the view
layer is especially heavy.

On Oct 24, 5:26 am, Emanuele R. [email protected]
wrote:

Unfortunately the memory limit is there to stay since the app is running
on an enbedded linux platform with only 64Mb of ram. Beside the memory
is not going to rise much from the footprint cause only one user at a
time is allowed and the webserver restarts automatically once a day.

Is there something else I could strip from loading as I did with
actionwebservice and actionmailer that were not needed to lower the
footprint?

Posted viahttp://www.ruby-forum.com/.

i think they were asking similar questions:

http://groups.google.com/group/rubyonrails-talk/browse_frm/thread/5347b34338c2fda2/#

I figured out how to lower the memory footprint back to something
similiar to rails
1.1.0 by removing the not needed unicode support introduced by 1.2.0 as
explained on the following page:

http://slateinfo.blogs.wvu.edu/blog/2007/6/14/fix-your-encoding

Anyway If someone can suggest anything else to strip from rails to
reduce the memory footprint it would be very welcome :slight_smile: .

Thank you guys.

You may want to look at RailsExpress.blog as there is quite a
bit
of information there on optimizing Rails.

Thats not an option, but thank you anyway.