https://bz.apache.org/bugzilla/show_bug.cgi?id=68858

Konstantin Kolinko <knst.koli...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Konstantin Kolinko <knst.koli...@gmail.com> ---
In your stack trace:

Caused by: java.net.BindException: Address already in use
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Net.java:461)
                at sun.nio.ch.Net.bind(Net.java:453)
                at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:222)
                at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:85)
                at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:141)
                at
sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
                at
sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
                at
com.sun.net.httpserver.HttpServer.create(HttpServer.java:130)
                at
io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer$Builder.build(HTTPServer.java:365)
                at
io.prometheus.jmx.common.http.HTTPServerFactory.createHTTPServer(HTTPServerFactory.java:123)
                at io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:60)
                ... 6 more

There is no Tomcat code involved here.

Some thing "io.prometheus.jmx.JavaAgent" starts its own web server (or
backdoor?) and fails due to one already have been started.

In the following lines where does that "-javaagent" argument come from?:

FATAL ERROR in native method: processing of -javaagent failed
/opt/tomcat/bin/catalina.sh: line 659: 2368874 Aborted                 (core
dumped) "/usr/lib/jvm/jre-1.8.0-openjdk/bin/java" -Xms2048M -Xmx2048M
-Djava.net.preferIPv4Stack=true -Djava.security.egd=file:/dev/./urandom
-javaagent:/opt/jmx_exporter/jmx_exporter-0.20.0.jar=9404:/opt/jmx_exporter/jmx_exporter.yaml
-


If you really need the javaagent when staring Tomcat, create a setenv.sh file
and put the value into CATALINA_OPTS environment variable instead of JAVA_OPTS
one.

(Read RUNNING.txt for more details about setenv.sh file. Environment variables
recognized by Tomcat startup scripts are documented in a comment at the top of
the catalina.sh file.)


I am resolving this issue as INVALID.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to