unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Roberto Cordoba del Moral <roberto.chingon@hotmail.com>
To: Eric Wong <e@80x24.org>
Cc: "unicorn-public@bogomips.org" <unicorn-public@bogomips.org>
Subject: RE: Issue with Unicorn: Big latency when getting a request
Date: Fri, 14 Nov 2014 10:32:11 +0100	[thread overview]
Message-ID: <DUB126-W466F54DFDA0FC42E8AB27BF88C0@phx.gbl> (raw)
In-Reply-To: <DUB126-W597224BC19E3684FA2CDC0F88C0@phx.gbl>

Hi Eric,
 as you don´t like web. I don´t know if you read my latest updates. Please, find them attached. I don´t know if they could be helpful tracks.
UPDATE: I don´t know why it seems to be related to cache or cookies. When I delete browsing history with cache and cookies in my browser and I load the site the issue doesn´t happen anymore. After that, if I just refresh the page, the issue happens.
Thanks,Roberto.

From: roberto.chingon@hotmail.com
To: e@80x24.org
CC: unicorn-public@bogomips.org
Subject: RE: Issue with Unicorn: Big latency when getting a request
Date: Fri, 14 Nov 2014 10:09:13 +0100




Hi Eric,
   I´m not pretty sure how to crank up the verbosity of nginx although I think I got it, because when I restart Nginx I get next logs:
2014/11/14 10:00:10 [notice] 39156#0: using the "kqueue" event method2014/11/14 10:00:10 [warn] 39156#0: 1024 worker_connections exceed open file resource limit: 2562014/11/14 10:00:10 [notice] 39156#0: nginx/1.6.02014/11/14 10:00:10 [notice] 39156#0: built by clang 5.1 (clang-503.0.40) (based on LLVM 3.4svn)2014/11/14 10:00:10 [notice] 39156#0: OS: Darwin 13.4.02014/11/14 10:00:10 [notice] 39156#0: hw.ncpu: 42014/11/14 10:00:10 [notice] 39156#0: net.inet.tcp.sendspace: 1310722014/11/14 10:00:10 [notice] 39156#0: kern.ipc.somaxconn: 1282014/11/14 10:00:10 [notice] 39156#0: getrlimit(RLIMIT_NOFILE): 256:92233720368547758072014/11/14 10:00:10 [notice] 39157#0: start worker processes2014/11/14 10:00:10 [notice] 39157#0: start worker process 39158
Besides that, I got nothing else in this log when I load my website.
I think I have just one worker. Please find my nginx.conf file:

#user  nobody;worker_processes  1;
#error_log  logs/error.log;#error_log  logs/error.log  notice;#error_log  logs/error.log  info;error_log   logs/error.log debug;
#pid        logs/nginx.pid;

events {    worker_connections  1024;





















}
http {    include       mime.types;    default_type  application/octet-stream;
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '    #                  '$status $body_bytes_sent "$http_referer" '    #                  '"$http_user_agent" "$http_x_forwarded_for"';
   # access_log  logs/access.log  main;
    sendfile        on;    #tcp_nopush     on;
    #keepalive_timeout  0;    keepalive_timeout  65;
    #gzip  on;
    server {        listen       80;        server_name  localhost;
        #charset koi8-r;        access_log  logs/host.access.log;        rewrite_log on;        location / {            root   /Users/Rober/Projects/yanpy/dev/yanpy/app;            index  index.html index.htm;        }
        #error_page  404              /404.html;
        # redirect server error pages to the static page /50x.html        #        error_page   500 502 503 504  /50x.html;










































        location = /50x.html {            root   html;        }
    }




















}
Regarding your comment: Again, please do not send HTML or top-post. We adhere to old-fashioned mailing list posting conventions here.
I don´t know what you mean. I´m answering you from my outlook web mail account.
Thanks, Roberto.


> Date: Fri, 14 Nov 2014 07:19:22 +0000
> From: e@80x24.org
> To: roberto.chingon@hotmail.com
> CC: unicorn-public@bogomips.org
> Subject: Re: Issue with Unicorn: Big latency when getting a request
> 
> Roberto Cordoba del Moral <roberto.chingon@hotmail.com> wrote:
> > Hi Eric,
> >   nothing in my Nginx error.log.
> > If I point my browser directly to my endpoint by localhost:8080/getTranslationLanguages I get the results in json format in my browser inmediately (with no latencies). This is working fine.
> > Thanks for your support.Roberto.
> 
> So the issue is with nginx communicating with unicorn, and not unicorn
> itself.  Can you crank up the verbosity of nginx logging and/or strace
> an nginx worker to see what's going on?
> 
> (only configure nginx to use one worker to guarantee you're stracing
> right one).
> 
> 
> Again, please do not send HTML or top-post.  We adhere to old-fashioned
> mailing list posting conventions here.  Thanks.
 		 	   		   		 	   		  

  reply	other threads:[~2014-11-14  9:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12 19:46 Issue with Unicorn: Big latency when getting a request Roberto Cordoba del Moral
2014-11-13  7:12 ` Roberto Cordoba del Moral
2014-11-13 21:03   ` Eric Wong
2014-11-14  6:46     ` Roberto Cordoba del Moral
2014-11-14  7:19       ` Eric Wong
2014-11-14  9:09         ` Roberto Cordoba del Moral
2014-11-14  9:32           ` Roberto Cordoba del Moral [this message]
2014-11-14 10:02             ` Eric Wong
2014-11-14 10:12               ` Roberto Cordoba del Moral
2014-11-14 10:15                 ` Roberto Cordoba del Moral
2014-11-14 10:28                   ` Eric Wong
2014-11-14 10:51                     ` Roberto Cordoba del Moral
2014-11-14 11:03                       ` Eric Wong
2014-11-14 11:15                         ` Roberto Cordoba del Moral
2014-11-14 15:01                         ` Roberto Cordoba del Moral
2014-11-14 18:34                           ` Eric Wong
2014-11-14 22:36                             ` Roberto Cordoba del Moral

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DUB126-W466F54DFDA0FC42E8AB27BF88C0@phx.gbl \
    --to=roberto.chingon@hotmail.com \
    --cc=e@80x24.org \
    --cc=unicorn-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).