-
1. Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 16, 2015 1:16 AM (in response to andreas_w)No one has any idea? Or at least an hint/idea how I can analyse this?
-
2. Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 19, 2015 8:16 AM (in response to andreas_w)We found out that normal HTML-pages are loaded without any problems but for example java-scripts are loaded slowly. It seems that it has something todo with the file size. Small JavaScripts (for testing with 2 lines) are loaded without any problems. Others take almost a minute. We captured the network traffic. It seems that a lot of TCP-Connection-Alive packages are sent. When we open one javascript file in the browser it appears immediatly but the browser is still loading and showing "transfering data".
-
3. Re: Problem with Apache as Proxy for WildFly
ctomc Jan 19, 2015 9:19 AM (in response to andreas_w)Where are this javascript files? how are they served?
By default servlet?
-
4. Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 19, 2015 10:29 AM (in response to ctomc)I am not completly sure if I understand your question. The javascript files are loaded within our jsf-pages and lying in the filesystem. But we have the same problem when we try to load them directly.
e.g.
http://<application>/js/file.js
-
5. Re: Problem with Apache as Proxy for WildFly
pferraro Jan 21, 2015 2:22 PM (in response to andreas_w)Can you post your mod_proxy configuration? Also, have you made any changes to the default undertow subsystem configuration?
-
6. Re: Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 22, 2015 1:45 AM (in response to pferraro)The mod_proxy configuration looks like this:
ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow </Proxy> ProxyVia On
And in our default site we have these lines:
ProxyPass / http://127.0.0.1:9000/ ProxyPassReverse / http://127.0.0.1:9000/
In the undertow-subsystem we changed the http-listener and added the proxy-address-forwarding and the max-parameters.
<http-listener name="default" socket-binding="http" proxy-address-forwarding="true" max-parameters="10000" />
For testing we also tried nginx as proxy. Same problem.
-
7. Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 22, 2015 3:03 AM (in response to andreas_w)Seems that when we turn off the keepAlive in the apache2.conf the pages are loaded with normal speed.
-
8. Re: Re: Problem with Apache as Proxy for WildFly
ctomc Jan 22, 2015 7:46 AM (in response to andreas_w)does it help if you add tcp-keep-alive="true" to your http-listener and have keepAlive enabled also in apache
-
9. Re: Problem with Apache as Proxy for WildFly
andreas_w Jan 22, 2015 8:53 AM (in response to ctomc)No, it doesn't help.
-
10. Re: Problem with Apache as Proxy for WildFly
novak.zbynek Jul 15, 2015 7:18 AM (in response to andreas_w)Hi Andreas, did you resolved the problem?
We have similar/same issue on apache-proxy <-> wildfly-8.2.0
We resolved it with disabling Keep alive between apache and wildfly.
<Proxy *>
Order deny,allow
Allow from all
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Proxy>
But I think, it doesn't solve the original problem.
Did you find another solution?
-
11. Re: Problem with Apache as Proxy for WildFly
andreas_w Jul 15, 2015 9:18 AM (in response to novak.zbynek)Hi, in the meantime we switchted to WildFly9 and use Nginx as proxy because we had other problems with Apache as proxy too. Theses solved it for us and we were not looking for other solutions anymore.