These are chat archives for Spirals-Team/powerapi

25th
Jan 2017
Pranav Gupta
@phgupta
Jan 25 2017 05:30

@mcolmant So I executed the command you told me to and it gave me an error:

Uncaught error from thread [PowerMeter-78546464544537-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[PowerMeter-78546464544537]
java.lang.UnsatisfiedLinkError: org.hyperic.sigar.ptql.SigarProcessQuery.create(Ljava/lang/String;)V
at org.hyperic.sigar.ptql.SigarProcessQuery.create(Native Method)
at org.hyperic.sigar.ptql.ProcessQueryFactory.getQuery(ProcessQueryFactory.java:66)
at org.hyperic.sigar.ptql.ProcessFinder.find(ProcessFinder.java:68)
at org.hyperic.sigar.ptql.ProcessFinder.find(ProcessFinder.java:62)
at org.powerapi.core.SigarHelper.getProcessCpuPercent(OSHelper.scala:464)
at org.powerapi.core.OSHelper$class.getTargetCpuPercent(OSHelper.scala:161)
at org.powerapi.core.SigarHelper.getTargetCpuPercent(OSHelper.scala:410)
at org.powerapi.module.cpu.simple.CpuSensor.targetCpuUsageRatio(CpuSensor.scala:51)
at org.powerapi.module.cpu.simple.CpuSensor.sense(CpuSensor.scala:59)
at org.powerapi.module.SensorComponent

KaTeX parse error: Unexpected character: '$' at position 7: anonfun̲$receive$1.app: anonfun$receive$1.applyOrElse(SensorComponent.scala:45)
    at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
    at org.powerapi.module.SensorComponent.aroundReceive(SensorComponent.scala:36)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[ERROR] [01/24/2017 21:14:04.917] [PowerMeter-78546464544537-akka.actor.default-dispatcher-2] [ActorSystem(PowerMeter-78546464544537)] Uncaught error from thread [PowerMeter-78546464544537-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.UnsatisfiedLinkError: org.hyperic.sigar.ptql.SigarProcessQuery.create(Ljava/lang/String;)V
    at org.hyperic.sigar.ptql.SigarProcessQuery.create(Native Method)
    at org.hyperic.sigar.ptql.ProcessQueryFactory.getQuery(ProcessQueryFactory.java:66)
    at org.hyperic.sigar.ptql.ProcessFinder.find(ProcessFinder.java:68)
    at org.hyperic.sigar.ptql.ProcessFinder.find(ProcessFinder.java:62)
    at org.powerapi.core.SigarHelper.getProcessCpuPercent(OSHelper.scala:464)
    at org.powerapi.core.OSHelper$class.getTargetCpuPercent(OSHelper.scala:161)
    at org.powerapi.core.SigarHelper.getTargetCpuPercent(OSHelper.scala:410)
    at org.powerapi.module.cpu.simple.CpuSensor.targetCpuUsageRatio(CpuSensor.scala:51)
    at org.powerapi.module.cpu.simple.CpuSensor.sense(CpuSensor.scala:59)
    at org.powerapi.module.SensorComponent
anonfun$receive$1.applyOrElse(SensorComponent.scala:45)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
at org.powerapi.module.SensorComponent.aroundReceive(SensorComponent.scala:36)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

I tried fixing it by adding the following code in akka.conf (later I tried adding the c

  • I tried fixing it by adding the following code in akka.conf (later I tried adding the code in application.conf too) but it gave me a similar error
    akka {
    jvm-exit-on-fatal-error = false
    }

Do you know what's wrong?

Thank you!

Maxime Colmant
@mcolmant
Jan 25 2017 10:11
Hi, which version of PowerAPI did you use?
The bug has been fixed in a previous release and I’m able to use this module with the release 4.0.