Open donggyu04 opened 4 years ago
I hope this will be solved too.
I encountered the same problem.
try oshi
On Sat, May 9, 2020 at 5:02 AM C.W. Pan notifications@github.com wrote:
I encountered the same problem.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hyperic/sigar/issues/136#issuecomment-626132872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPCIGJWBKLITRF3H7FIBBLRQULZDANCNFSM4KUOE7TA .
@spyhunter99
Is oshi support process kill like new Sigar().kill(pid, 15);
?
i can't find that.
same question in oshi: https://github.com/oshi/oshi/issues/277
Answered on the linked OSHI issue, but if you're on JDK 11 just do this:
Optional<ProcessHandle> proc = ProcessHandle.of(pid);
if (proc.isPresent()) {
proc.destroy();
}
I fix it, because sigar use int to save pointer. only affects 64bit latest windows.
https://github.com/cnstar9988/sigar/commit/9e5dba8d520cca718209d93fb89a4c5daebb7655
我修复了它,因为 sigar 使用 int 来保存指针。 仅影响 64 位最新窗口。
Thanks a lot
Hi i'm using sigar very usefully. but some critical problem was occurred.
in Windows 10 & jdk11 sigar lib make JVM crash(append logs below) at all method. but, It works fine when using jdk8 under same environment.
It seems to my
sigar-amd64-winnt.dll
isn't compatible with jdk11 on windows 10. so i update mysigar binary
to1.6.4
download from https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/magelan/hyperic-sigar-1.6.4.zip but, problem isn't resolved. is any resolution about this problem?