You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI
I am trying to use jmx_exporter with jruby and it is trying to bind same port multiple time.
i have already seen this issue 1859 but my jruby version is already advance of 1.715
^C^Croot@52d9cca8b32d:/app# bundle exec rails s
2017-06-07 13:08:46.110:INFO:ipjsoejs.Server:jetty-8.y.z-SNAPSHOT
2017-06-07 13:08:46.160:INFO:ipjsoejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9999
2017-06-07 13:08:52.022:INFO:ipjsoejs.Server:jetty-8.y.z-SNAPSHOT
2017-06-07 13:08:52.065:WARN:ipjsoejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:9999: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at io.prometheus.jmx.shaded.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.Server.doStart(Server.java:288)
at io.prometheus.jmx.shaded.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
2017-06-07 13:08:52.067:WARN:ipjsoejuc.AbstractLifeCycle:FAILED io.prometheus.jmx.shaded.org.eclipse.jetty.server.Server@3fb6a447: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at io.prometheus.jmx.shaded.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at io.prometheus.jmx.shaded.org.eclipse.jetty.server.Server.doStart(Server.java:288)
at io.prometheus.jmx.shaded.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
The text was updated successfully, but these errors were encountered:
because you use bundle exec ... its not JRuby's fault, bundler is spawning 2 JVM (JRuby) processes.
you should use binstubs or you could try jruby -rbundler/setup -S rails s as an alternative.
Environment
Provide at least:
jruby -v
) and command line (flags, JRUBY_OPTS, etc)uname -a
)Other relevant info you may wish to add:
HI
I am trying to use jmx_exporter with jruby and it is trying to bind same port multiple time.
i have already seen this issue 1859 but my jruby version is already advance of 1.715
The text was updated successfully, but these errors were encountered: