Open nddipiazza opened 4 years ago
Yeah, It's bug. me too
any solution to this problem?
Duplicate of #136, #138
I debug into running sigar process, find the reason: sigar use int save pointer, latest 64Bit windows load dll above 4G base address.
Hello @cnstar9988 , Could you please guide on steps to rebuild the dll ?
I re-built the project and copied the latest sigar-amd64-winnt.dll to /lib folder.
Now I get this dependency error:
C:\ServerAgent-2.2.3\ServerAgent-2.2.3\lib\sigar-amd64-winnt.dll: Can't find dependent libraries
org.hyperic.sigar.SigarException: C:\ServerAgent-2.2.3\ServerAgent-2.2.3\lib\sigar-amd64-winnt.dll: Can't find dependent libraries
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
at org.hyperic.sigar.Sigar.
you can download for test, rename it to sigar-amd64-winnt.dll for sigar 1.6.4 https://github.com/cnstar9988/sigar/commit/9e5dba8d520cca718209d93fb89a4c5daebb7655
I can rebuilt the project and copied the latest sigar-amd64-winnt.dll for sigar 1.6.4 vs2010+Perl 5.8 + JDK 1.8 + ant 1.9.7
I can rebuild sigar 1.6.4, vs2010+Perl 5.8 + JDK 1.8 + ant 1.9.7
the latest stable sigar 1.6.4, you can use code changes for sigar 1.6.4 code. replace only sigar-amd64-winnt.dll for sigar 1.6.4...
or use latest sigar.jar + sigar-amd64-winnt.dll both together.
@cnstar9988 I am finding it hard to follow the steps build steps mentioned above. Is it possible to share directly the sigar-amd64-winnt.dll and other dependent files?
you can download from the following links, it show a picture, you download it ,and rename it to sigar-amd64-winnt.dll, it works well with sigar 1.6.4. https://github.com/cnstar9988/sigar/commit/9e5dba8d520cca718209d93fb89a4c5daebb7655 https://github.com/cnstar9988/sigar/raw/master/sigar-amd64-winnt.dll
sigar-amd64-winnt.dll md5: adeeb56eb62e4929440b9a7f52efdfe4 sha1: b0a070dc77d6f4751c39df13cf1a9fc4775b8933
@cnstar9988 Thank you for sharing the dll. It works fine now
ok, it affects latest windows 64, maybe other 64bit OS.
reason: sigar use int save pointer, latest 64Bit windows may load dll above 4G base address. It must use jlong to save c/c++ pointer.
It worked for me too, @cnstar9988 thank you very much!
Not at all. Good luck to you all.
https://user-images.githubusercontent.com/895069/100061599-40e31600-2e69-11eb-9f18-6cf58344460d.jpg, this link is invalid,please take time to update,thank you very much. @cnstar9988
I took the liberty of making the sigar-amd64-winnt.dll file from @cnstar9988 available on a fixed link in this topic. I hope it's not a problem.
https://drive.google.com/file/d/1JMxshmXKFF30w_J8qg25ISv34QFkkKUO/view?usp=sharing
@aldrato I've been struggling to build this myself.
Can you tell me what specific versions of everything you used?
Windows SDK version Windows OS version Perl version JDK version Ant version
anything else that might be pertinent?
Same issue here, using org.hyperic.sigar-1.6.4.jar
library.
Windows 10 Professional, version 20H2 (19042.746).
JDK
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
@nddipiazza I didn't rebuild the dll, I just got the dll made available by @ cnstar9988. For me it worked perfectly. @jgreffe use the dll provided in the link above. Replace your dll with it, it will probably work
@ilanuriel @dougm When do we gonna get a new release with this fix? I see a download link for sigar-amd64-winnt.dll . I tried it and it fixed my issue. but I prefer to get a new release with this fix (if possible).
@dougm @ilanuriel same here. still stick unable to run a build to generate this DLL. if you get a quick minute, any way you can create a fresh release with this fix?
Where do I place the sigar-amd64-winnt.dll file?
Where do I place the sigar-amd64-winnt.dll file?
go to your cassandra 3.x file > lib > sigar-bin then remove the other sigar-amd64-winnit.dll file and replace it with the one you downloaded. I just did that and its working now, so exited.
Is this going to be part of a release soon? win64 is completely broken because of this. #142 fixes it
Is this going to be part of a release soon? win64 is completely broken because of this. #142 fixes it
I believe it will no longer be updated
I am getting Java core dumps when running Sigar:
Windows 10 - Version 1909 Build 18363.959 I have verified the issue happens on OpenJDK 8u242, 8u261 and Oracle JDK 1.8.0_261 sigar-amd64-winnt.dll version 1.6.4