New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to retrieve actual processId [JDBC225] #274
Comments
Modified by: @mrotteveelFix Version: Jaybird 2.3 [ 10440 ] |
Modified by: @mrotteveel |
Modified by: @mrotteveelassignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ] |
Modified by: @mrotteveel |
Requires Java 10 minimum to retrieve process id, because that version introduced |
A better way might actually be to use |
Submitted by: @mrotteveel
Is duplicated by JDBC334
Is related to JDBC118
Currently Jaybird uses a System property set by the user to determine the processid to send to the server. Extend that to use the following mechanisms (in order):
1) sun.java.launcher.pid, (only Available on Oracle/Sun Java)
2) ManagementFactory.getRuntimeMXBean().getName() (should provide the PID on most or all platforms)
3) If all else fails: fall back to the property
The text was updated successfully, but these errors were encountered: