I have packaged the eureka server
provided by this repository https://github.com/spring-cloud-samples/eureka and tried to launch it on a cluster installation managed with Marathon/Mesos on which contraints on memory are set.
Nevertheless if I start the app in Marathon with 512MB it takes 100 seconds (each slaves have 32GB of RAM) to start instead of 12 seconds on my mac (16GB of RAM).
Even with configuring the Xms and Xms does not solve the issue. Using 256MB is even worse.