Wes Morgan
2017-05-16 16:44:39 UTC
This page: http://docs.datomic.com/system-properties.html
...says that the default value of the objectCacheMax property is "50% of VM
RAM." If the peer is running in a Docker container (for example), and there
is a cgroup memory limit set, does Datomic look at that for setting this
value? If not, does that seem like a reasonable feature request?
FWIW, Java 9 and 8u131 have the ability to set the default max heap based
on this (in Java 8u131+, you have to pass these flags to the java runtime:
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
-XX:MaxRAMFraction=1).
...says that the default value of the objectCacheMax property is "50% of VM
RAM." If the peer is running in a Docker container (for example), and there
is a cgroup memory limit set, does Datomic look at that for setting this
value? If not, does that seem like a reasonable feature request?
FWIW, Java 9 and 8u131 have the ability to set the default max heap based
on this (in Java 8u131+, you have to pass these flags to the java runtime:
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
-XX:MaxRAMFraction=1).
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.