JDWP Transport Dt_socket failed to initialize, Transport_init (510) Exception resolution

Source: Internet
Author: User


Error:transport error 202:bind failed:address already in use
ERROR:JDWP Transport Dt_socket failed to initialize, Transport_init (510)
JDWP Exit Error Agent_error_transport_init (197): No transports initialized [... /.. /.. /SRC/SHARE/BACK/DEBUGINIT.C:750]

FATAL ERROR in native method:jdwp No transports initialized, Jvmtierror=agent_error_transport_init (197)


Problem Reason:
This failure is a flaw in the JVM's remote debug that occurs only when the remote debug port is turned on, because the JVM crashes because it receives packets that do not conform to the JDWP protocol.
To verify that the vulnerability exists in the system, you can check the Java startup parameters for the following related configuration:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
or-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787.
In the case of a related configuration, the vulnerability exists when Java starts the remote debugging port, where the JVM virtual machine, as the service provider for debugging, listens on a connection through Port 8787, and the debugger interacts with the virtual machine through the connection.


Solution:
Adjust "java_opts=" in Java Environment configuration variables

My adjustment is: Export java_opts= '-dfile.encoding=utf-8-djava.awt.headless=true-xms2048m-xmx2048m ', can be solved.

Vim bin/catalina.sh



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.