Hi,
I am really struggle with following result..i have to explain my
situation.
First, i have created small rails application which is only used to show
data from table called products(nearly 11 lakhs of records in the
table).Application was getting very low performance, So i decided to
measure Rails''s memory usage.
This was my memory usage before run application:
root@dev:free -m
             total       used       free     shared    buffers
cached
Mem:          1000        854        146          0         13
177
-/+ buffers/cache:        662        646
Swap:         1223         48       1223
I then proceeded to hit first request,free memory was reduced from 646MB
to 362MB.
root@dev:free -m
             total       used       free     shared    buffers
cached
Mem:          1000        854        146          0         13
177
-/+ buffers/cache:        662        362
Swap:         1223         48       1223
When i continuously used application,free memory was reducing gradually
Used memory is not released even after the report shows result.
Free memory didn''t come back to initial level like 646MB even i stopped
to use my application nearly 20 min..
Please give me a solution to solve this problem..
Thanks
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Google for "linux free command" From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command "The second line starting with -/+ buffers/cache: tells us how much of the memory in the buffers/cache is used by the applications and how much is free. Keep in mind that in general the cache is filled with disk IO cached data. The cache can be very easily reclaimed by the OS for applications. Let BUFFERS + CACHED from first line be value X." It''s using caches, and my guess is that if stopping the app doesn''t free it, then the caching is happening at the OS/FS level, not in Ruby or Rails. Larry -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Larry Meadors wrote:> Google for "linux free command" > > From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command > > "The second line starting with -/+ buffers/cache: tells us how much of > the memory in the buffers/cache is used by the applications and how > much is free. Keep in mind that in general the cache is filled with > disk IO cached data. The cache can be very easily reclaimed by the OS > for applications. Let BUFFERS + CACHED from first line be value X." > > It''s using caches, and my guess is that if stopping the app doesn''t > free it, then the caching is happening at the OS/FS level, not in Ruby > or Rails. > > LarryThanks for reply... Here used memory is released when i stop server.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Larry Meadors wrote:> Google for "linux free command" > > From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command > > "The second line starting with -/+ buffers/cache: tells us how much of > the memory in the buffers/cache is used by the applications and how > much is free. Keep in mind that in general the cache is filled with > disk IO cached data. The cache can be very easily reclaimed by the OS > for applications. Let BUFFERS + CACHED from first line be value X." > > It''s using caches, and my guess is that if stopping the app doesn''t > free it, then the caching is happening at the OS/FS level, not in Ruby > or Rails. > > LarryLarry, In my app,the memory is freed when i stop the server.Can you tell how can i freed the used memory after the execution of the query and results are shown in browser -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.