tomcat - apache requests very slow after using ProxyPass -


so i'm running tomcat(8.0) behind apache(2.4) on windows server 2012 , using proxypass pass through traffic. works fine, whenever nothing 60 seconds, , hit server again, 8-20 second delay, apache creating new process handle request.

my configuration pretty default comes apache haus, addition of proxy stuff, believe culprit:

proxypass         /static/ ! proxypass         /  http://localhost:8088/ proxypassreverse  /  http://localhost:8088/ 

i added

/static/ !

exemption see if same problem happen on static files being served, , apparently does. further narrowed down commenting out proxypass stuff, , verifying static file loads fast. uncommented proxypass stuff, , requested static file, , again returned fast. once hit url takes me through proxy, wait minute, hit again, goes horribly wrong. below network monitor output 2 requests, first of static file being requested second time after 1 minute delay before proxy use, other after proxy had been used twice delay between proxy requests.

3501   4:17:48 pm 10/21/2015   104.2752287   httpd.exe   http   http:request, /static/index.html  3502   4:17:48 pm 10/21/2015   104.2760830   httpd.exe   http   http:response, http/1.1, status: not modified, url: /static/index.html  

after (8 seconds return):

24232   4:26:13 pm 10/21/2015   608.7355960   httpd.exe   http   http:request, /static/index.html  24775   4:26:20 pm 10/21/2015   616.0896861   httpd.exe   http   http:response, http/1.1, status: not modified, url: /static/index.html  

i'm noticing more of synretransmit line after broken, not sure if it's relevant:

24226   4:26:13 pm 10/21/2015   608.7286692   httpd.exe   tcp   tcp:[synretransmit #24107]flags=......s., srcport=61726, dstport=http(80), payloadlen=0, seq=1157444168, ack=0, win=8192 ( negotiating scale factor 0x2 ) = 8192 

but every call, static file or on proxy, if it's been on 60 seconds since last call, take forever response!

any ideas?

update: running older version of apache, 2.4.12, updating latest, 2.4.17, didn't fix it. i've tried sorts of keepalive settings, nothing seems help. on forum directed @ apache dev thread has proposed patch sounds similar issue, guess i'll wait apache update:

http://marc.info/?l=apache-httpd-dev&m=144543644225945&w=2

try explicitly tuning proxyreceivebuffersize:

# increase throughput (bytes) proxyreceivebuffersize 2048 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -