Coder Social home page Coder Social logo

Comments (25)

cnstar9988 avatar cnstar9988 commented on August 20, 2024 21

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.
cnstar9988@9e5dba8
https://github.com/cnstar9988/sigar/raw/master/sigar-amd64-winnt.dll

sigar-amd64-winnt.dll
md5:
adeeb56eb62e4929440b9a7f52efdfe4
sha1:
b0a070dc77d6f4751c39df13cf1a9fc4775b8933

from sigar.

Rayn-liuwei avatar Rayn-liuwei commented on August 20, 2024

Yeah, It's bug. me too

from sigar.

aldrato avatar aldrato commented on August 20, 2024

any solution to this problem?

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

Duplicate of #136, #138

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

I debug into running sigar process, find the reason: sigar use int save pointer, latest 64Bit windows load dll above 4G base address.

from sigar.

sadacs2005 avatar sadacs2005 commented on August 20, 2024

Hello @cnstar9988 ,
Could you please guide on steps to rebuild the dll ?

from sigar.

sadacs2005 avatar sadacs2005 commented on August 20, 2024

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.(Sigar.java:100)
at kg.apc.perfmon.PerfMonWorker.(PerfMonWorker.java:44)
at kg.apc.perfmon.AgentTool.getWorker(AgentTool.java:93)
at kg.apc.perfmon.AgentTool.processParams(AgentTool.java:23)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:63)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:174)

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

you can download for test, rename it to sigar-amd64-winnt.dll for sigar 1.6.4
cnstar9988@9e5dba8

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

  1. run into vs2010 x64 command prompt environment.
  2. change dir into sigar-1.6.4\bindings\java.
  3. run ant.
    sigar-amd64-winnt.dll will be in sigar-1.6.4\bindings\java\sigar-bin\lib

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

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.

from sigar.

sadacs2005 avatar sadacs2005 commented on August 20, 2024

@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?

from sigar.

sadacs2005 avatar sadacs2005 commented on August 20, 2024

@cnstar9988 Thank you for sharing the dll. It works fine now

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

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.

from sigar.

aldrato avatar aldrato commented on August 20, 2024

It worked for me too, @cnstar9988 thank you very much!

from sigar.

cnstar9988 avatar cnstar9988 commented on August 20, 2024

Not at all. Good luck to you all.

from sigar.

fjmjuhqc avatar fjmjuhqc commented on August 20, 2024

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

from sigar.

aldrato avatar aldrato commented on August 20, 2024

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

from sigar.

nddipiazza avatar nddipiazza commented on August 20, 2024

@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?

from sigar.

jgreffe avatar jgreffe commented on August 20, 2024

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)

from sigar.

aldrato avatar aldrato commented on August 20, 2024

@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

from sigar.

Babak-abd avatar Babak-abd commented on August 20, 2024

@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).

from sigar.

nddipiazza avatar nddipiazza commented on August 20, 2024

@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?

from sigar.

jps17183 avatar jps17183 commented on August 20, 2024

Where do I place the sigar-amd64-winnt.dll file?

from sigar.

antmikinka avatar antmikinka commented on August 20, 2024

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.

from sigar.

espx avatar espx commented on August 20, 2024

Is this going to be part of a release soon? win64 is completely broken because of this. #142 fixes it

from sigar.

aldrato avatar aldrato commented on August 20, 2024

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

from sigar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.