eclipse-openj9 / openj9-docs

Source repository for the Eclipse OpenJ9 user documentation, which should be viewed [online]https://www.eclipse.org/openj9/docs/
Other
51 stars 73 forks source link

AttachAPI Jcmd retry attaching in case of SocketException on Windows platform, 3 time by default or a value specified via a system property com.ibm.tools.attach.retry #1313

Closed JasonFengJ9 closed 2 months ago

JasonFengJ9 commented 6 months ago

Issue or pull request number:

Overview: AttachAPI Jcmd retry attaching in case of SocketException on Windows platform. The retry time is 3 by default or a value specified via a system property com.ibm.tools.attach.retry.

Release target: Eclipse OpenJ9 0.46.0

Applies to the following JDK versions: 8 and later

Applies to the following platforms: Windows

For new command line options:

JasonFengJ9 commented 6 months ago

FYI @pshipton

Sreekala-Gopakumar commented 4 months ago

@JasonFengJ9 - What was the need for this new option?

What was happening in the absence of this new system property?

Thanks!

JasonFengJ9 commented 4 months ago

What was the need for this new option?

This is to improve Jcmd attaching in case of SocketException on Windows platform.

What was happening in the absence of this new system property?

Jcmd fails with SocketException.

More details at https://github.com/eclipse-openj9/openj9/issues/19165#issuecomment-2018667251