jquery - Long AJAX request in Rails returns `ERR_EMPTY_RESPONSE` on Nginx and Passenger -


i have rails 3 application kicks off ajax request html partial expensive, calculated values. speeds actual page load , allows expensive partial load happen after main page has loaded.

this works fine under situations, taking anywhere 5 seconds 45 seconds complete. ajax request gets completed , partial gets plopped page expected.

however, on of larger accounts have more data takes upwards of 70 or 80 seconds complete.

in development no problem. takes while, when finishes, partial gets loaded onto page.

in staging, cloned version of production minimal infrastructure (no haproxy load balancer , single, shared server both web , db), works fine.

in production request not complete , instead returns err_empty_response. however, smaller accounts have less data, work fine. it's these larger accounts error returned.

i have tried nailing down issue can't seem working.

some things have tried without success:

  • increase keepalive_timeout in nginx config.
  • scale server in case memory limit.

any suggestions welcomed.

thanks in advance.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -