unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / Atom feed
* unicorn takes 1.4G memory per worker
@ 2018-02-10  7:12 cyan eccentricyan
  2018-02-10 13:52 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: cyan eccentricyan @ 2018-02-10  7:12 UTC (permalink / raw)
  To: unicorn-public

github . com/unicorn-engine/unicorn/issues/941

after deploy or restart unicorn, it doesnt resolve the big memory problem
i want to know what make unicorn memory size and how to make staging
unicorn size to 230M not 1.4G

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unicorn takes 1.4G memory per worker
  2018-02-10  7:12 unicorn takes 1.4G memory per worker cyan eccentricyan
@ 2018-02-10 13:52 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2018-02-10 13:52 UTC (permalink / raw)
  To: cyan eccentricyan; +Cc: unicorn-public

cyan eccentricyan <eccentricyan@gmail.com> wrote:
> github . com/unicorn-engine/unicorn/issues/941
> 
> after deploy or restart unicorn, it doesnt resolve the big memory problem
> i want to know what make unicorn memory size and how to make staging
> unicorn size to 230M not 1.4G

You're going to have to analyze your app and all is dependencies
to figure this out; but it's generic Ruby knowledge to fix and
the problem is all over the place...

I get angry as hell when it comes to memory usage but there's
not a lot I can do besides rant(*) and try to fix some things
which come along:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/438693
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/438700

There's more Ruby itself can do (some I intend to work on later
this year); but nothing is going to save you if the apps do wacky
things like load hundreds of thousands of rows from a DB into
memory or try to process giant files all at once.

A lot of of it is mentality: It starts like things like turning
off HTML in your mail client (which roughly triples the size of
mail) and forcing yourself to test and develop against old
hardware on slow connections.


(*) Even 230M is too much IMHO:
https://bogomips.org/unicorn-public/20161212021000.GA15226@untitled/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-10  7:12 unicorn takes 1.4G memory per worker cyan eccentricyan
2018-02-10 13:52 ` Eric Wong

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox