profesorfalken / jPowerShell

Simple Java API to interact with PowerShell console
Apache License 2.0
217 stars 84 forks source link

Program hangs while writing the command #75

Open samrajcse opened 3 years ago

samrajcse commented 3 years ago

Hi Team,

I am using latest version of jpowershell and I am getting frequent program hang in writeBytes. I write the O365 powershell command and perform operations. At somepoint it stucks like this.

Jconsole stack trace:

java.io.FileOutputStream.writeBytes(Native Method) java.io.FileOutputStream.write(FileOutputStream.java:326) java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)