Cluster Metrics on Windows

30 views
Skip to first unread message

cessationoftime

unread,
Aug 19, 2016, 7:31:30 PM8/19/16
to Akka User List
Using Akka 2.4.9 and Windows 10 I am unable to get CPU cluster metrics, I can only get HeapMemory metrics. Running the same code on a Ubuntu server I get both CPU metrics and Heap metrics.  I am using the factorial example located at: http://www.lightbend.com/activator/template/akka-sample-cluster-scala.  And I am running it in sbt with the following command "runMain sample.cluster.factorial.FactorialApp". Is there something I need to do to get this to work on windows?  Should it work on windows?

Thanks,
Chris

Endre Varga

unread,
Aug 20, 2016, 4:26:33 AM8/20/16
to akka...@googlegroups.com
Hi,

Which metric collector are you using, the JMX or the SIGAR collector?

-Endre

--
>>>>>>>>>> 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 akka-user+unsubscribe@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Chris Van Vranken

unread,
Aug 20, 2016, 11:09:43 AM8/20/16
to akka...@googlegroups.com

I have tried both of them with the same result on Windows. On Ubuntu I have only tried sigar.

On Aug 20, 2016 4:26 AM, "Endre Varga" <endre...@lightbend.com> wrote:
>
> Hi,
>
> Which metric collector are you using, the JMX or the SIGAR collector?
>
> -Endre
>
> On Sat, Aug 20, 2016 at 1:31 AM, cessationoftime <cessati...@gmail.com> wrote:
>>
>> Using Akka 2.4.9 and Windows 10 I am unable to get CPU cluster metrics, I can only get HeapMemory metrics. Running the same code on a Ubuntu server I get both CPU metrics and Heap metrics.  I am using the factorial example located at: http://www.lightbend.com/activator/template/akka-sample-cluster-scala.  And I am running it in sbt with the following command "runMain sample.cluster.factorial.FactorialApp". Is there something I need to do to get this to work on windows?  Should it work on windows?
>>
>> Thanks,
>> Chris
>>
>> --
>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.


>>
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>
>

> --
> >>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/IMc50pgXssY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

Chris Van Vranken

unread,
Aug 20, 2016, 11:10:52 AM8/20/16
to akka...@googlegroups.com

Though sigar is the collector I would like to be able to use.


On Aug 20, 2016 11:09 AM, "Chris Van Vranken" <cessati...@gmail.com> wrote:

I have tried both of them with the same result on Windows. On Ubuntu I have only tried sigar.

On Aug 20, 2016 4:26 AM, "Endre Varga" <endre...@lightbend.com> wrote:
>
> Hi,
>
> Which metric collector are you using, the JMX or the SIGAR collector?
>
> -Endre
>
> On Sat, Aug 20, 2016 at 1:31 AM, cessationoftime <cessati...@gmail.com> wrote:
>>
>> Using Akka 2.4.9 and Windows 10 I am unable to get CPU cluster metrics, I can only get HeapMemory metrics. Running the same code on a Ubuntu server I get both CPU metrics and Heap metrics.  I am using the factorial example located at: http://www.lightbend.com/activator/template/akka-sample-cluster-scala.  And I am running it in sbt with the following command "runMain sample.cluster.factorial.FactorialApp". Is there something I need to do to get this to work on windows?  Should it work on windows?
>>
>> Thanks,
>> Chris
>>
>> --
>> >>>>>>>>>> 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 akka-user+unsubscribe@googlegroups.com.


>>
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> >>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/IMc50pgXssY/unsubscribe.

> To unsubscribe from this group and all its topics, send an email to akka-user+unsubscribe@googlegroups.com.

Patrik Nordwall

unread,
Aug 20, 2016, 11:25:38 AM8/20/16
to akka...@googlegroups.com
It can sometimes be difficult to setup loading of the native sigar library. Several alternatives are listed in docs http://doc.akka.io/docs/akka/2.4/java/cluster-metrics.html#Hyperic_Sigar_Provisioning

You should see warnings/errors in the log.

/Patrik
lör 20 aug. 2016 kl. 17:10 skrev Chris Van Vranken <cessati...@gmail.com>:

Though sigar is the collector I would like to be able to use.

On Aug 20, 2016 11:09 AM, "Chris Van Vranken" <cessati...@gmail.com> wrote:

I have tried both of them with the same result on Windows. On Ubuntu I have only tried sigar.

On Aug 20, 2016 4:26 AM, "Endre Varga" <endre...@lightbend.com> wrote:
>
> Hi,
>
> Which metric collector are you using, the JMX or the SIGAR collector?
>
> -Endre
>
> On Sat, Aug 20, 2016 at 1:31 AM, cessationoftime <cessati...@gmail.com> wrote:
>>
>> Using Akka 2.4.9 and Windows 10 I am unable to get CPU cluster metrics, I can only get HeapMemory metrics. Running the same code on a Ubuntu server I get both CPU metrics and Heap metrics.  I am using the factorial example located at: http://www.lightbend.com/activator/template/akka-sample-cluster-scala.  And I am running it in sbt with the following command "runMain sample.cluster.factorial.FactorialApp". Is there something I need to do to get this to work on windows?  Should it work on windows?
>>
>> Thanks,
>> Chris
>>
>> --
>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.


>>
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> >>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/IMc50pgXssY/unsubscribe.

> To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.


> To post to this group, send email to akka...@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.

--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.

Chris Van Vranken

unread,
Aug 20, 2016, 1:01:02 PM8/20/16
to akka...@googlegroups.com
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://Cluste...@127.0.0.1:2551]
[info] [INFO] [08/20/2016 12:45:17.700] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1:2551] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.778] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:50317]
[info] [INFO] [08/20/2016 12:45:17.856] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1:50317] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.856] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:50332]
[info] [INFO] [08/20/2016 12:45:17.903] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1:50332] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.903] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Node [akka.tcp://Cluste...@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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Node [akka.tcp://Cluste...@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://Cluste...@127.0.0.1:2551] - Node [akka.tcp://Cluste...@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://Cluste...@127.0.0.1:2551] - Node [akka.tcp://Cluste...@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://Cluste...@127.0.0.1:50332] - Welcome from [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:50317] - Welcome from [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2552] - Welcome from [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Leader is moving node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Leader is moving node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Leader is moving node [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2551] - Leader is moving node [akka.tcp://Cluste...@127.0.0.1:50332] to [Up]
[info] [INFO] [08/20/2016 12:45:23.842] [ClusterSystem-akka.actor.default-dispatcher-18] [akka.tcp://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1: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://Cluste...@127.0.0.1:2552/user/metricsListener] Used heap: 57.282443046569824 MB

Chris Van Vranken

unread,
Aug 20, 2016, 1:12:40 PM8/20/16
to akka...@googlegroups.com
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 <cessati...@gmail.com> 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://ClusterSystem@127.0.0.1:2551] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.778] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:50317] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.856] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:50332] - Starting up...
[info] [INFO] [08/20/2016 12:45:17.903] [main] [akka.cluster.Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:50332] - Welcome from [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:50317] - Welcome from [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2552] - Welcome from [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2551] - Leader is moving node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2551] - Leader is moving node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2551] - Leader is moving node [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2551] - Leader is moving node [akka.tcp://ClusterSystem@127.0.0.1:50332] to [Up]
[info] [INFO] [08/20/2016 12:45:23.842] [ClusterSystem-akka.actor.default-dispatcher-18] [akka.tcp://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1: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://ClusterSystem@127.0.0.1:2552/user/metricsListener] Used heap: 57.282443046569824 MB


Chris Van Vranken

unread,
Aug 20, 2016, 3:12:30 PM8/20/16
to akka...@googlegroups.com
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)

Chris Van Vranken

unread,
Aug 20, 2016, 4:06:54 PM8/20/16
to akka...@googlegroups.com
I found an issue for this listed in the hyperic/sigar github repo.

Chris Van Vranken

unread,
Aug 20, 2016, 4:29:57 PM8/20/16
to akka...@googlegroups.com
In the Sigar repository there is a comment in file: src/os/win32/win32_sigar.c, for function sigar_loadavg_get which says "there is no api for this info. closest i've seen is enumerating the entire process table and calculating an average based on process times."

Based on this comment it seems unlikely the issue will be resolved any time soon, if it gets fixed at all. So I think the verifiedSigarInstance function that ClusterMetrics calls should be changed so that the getLoadAverage function is not called when running on Windows, otherwise Sigar will be unuseable there.

Chris Van Vranken

unread,
Aug 20, 2016, 7:06:31 PM8/20/16
to akka...@googlegroups.com
Someone responded to me in the hyperic sigar issue. Apparently this is implemented in the Boundary fork of sigar: https://github.com/boundary/sigar

Endre Varga

unread,
Aug 21, 2016, 3:29:19 AM8/21/16
to akka...@googlegroups.com
Hi Chris,

Thank you for all this, very valuable information! Can you please file a ticket on the repo for further discussions to not have this accidentally lost?

-Endre

--
>>>>>>>>>> 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 akka-user+unsubscribe@googlegroups.com.

Chris Van Vranken

unread,
Aug 21, 2016, 10:48:41 AM8/21/16
to akka...@googlegroups.com
I've created the issue here: https://github.com/akka/akka/issues/21240

Chris

You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/IMc50pgXssY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages