Skip to content
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

ProcessBuilder memory leak and memoy lock issues #80

Open
SivaBalaSubramanian-Vetrivel opened this issue Dec 1, 2021 · 0 comments
Open

Comments

@SivaBalaSubramanian-Vetrivel

Hi All

The code below uses PowerBuilder to execute  power shell. Just want to confirm the chances of memory leak and memory lock.
As per this link https://bugs.openjdk.java.net/browse/JDK-8054841 memory leak got fixed, however do we have any details on memory lock.
I would appreciate if some one share  any workaround, fix

if (OSDetector.isWindows()) {
pb = new ProcessBuilder("cmd.exe", "/c", "chcp", codePage, ">", "NUL", "&", powerShellExecutablePath,
"-ExecutionPolicy", "Bypass", "-NoExit", "-NoProfile", "-Command", "-");
} else {
pb = new ProcessBuilder(powerShellExecutablePath, "-nologo", "-noexit", "-Command", "-");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant