I found the problem:

In file:
 akka-cluster-metrics/src/main/scala/akka/cluster/metrics/Provision.scala

def verifiedSigarInstance: SigarProxy = {
> val sigar = new Sigar()
> sigar.getPid
> sigar.getLoadAverage
> sigar.getCpuPerc
> sigar
> }


def verifiedSigarInstance will always throws an exception when it attempts
to run sigar.getLoadAvarage. This causes the ClusterMetrics extension to
repeatedly attempt to provision sigar, but it never succeeds. Apparently
getLoadAverage simply isn't implemented for this OS in "sigar-loader" %
"1.6.6-rev002" which is the most recent version available and the version
referenced in the cluster metrics documentation.

Running a simple program with the following code will reproduce the error
under Windows 10 (possibly under Windows 7 too, I had trouble there some
months back)

import java.io.File; import org.hyperic.sigar.Sigar; import
> kamon.sigar.SigarProvisioner; object ExampleMain extends App {
> SigarProvisioner.provision(); val sigar = new Sigar() val loadAverage =
> sigar.getLoadAverage

}
>

The exception is:

Aug 20, 2016 2:52:59 PM kamon.sigar.SigarProvisioner discoverLocation INFO:
Using location provided by hard coded value. Aug 20, 2016 2:52:59 PM
kamon.sigar.SigarProvisioner provision INFO: Sigar library provisioned:
C:\Users\cvanvranken\gits\Example\main\server-metrics\native\sigar-amd64-winnt.dll
Exception in thread "main" org.hyperic.sigar.SigarNotImplementedException:
This method has not been implemented on this platform at
org.hyperic.sigar.SigarNotImplementedException.<clinit>(SigarNotImplementedException.java:28)
at org.hyperic.sigar.Sigar.getLoadAverage(Native Method)

On Sat, Aug 20, 2016 at 1:12 PM, Chris Van Vranken <
[email protected]> wrote:

> I bet akka.cluster.metrics.native-library-extract-folder isn't configured
> properly.
>
> On Sat, Aug 20, 2016 at 1:00 PM, Chris Van Vranken <
> [email protected]> wrote:
>
>> One thing that I've noticed is it seems to startup as JMX. But then it
>> subsequently provisions Sigar. Though the provision is logged as an error
>> message.
>>
>> The log output looks like this:
>>
>> > runMain sample.cluster.factorial.FactorialApp
>> [warn] Scala version was updated by one of library dependencies:
>> [warn]  * org.scala-lang:scala-library:2.11.7 -> 2.11.8
>> [warn] To force scalaVersion, add the following:
>> [warn]  ivyScala := ivyScala.value map { _.copy(overrideScalaVersion =
>> true) }
>> [warn] Run 'evicted' to see detailed eviction warnings
>> [info] Running sample.cluster.factorial.FactorialApp
>> [info] [INFO] [08/20/2016 12:45:17.497] [main] [akka.remote.Remoting]
>> Starting remoting
>> [info] [INFO] [08/20/2016 12:45:17.684] [main] [akka.remote.Remoting]
>> Remoting started; listening on addresses :[akka.tcp://ClusterSystem@127
>> .0.0.1:2551]
>> [info] [INFO] [08/20/2016 12:45:17.700] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Starting up...
>> [info] [INFO] [08/20/2016 12:45:17.778] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Registered cluster JMX MBean
>> [akka:type=Cluster]
>> [info] [INFO] [08/20/2016 12:45:17.778] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Started up successfully
>> [error] Aug 20, 2016 12:45:17 PM kamon.sigar.SigarProvisioner provision
>> [info] [INFO] [08/20/2016 12:45:17.825] [main] [akka.remote.Remoting]
>> Starting remoting
>> [error] WARNING: Sigar library is already provisioned.
>> [info] [INFO] [08/20/2016 12:45:17.825] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Metrics collection has started
>> successfully
>> [error] Aug 20, 2016 12:45:17 PM kamon.sigar.SigarProvisioner provision
>> [info] [INFO] [08/20/2016 12:45:17.825] [main] [akka.remote.Remoting]
>> Remoting started; listening on addresses :[akka.tcp://ClusterSystem@127
>> .0.0.1:2552]
>> [error] WARNING: Sigar library is already provisioned.
>> [error] Aug 20, 2016 12:45:17 PM kamon.sigar.SigarProvisioner provision
>> [info] [INFO] [08/20/2016 12:45:17.825] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2552] - Starting up...
>> [error] WARNING: Sigar library is already provisioned.
>> [info] [INFO] [08/20/2016 12:45:17.841] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2552] - Started up successfully
>> [error] Aug 20, 2016 12:45:17 PM kamon.sigar.SigarProvisioner provision
>> [info] [INFO] [08/20/2016 12:45:17.841] 
>> [ClusterSystem-akka.actor.default-dispatcher-4]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2552] - Metrics collection has started
>> successfully
>> [error] WARNING: Sigar library is already provisioned.
>> [info] [INFO] [08/20/2016 12:45:17.856] [main] [akka.remote.Remoting]
>> Starting remoting
>> [info] [INFO] [08/20/2016 12:45:17.856] [main] [akka.remote.Remoting]
>> Remoting started; listening on addresses :[akka.tcp://ClusterSystem@127
>> .0.0.1:50317]
>> [info] [INFO] [08/20/2016 12:45:17.856] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50317] - Starting up...
>> [info] [INFO] [08/20/2016 12:45:17.856] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50317] - Started up successfully
>> [info] [INFO] [08/20/2016 12:45:17.872] 
>> [ClusterSystem-akka.actor.default-dispatcher-4]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50317] - Metrics collection has started
>> successfully
>> [info] [INFO] [08/20/2016 12:45:17.888] [main] [akka.remote.Remoting]
>> Starting remoting
>> [info] [INFO] [08/20/2016 12:45:17.903] [main] [akka.remote.Remoting]
>> Remoting started; listening on addresses :[akka.tcp://ClusterSystem@127
>> .0.0.1:50332]
>> [info] [INFO] [08/20/2016 12:45:17.903] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50332] - Starting up...
>> [info] [INFO] [08/20/2016 12:45:17.903] [main]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50332] - Started up successfully
>> [info] [INFO] [08/20/2016 12:45:17.903] [main]
>> [akka.actor.ActorSystemImpl(ClusterSystem)] Factorials will start when 2
>> backend members in the cluster.
>> [info] [INFO] [08/20/2016 12:45:17.903] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50332] - Metrics collection has started
>> successfully
>> [info] [INFO] [08/20/2016 12:45:17.950] 
>> [ClusterSystem-akka.actor.default-dispatcher-16]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Node [akka.tcp://ClusterSystem@127.
>> 0.0.1:2551] is JOINING, roles [backend]
>> [info] [INFO] [08/20/2016 12:45:20.856] 
>> [ClusterSystem-akka.actor.default-dispatcher-14]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 24.170730590820312 MB
>> [info] [INFO] [08/20/2016 12:45:20.872] 
>> [ClusterSystem-akka.actor.default-dispatcher-17]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 24.502845764160156 MB
>> [info] [INFO] [08/20/2016 12:45:20.888] 
>> [ClusterSystem-akka.actor.default-dispatcher-22]
>> [akka.tcp://[email protected]:50317/user/metricsListener] Used
>> heap: 24.502845764160156 MB
>> [info] [INFO] [08/20/2016 12:45:22.998] 
>> [ClusterSystem-akka.actor.default-dispatcher-18]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Node [akka.tcp://ClusterSystem@127.
>> 0.0.1:50317] is JOINING, roles [backend]
>> [info] [INFO] [08/20/2016 12:45:22.998] 
>> [ClusterSystem-akka.actor.default-dispatcher-18]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Node [akka.tcp://ClusterSystem@127.
>> 0.0.1:50332] is JOINING, roles [frontend]
>> [info] [INFO] [08/20/2016 12:45:22.998] 
>> [ClusterSystem-akka.actor.default-dispatcher-18]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Node [akka.tcp://ClusterSystem@127.
>> 0.0.1:2552] is JOINING, roles [backend]
>> [info] [INFO] [08/20/2016 12:45:23.092] 
>> [ClusterSystem-akka.actor.default-dispatcher-16]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50332] - Welcome from [akka.tcp://
>> [email protected]:2551]
>> [info] [INFO] [08/20/2016 12:45:23.092] 
>> [ClusterSystem-akka.actor.default-dispatcher-23]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:50317] - Welcome from [akka.tcp://
>> [email protected]:2551]
>> [info] [INFO] [08/20/2016 12:45:23.092] 
>> [ClusterSystem-akka.actor.default-dispatcher-17]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2552] - Welcome from [akka.tcp://
>> [email protected]:2551]
>> [info] [INFO] [08/20/2016 12:45:23.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Leader is moving node [akka.tcp://
>> [email protected]:2551] to [Up]
>> [info] [INFO] [08/20/2016 12:45:23.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Leader is moving node [akka.tcp://
>> [email protected]:2552] to [Up]
>> [info] [INFO] [08/20/2016 12:45:23.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Leader is moving node [akka.tcp://
>> [email protected]:50317] to [Up]
>> [info] [INFO] [08/20/2016 12:45:23.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://
>> [email protected]:2551] - Leader is moving node [akka.tcp://
>> [email protected]:50332] to [Up]
>> [info] [INFO] [08/20/2016 12:45:23.842] 
>> [ClusterSystem-akka.actor.default-dispatcher-18]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 25.406883239746094 MB
>> [info] [INFO] [08/20/2016 12:45:23.842] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 25.679889678955078 MB
>> [info] [INFO] [08/20/2016 12:45:23.889] 
>> [ClusterSystem-akka.actor.default-dispatcher-5]
>> [akka.tcp://[email protected]:50317/user/metricsListener] Used
>> heap: 26.044485092163086 MB
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [1] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [2] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [3] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [4] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [5] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [6] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [7] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [8] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [9] dead
>> letters encountered. This logging can be turned off or adjusted with
>> configuration settings 'akka.log-dead-letters' and
>> 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:24.827] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka://ClusterSystem/deadLetters] Message [java.lang.Integer] from
>> Actor[akka://ClusterSystem/user/factorialFrontend#289680043] to
>> Actor[akka://ClusterSystem/deadLetters] was not delivered. [10] dead
>> letters encountered, no more dead letters will be logged. This logging can
>> be turned off or adjusted with configuration settings
>> 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
>> [info] [INFO] [08/20/2016 12:45:26.845] 
>> [ClusterSystem-akka.actor.default-dispatcher-16]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 27.490310668945312 MB
>> [info] [INFO] [08/20/2016 12:45:26.861] 
>> [ClusterSystem-akka.actor.default-dispatcher-20]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 27.72617530822754 MB
>> [info] [INFO] [08/20/2016 12:45:26.892] 
>> [ClusterSystem-akka.actor.default-dispatcher-25]
>> [akka.tcp://[email protected]:50317/user/metricsListener] Used
>> heap: 28.058615684509277 MB
>> [info] [INFO] [08/20/2016 12:45:29.845] 
>> [ClusterSystem-akka.actor.default-dispatcher-3]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 29.725139617919922 MB
>> [info] [INFO] [08/20/2016 12:45:29.861] 
>> [ClusterSystem-akka.actor.default-dispatcher-16]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 31.370417594909668 MB
>> [info] [INFO] [08/20/2016 12:45:29.877] 
>> [ClusterSystem-akka.actor.default-dispatcher-6]
>> [akka.tcp://[email protected]:50317/user/metricsListener] Used
>> heap: 31.119688034057617 MB
>> [info] [INFO] [08/20/2016 12:45:32.845] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 34.224236488342285 MB
>> [info] [INFO] [08/20/2016 12:45:32.861] 
>> [ClusterSystem-akka.actor.default-dispatcher-19]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 35.63067626953125 MB
>> [info] [INFO] [08/20/2016 12:45:32.892] 
>> [ClusterSystem-akka.actor.default-dispatcher-19]
>> [akka.tcp://[email protected]:50317/user/metricsListener] Used
>> heap: 34.61888408660889 MB
>> [info] [INFO] [08/20/2016 12:45:34.861] 
>> [ClusterSystem-akka.actor.default-dispatcher-3]
>> [akka.tcp://[email protected]:50332/user/factorialFrontend] Timeout
>> [info] [WARN] [08/20/2016 12:45:34.892] 
>> [ClusterSystem-akka.remote.default-remote-dispatcher-6]
>> [akka.serialization.Serialization(akka://ClusterSystem)] Using the
>> default Java serializer for class [scala.Tuple2] which is not recommended
>> because of performance implications. Use another serializer or disable this
>> warning using the setting 'akka.actor.warn-about-java-serializer-usage'
>> [info] [WARN] [08/20/2016 12:45:34.892] 
>> [ClusterSystem-akka.remote.default-remote-dispatcher-7]
>> [akka.serialization.Serialization(akka://ClusterSystem)] Using the
>> default Java serializer for class [scala.Tuple2] which is not recommended
>> because of performance implications. Use another serializer or disable this
>> warning using the setting 'akka.actor.warn-about-java-serializer-usage'
>> [info] [WARN] [08/20/2016 12:45:34.892] 
>> [ClusterSystem-akka.remote.default-remote-dispatcher-6]
>> [akka.serialization.Serialization(akka://ClusterSystem)] Using the
>> default Java serializer for class [scala.Tuple2] which is not recommended
>> because of performance implications. Use another serializer or disable this
>> warning using the setting 'akka.actor.warn-about-java-serializer-usage'
>> [info] [INFO] [08/20/2016 12:45:35.845] 
>> [ClusterSystem-akka.actor.default-dispatcher-2]
>> [akka.tcp://[email protected]:2551/user/metricsListener] Used
>> heap: 51.5294075012207 MB
>> [info] [INFO] [08/20/2016 12:45:35.861] 
>> [ClusterSystem-akka.actor.default-dispatcher-39]
>> [akka.tcp://[email protected]:2552/user/metricsListener] Used
>> heap: 57.282443046569824 MB
>>
>>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to