• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF10: Address already in use: JVM_Bind

New Here ,
Aug 22, 2013 Aug 22, 2013

Copy link to clipboard

Copied

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/ 

Views

7.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 22, 2013 Aug 22, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 26, 2013 Aug 26, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 27, 2013 Dec 27, 2013

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 27, 2013 Dec 27, 2013

Copy link to clipboard

Copied

Will open a call with CFInstall next week. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 27, 2013 Dec 27, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 31, 2013 Dec 31, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

Hi spellbmw,

Did you find out something to sove this problem ?

thanks

Stephane

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2015 Aug 19, 2015

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2016 Feb 02, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

LATEST

I know this post is 7 years old, but I came across this same problem today: someone running CF10, where it would not start, and the ports reported in the log as "in use" were very clearly NOT in use. And it was the AJP and http ports, so while CF "started", neither the admin nor any web site would work.

 

With no choice, the box (Windows) was rebooted--and lo and behold, now CF started, with no errors, and the admin and sites now worked. FWIW, there were in fact Windows updates "pending a restart". Perhaps something was in an unexpected state.

 

Just sharing this if anyone else ever hits the same situation.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation