metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

+600mb memory per thread after add less-rails to Gemfile!

alexesDev opened this issue · comments

Rails 4.1.1
less-rails 2.7.0
ruby 2.1.5p273

I dont care, just know...
1 year...
10 threads...
600x10 6gb... rage 🔨 I hate old projects (that I support)

commented

Try to investigate problem more detail before post such baseless issues.

@alexesDev we would like to solve your issue, but we need more informations. Do you have steps how to reproduce this? Feel free to create custom repository on github with this problem.

And as @maxd wrote, take a breath or two before you're posting emotional issues.

rails new less_test && cd less_test && echo "gem 'less-rails'\ngem 'therubyracer'" >> Gemfile && bundle && rails s

After this, in other terminal...

ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep ruby

I have...

693.26 Mb /home/alexes/.rvm/rubies/ruby-2.1.5/bin/ruby bin/rails s 

bundle list

Gems included by the bundle:
  * actionmailer (4.2.0)
  * actionpack (4.2.0)
  * actionview (4.2.0)
  * activejob (4.2.0)
  * activemodel (4.2.0)
  * activerecord (4.2.0)
  * activesupport (4.2.0)
  * arel (6.0.0)
  * binding_of_caller (0.7.2)
  * builder (3.2.2)
  * bundler (1.7.12)
  * byebug (4.0.5)
  * coffee-rails (4.1.0)
  * coffee-script (2.4.1)
  * coffee-script-source (1.9.1.1)
  * columnize (0.9.0)
  * commonjs (0.2.7)
  * debug_inspector (0.0.2)
  * erubis (2.7.0)
  * execjs (2.5.2)
  * globalid (0.3.5)
  * i18n (0.7.0)
  * jbuilder (2.2.13)
  * jquery-rails (4.0.3)
  * json (1.8.2)
  * less (2.6.0)
  * less-rails (2.7.0)
  * libv8 (3.16.14.7)
  * loofah (2.0.1)
  * mail (2.6.3)
  * mime-types (2.4.3)
  * mini_portile (0.6.2)
  * minitest (5.6.0)
  * multi_json (1.11.0)
  * nokogiri (1.6.6.2)
  * rack (1.6.0)
  * rack-test (0.6.3)
  * rails (4.2.0)
  * rails-deprecated_sanitizer (1.0.3)
  * rails-dom-testing (1.0.6)
  * rails-html-sanitizer (1.0.2)
  * railties (4.2.0)
  * rake (10.4.2)
  * rdoc (4.2.0)
  * ref (1.0.5)
  * sass (3.4.13)
  * sass-rails (5.0.3)
  * sdoc (0.4.1)
  * spring (1.3.4)
  * sprockets (3.0.1)
  * sprockets-rails (2.2.4)
  * sqlite3 (1.3.10)
  * therubyracer (0.12.2)
  * thor (0.19.1)
  * thread_safe (0.3.5)
  * tilt (1.4.1)
  * turbolinks (2.5.3)
  * tzinfo (1.2.2)
  * uglifier (2.7.1)
  * web-console (2.1.2)

uname -a (my pc)

Linux pc 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux

cat /etc/redhat-release (server, same problem)

CentOS Linux release 7.0.1406 (Core)

Wow, very interesting. Perhaps this is an issue with therubyracer. Can you confirm by dropping less-rails from the Gemfile?

I know about therubyracer, but I do not have time to explore less-rails to know exactly how it uses therubyracer. In my project I just remove less-rails.

I know about therubyracer, but I do not have time to explore less-rails to know exactly how it uses therubyracer.

Nor did I ask you to. If you just removed "therubyracer" from your Gemfile and started Rails again - you would have the answer to your question and a more constructive outlet vs that passive aggressive response which no one really cares for.

First comment written in a passive aggressive manner, but other... just normal answers with all an information that I can now provide.

I understand and appreciate the reply. Cheers.

If you just removed "therubyracer" from your Gemfile and started Rails again

[WARNING] Please install gem 'therubyracer' to use Less.

and abort.

Damn. Maybe, doing this and checking the process.

$ irb
> require 'therubyracer`
irb
require 'therubyracer'
79.85 Mb irb

Perhaps need to add a temp note to less-rails readme.