2 Replies Latest reply on Feb 28, 2016 3:58 PM by fuinhaazul

    Wildfly 8.2 and Java web start, wierd problem

    fuinhaazul

      Hi there.

       

      I´m facing some strange problem with Wildfly 8.2 and java web start. I have this enviroment running on a VPS server with not so good latency numbers.

       

      When i start the jnlp file, the apache server that is in front of wilfly crashes with 503 erros. 

       

      At the begging I thought it was apache server problem, but on the apache logs, appear that wildfly stopped to answer the apache calls e then the apache returned 503.

       

      Digging on the net i added this parameters on standalone.xml:

       

      <worker name="default" io-threads="100" task-max-threads="100"/>

       

      This appeared to solve the problem, but on the 3º try, the problem happend again (before the parameters the problem happen on first attempt).

       

      Wildfly logs are clean, and this only happen with java web start, the web app runs ok

       

      Any clues? 

       

      Thanks!

        • 1. Re: Wildfly 8.2 and Java web start, wierd problem
          fuinhaazul

          Im using jmeter for tests and trying to download a single resource (jar).

           

          This is the apache error_log output:

           

           

          [Sun Feb 28 16:51:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:51:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:52:04 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:52:04 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:51 2016] [error] (105)No buffer space available: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed

          [Sun Feb 28 16:54:51 2016] [error] ap_proxy_connect_backend disabling worker for (localhost)

          [Sun Feb 28 16:54:51 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:51 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:51 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          [Sun Feb 28 16:54:52 2016] [error] proxy: HTTP: disabled connection for (localhost)

          • 2. Re: Wildfly 8.2 and Java web start, wierd problem
            fuinhaazul

            DUmping the requests and the responses, seems that apache is rejecting 304 responses from wildfly and transforming then in 503 for the client.   Can be it?

             

            FIRST REQUEST:

            ----------------------------REQUEST---------------------------

                           URI=/xxxpdvweb/lib/liquibase.jar

            characterEncoding=null

                 contentLength=-1

                   contentType=null

                        header=Connection=Keep-Alive

                        header=X-Forwarded-For=189.114.143.103

                        header=X-Forwarded-Server=_wildcard_.xxx.com.br

                        header=User-Agent=Apache-HttpClient/4.2.6 (java 1.5)

                        header=Host=demo.xxx.com.br

                        header=X-Forwarded-Host=demo.xxx.com.br

                        locale=[]

                        method=GET

                      protocol=HTTP/1.1

                   queryString=

                    remoteAddr=/127.0.0.1:21991

                    remoteHost=localhost

                        scheme=http

                          host=demo.xxx.com.br

                    serverPort=8080

            --------------------------RESPONSE--------------------------

                 contentLength=2183684

                   contentType=application/octet-stream

                        header=Connection=keep-alive

                        header=Last-Modified=Fri, 26 Feb 2016 01:07:10 GMT

                        header=X-Powered-By=Undertow/1

                        header=Server=WildFly/8

                        header=Content-Type=application/octet-stream

                        header=Content-Length=2183684

                        header=Date=Sun, 28 Feb 2016 20:36:52 GMT

                        status=200

             


            SECOND REQUEST:

            ----------------------------REQUEST---------------------------

                           URI=/xxxpdvweb/lib/liquibase.jar

            characterEncoding=null

                 contentLength=-1

                   contentType=null

                        header=Connection=Keep-Alive

                        header=X-Forwarded-For=189.114.143.103

                        header=X-Forwarded-Server=_wildcard_.xxx.com.br

                        header=User-Agent=Apache-HttpClient/4.2.6 (java 1.5)

                        header=If-Modified-Since=Fri, 26 Feb 2016 01:07:10 GMT

                        header=Host=demo.xxx.com.br

                        header=X-Forwarded-Host=demo.xxx.com.br

                        locale=[]

                        method=GET

                      protocol=HTTP/1.1

                   queryString=

                    remoteAddr=localhost/127.0.0.1:21989

                    remoteHost=localhost

                        scheme=http

                          host=demo.xxx.com.br

                    serverPort=8080

            --------------------------RESPONSE--------------------------

                 contentLength=0

                   contentType=null

                        header=Connection=keep-alive

                        header=X-Powered-By=Undertow/1

                        header=Server=WildFly/8

                        header=Content-Length=0

                        header=Date=Sun, 28 Feb 2016 20:37:01 GMT

                        status=304