#20804 add a note for unique per instance extract directory

If extract directory for sigar loader is shared, first instance
JVM crashes when the second one is started.
This commit is contained in:
Martynas Mickevičius 2016-06-22 16:30:40 +03:00
parent 4d9268214d
commit 672a10a7ea
2 changed files with 46 additions and 32 deletions

View file

@ -91,6 +91,13 @@ User can provision Sigar classes and native library in one of the following ways
#. Place ``sigar.jar`` on the ``classpath`` and Sigar native library for the o/s on the ``java.library.path``. #. Place ``sigar.jar`` on the ``classpath`` and Sigar native library for the o/s on the ``java.library.path``.
User is required to manage both project dependency and library deployment manually. User is required to manage both project dependency and library deployment manually.
.. warning::
When using `Kamon sigar-loader <https://github.com/kamon-io/sigar-loader>`_ and running multiple
instances of the same application on the same host, you have to make sure that sigar library is extracted to a
unique per instance directory. You can control the extract directory with the
``akka.cluster.metrics.native-library-extract-folder`` configuration setting.
To enable usage of Sigar you can add the following dependency to the user project To enable usage of Sigar you can add the following dependency to the user project
:: ::

View file

@ -87,6 +87,13 @@ User can provision Sigar classes and native library in one of the following ways
#. Place ``sigar.jar`` on the ``classpath`` and Sigar native library for the o/s on the ``java.library.path``. #. Place ``sigar.jar`` on the ``classpath`` and Sigar native library for the o/s on the ``java.library.path``.
User is required to manage both project dependency and library deployment manually. User is required to manage both project dependency and library deployment manually.
.. warning::
When using `Kamon sigar-loader <https://github.com/kamon-io/sigar-loader>`_ and running multiple
instances of the same application on the same host, you have to make sure that sigar library is extracted to a
unique per instance directory. You can control the extract directory with the
``akka.cluster.metrics.native-library-extract-folder`` configuration setting.
To enable usage of Sigar you can add the following dependency to the user project To enable usage of Sigar you can add the following dependency to the user project
:: ::