Ruby - free up memory used by required gems? -


is there way free memory used required gems? rails app grows in memory usage , use gems when need them , after free them up, if possible.

thanks!

the whole purpose of memory managed programming language (ruby) avoid developers having concern such issues. if memory become sticking point, you'll need profile memory using following tools

ruby/ruby on rails memory leak detection

although control on memory limited ensuring memory leaks avoided , overall architecture inline best practices. example imagemagick takes excessive memory, rather having images being converted rails mongrels/passengers, restricting conversion dedicated ruby services, avoid large memory footprint.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -