11 Replies Latest reply on Feb 2, 2016 11:24 PM by andrewlorien

    CF10: Address already in use: JVM_Bind

    Jurriaan Balleur

      After a fresh install of CF 10 multiserver I have made 6 instances.

       

       

      After a reboot of the server 4 of the instances have an exception:

       

      "Address already in use: JVM_Bind"

      java.net.BindException: Address already in use: JVM_Bind

          at java.net.DualStackPlainSocketImpl.bind0(Native Method)

          at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)

          at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)

          at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)

          at java.net.ServerSocket.bind(ServerSocket.java:376)

          at java.net.ServerSocket.<init>(ServerSocket.java:237)

          at java.net.ServerSocket.<init>(ServerSocket.java:128)

          at coldfusion.server.jrun4.metrics.CfstatServer.run(CfstatServer.java:71)

       

      All the features and applications seem to work. But I'm not convinced.

       

       

      Can someone please help me?

       

      My server details:

      System Information 

      Server Details 

      Server Product  ColdFusion 

      Version  ColdFusion 10,283922 

      Tomcat Version  7.0.23.0 

      Edition  Enterprise   

      Operating System  Windows Server 2008 R2   

      OS Version  6.1   

      Adobe Driver Version  4.1 (Build 0001)   

      JVM Details 

      Java Version  1.7.0_15   

      Java Vendor  Oracle Corporation   

      Java Vendor URL  http://java.oracle.com/ 

        • 1. Re: CF10: Address already in use: JVM_Bind
          Anit_Kumar Adobe Employee

          Hello Jurriaan,

           

          The "Address already in use: JVM_Bind" error signifies that, ColdFusion’s internal port are being used by some other process.

           

          Can you check the Server shutdown port in server.xml. <Server port="XXXX" shutdown="SHUTDOWN">, where XXXX is the port number . If that port is already in use by the other instance, please replace XXXX by any other port no it use.

           

          You also need to check the port numbers for <Connector port="XXXX" protocol="AJP/1.3" redirectPort="XXXX" tomcatAuthentication="false" />

           

          Please take a backup of your existing server.xml(s) before making the changes.

           

          After that, try to restart the server and check if you are still facing the issue.

           

           

          Note:- To check the list of ports in use, please Launch Command prompt as Administrator and type the command netstat –ano.

           

          Regards,

          Anit Kumar

          • 2. Re: CF10: Address already in use: JVM_Bind
            Jurriaan Balleur Level 1

            Due to a few others bugs in CF10 that where not to be fixed by Adobe we downgraded to CF9.

             

            In just 2 hours of installation all our CF10 troubles where gone. CF9 works PERFECTLY for us.

             

            Jurriaan Balleur

            • 3. Re: CF10: Address already in use: JVM_Bind
              spellbmw Level 1

              Having the same problem and can find no port conflicts; still the same error even when I change the ports to something else not in use. 

               

              "Address already in use: JVM_Bind"

              java.net.BindException: Address already in use: JVM_Bind

              at java.net.DualStackPlainSocketImpl.bind0(Native Method)

              at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)

              at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)

              at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)

              at java.net.ServerSocket.bind(ServerSocket.java:376)

              at java.net.ServerSocket.<init>(ServerSocket.java:237)

              at java.net.ServerSocket.<init>(ServerSocket.java:128)

              at coldfusion.server.jrun4.metrics.CfstatServer.run(CfstatServer.java:71)

              • 4. Re: CF10: Address already in use: JVM_Bind
                spellbmw Level 1

                Will open a call with CFInstall next week. 

                • 5. Re: CF10: Address already in use: JVM_Bind
                  Anit_Kumar Adobe Employee

                  You can try Launching Command prompt as Administrator. Type the command netstat –ano and press enter. Please append the output to a text file and check the port usage.

                   

                  Regards,

                  Anit Kumar

                  • 6. Re: CF10: Address already in use: JVM_Bind
                    spellbmw Level 1

                    I did that prior to posting in the forum; have dealt with port conflicts in the past, so was used to debugging that way.  Unfortunately, there are no port conflicts:  none of the ports in use by the CF instance are being used elsewhere on the system as far as the output in the text file shows.  I also tried changing the ports (Shutdown, Connector, Redirect) to other ports, but the results were the same error message.  I will work on it again this afternoon, and let you know the results.

                     

                    Scott

                    • 7. Re: CF10: Address already in use: JVM_Bind
                      Stephane Chauvin

                      Hi spellbmw,

                       

                      Did you find out something to sove this problem ?

                       

                      thanks

                      Stephane

                      • 8. Re: CF10: Address already in use: JVM_Bind
                        Stephane Chauvin Level 1

                        Here is my config :

                         

                        instance #1 (cfusion)

                         

                        <Server port="8007" shutdown="SHUTDOWN">

                        <Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" />

                         

                          

                        instance #2

                         

                        <Server port="8008" shutdown="SHUTDOWN">

                        <Connector port="8013" protocol="AJP/1.3" redirectPort="8446" tomcatAuthentication="false">

                         

                         

                        So I stop both instances, then start instance #1 :

                         

                        none of the instance #2 ports (8008, 8013, 8446) appears in netstat -ano...

                         

                        Then I start the instance #2 :

                         

                        I immediately get the "Address already in use: JVM_Bind" entry in exception.log of instance #2...

                         

                        Regards,

                        Stephane

                        • 9. Re: CF10: Address already in use: JVM_Bind
                          spellbmw Level 1

                          Hi Stephane,

                          No, I did not find a resolution to this.  I've been working with Adobe CF support on and off for four months now and am not able to get CF10 to cluster with session replication on Windows 2012; still working on it. 

                           

                          Scott

                          • 10. Re: CF10: Address already in use: JVM_Bind
                            rahiech

                            Hi,

                             

                            I can see the same issue in our Linux (Redhat) CF10 cluster. I tried to change the different ports as suggested but it doesn't change anything.

                             

                            Do you have more information concerning this issue?

                             

                            Thanks.

                             

                            Christophe

                            • 11. Re: CF10: Address already in use: JVM_Bind
                              andrewlorien Level 1

                              I had this problem, and couldn't find any duplicates checking the ports with

                              sudo grep -i port /opt/coldfusion10/*/runtime/conf/server.xml

                               

                              Then i realised that the Jenkins server running on this machine was using port 8009

                              sudo netstat -lptu|grep 80

                              sudo netstat -lptu|grep 85