<h2>Mid server down due to the error 'Problem creating JMX JMXMP connector Address already in use: JVM_Bind'</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-position: inside;"><li>The Mid server is down and the mid server agent logs contain the below error during the mid server startup.</li></ul> <pre style="padding-left: 80px;">MIDServer SEVERE *** ERROR *** Problem creating JMX JMXMP connector<br />java.net.BindException: Address already in use: JVM_Bind<br /><br /></pre></section></div><div ><h3 >Release</h3><section><ul style="list-style-position: inside;"><li>Madrid P*</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-position: inside;"><li>When two or more Mid servers running on the same host, one of the mid servers is restarted, mid server during startup checks for any JMX requests even when it's not configured, when it fails to set it up the error is thrown, the MID still continues with startup process and the mid server would be up and running and the Status in the instance is set to UP if there do not exist any other issues related to the mid server.</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-position: inside;"><li>This error is subtle and this issue is addressed through the PRB1323940 if you do not use JMX server you can set the <em><strong>mid.jmx.enabled</strong></em> MID Server property to false to mitigate the error.<br /> Refer <a title="Add a MID Server Parameter" href="https://docs.servicenow.com/csh?topicname=mid-server-parameters.html&version=latest" rel="nofollow">Add a MID Server Parameter</a> to configure the mid server parameter.</li><li>Review the mid server agent logs and wrapper logs for other errors which might cause the mid server to be down.</li><li>In one of the scenarios, I found the below error in the wrapper logs.</li></ul> <pre style="padding-left: 80px;">2020/02/25 15:53:19 | - Required proxy credentials not available for BASIC <any realm>@patchproxy.xyz.com:3128<br />2020/02/25 15:53:19 | - Preemptive authentication requested but no default proxy credentials available</pre> <ul style="list-style-position: inside;"><li>Observed the proxy was configured on the mid server and mid.proxy.username mid server parameter did not contain any value in it.</li><li>Add the proxy username and proxy password if the proxy server uses credentials for authentication or remove the parameter.</li><li>Restart the mid server service, the mid server would be up and running.</li></ul></section></div></article></div>