return new Option[] {
// TODO: Find a way to inherit memory limits from Maven options.
new VMOption("-Xmx2g"),
+ new VMOption("-XX:+HeapDumpOnOutOfMemoryError"),
+ new VMOption("-XX:OnOutOfMemoryError=\"kill -3 %p\""),
// inspired by org.apache.commons.lang.SystemUtils
when(System.getProperty("os.name").toLowerCase().startsWith("linux")).useOptions(
// This prevents low entropy issues on Linux to affect Java random numbers
"odl-mdsal-clustering-commons",
"odl-mdsal-distributed-datastore",
"odl-mdsal-remoterpc-connector",
+ // Karaf 4 specific problems with genius features
+ // see https://bugs.opendaylight.org/show_bug.cgi?id=8100
+ "odl-genius",
+ "odl-genius-api",
+ "odl-genius-rest",
+ "odl-genius-ui",
+ "odl-genius-fcaps-framework",
+ "odl-genius-fcaps-application",
// 1/17 in groupbasedpolicy/features due to NOK org.opendaylight.groupbasedpolicy
// Caused by: org.opendaylight.mdsal.eos.common.api.CandidateAlreadyRegisteredException
// see https://bugs.opendaylight.org/show_bug.cgi?id=7587