access denied - Using SIGAR to get oracle process info, from a web app server (glassfish4) -
i have been working on web monitor using sigar gather system information, need oracle's ram , cpu usage. did using sigar.getproccpu(pid).gettotal() function.
but when deploy app on glassfish 4, error message: org.hyperic.sigar.sigarpermissiondeniedexception: access denied.
is there walkaround this? can give sigar access info im requesting?
i got exact same problem yours. found post after asked my question , find answer. , here's answer own question:
the os not allow program access process information until run program admin privilege, need provide admin privilege.
there methods provide admin privilege, including ask user right click on icon , select "run administrator".
but better way might wrapping java application in .exe here , here said.
however, have hack os excowboy said here want show information on web page , can't wrapping app in .exe file.
i think have give up. put these links may need it. :) oh, total cpu usage accessible if want,btw.
hope , sorry poor english. ;)
Comments
Post a Comment