sstephenson / ruby-yui-compressor

A Ruby interface to YUI Compressor for minifying JavaScript and CSS assets.
217 stars 57 forks source link

yuicompressor-2.4.4.jar never quits #27

Closed oleander closed 10 years ago

oleander commented 11 years ago

12h after server restart ps aux | grep java returns this.

1000       463  0.0  0.9 1485060 24740 ?       Sl   20:58   0:02 java -jar /opt/www/myapp/shared/bundle/ruby/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8 --nomunge
1000       571  0.0  0.6 1485060 16440 ?       Sl   21:00   0:02 java -jar /opt/www/myapp/shared/bundle/ruby/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8 --nomunge
1000      2599  0.0  0.5 1485096 15128 ?       Sl   21:36   0:01 java -jar /opt/www/myapp/shared/bundle/ruby/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8 --nomunge
1000      2679  0.0  0.3 1485096 8188 ?        Sl   21:38   0:01 java -jar /opt/www/myapp/shared/bundle/ruby/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8 --nomunge
1000      2758  0.0  0.3 1485096 8504 ?        Sl   21:39   0:01 java -jar /opt/www/myapp/shared/bundle/ruby/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8 --nomunge

Approximately 24 later the amount of workers (?) doubles and keeps growing until the server runs out of memory.

Why is that?

My system:

stevecrozz commented 11 years ago

Can you provide some more information on how you're calling YUI::Compressor? Also, you should try again with the latest version of yui-compressor.

stevecrozz commented 10 years ago

I just don't have enough information to take action. Closing for now.