Foren
No streaming files
Bent Majgaard, geändert vor 7 Jahren.
No streaming files
New Member Beiträge: 10 Beitrittsdatum: 28.08.08 Neueste Beiträge
I have a very strange thing; I run a setup with Nginx as proxy and a Liferay 6.2 GA6
It runs fine for some time 10+ hours - and then out of the blue it gets very slow and at some time I have to restart Tomcat/Liferay. Restarting Nginx doesnt help...
I saw in nginx error-log this:
2016/10/21 11:20:28 [error] 13866#0: *222384 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 165.225.68.61, server: 127.0.0.1, request: "GET /html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000 HTTP/1.1", upstream: "http://127.0.0.1:8080/html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000", host: "www.berendsen.se", referrer: "http://www.berendsen.se/skyddsklader"
I then tried local on the server to check what was responding:
>wget http://www.berendsen.se/skyddsklader
That gave me back some html. So Nginx is responding
>wget http://www.berendsen.se:8080/skyddsklader
Then directly to Tomcat port. That gave me back some html.
>wget http://www.berendsen.se:8080/html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000
Then trying to get file, and also directly to Tomcat port. No reponse....
I tried to stop all public traffic to Tomcat by stopping nginx and then try to wget file = same result; no file.
Im totally lost here - iv tried al kinds of things.
So I realy hope that some can help or point me in a direction.
BR/Bent
It runs fine for some time 10+ hours - and then out of the blue it gets very slow and at some time I have to restart Tomcat/Liferay. Restarting Nginx doesnt help...
I saw in nginx error-log this:
2016/10/21 11:20:28 [error] 13866#0: *222384 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 165.225.68.61, server: 127.0.0.1, request: "GET /html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000 HTTP/1.1", upstream: "http://127.0.0.1:8080/html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000", host: "www.berendsen.se", referrer: "http://www.berendsen.se/skyddsklader"
I then tried local on the server to check what was responding:
>wget http://www.berendsen.se/skyddsklader
That gave me back some html. So Nginx is responding
>wget http://www.berendsen.se:8080/skyddsklader
Then directly to Tomcat port. That gave me back some html.
>wget http://www.berendsen.se:8080/html/js/barebone.jsp?browserId=ie&themeId=berendsensweden_WAR_BerendsenSweden625theme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.barebone.files&languageId=en_US&b=6205&t=1476990611000
Then trying to get file, and also directly to Tomcat port. No reponse....
I tried to stop all public traffic to Tomcat by stopping nginx and then try to wget file = same result; no file.
Im totally lost here - iv tried al kinds of things.
So I realy hope that some can help or point me in a direction.
BR/Bent
David H Nebinger, geändert vor 7 Jahren.
RE: No streaming files
Liferay Legend Beiträge: 14918 Beitrittsdatum: 02.09.06 Neueste Beiträge
Check that you are using the latest versions of nginx and tomcat.
Bent Majgaard, geändert vor 7 Jahren.
RE: No streaming files
New Member Beiträge: 10 Beitrittsdatum: 28.08.08 Neueste BeiträgeDavid H Nebinger:
Check that you are using the latest versions of nginx and tomcat.
Hi David
Thanks for ur reply ;-)
Im using the Tomcat version(7.0.62) that came in the Liferay bundle and for Nginx i have 1.4.6 that is the package i get for my Ubuntu.
Do u think that the communication between Nginx and Tomcat is what is stopping tomcat to server content?
br/B
David H Nebinger, geändert vor 7 Jahren.
RE: No streaming files
Liferay Legend Beiträge: 14918 Beitrittsdatum: 02.09.06 Neueste Beiträge
You indicate that they are not communicating w/ each other, could be that there is some bug involved that is not completing the request in a timely manner or returning something that nginx wasn't expecting. Certainly worth going through the effort to eliminate those as possible culprits.