ewolff / microservice-kafka

Demo to show how Apache Kafka can be used for communication between microservices
Apache License 2.0
584 stars 302 forks source link

Question: use of `-XX:TieredStopAtLevel=1 -noverify` #12

Closed simbo1905 closed 5 years ago

simbo1905 commented 5 years ago

Hello. I see that the Docker starts things with jvm flags -XX:TieredStopAtLevel=1 -noverify I can see how that might help with startup time and possibly memory. Seems that folks might copy those settings and I am wondering if they are recommended for production or simply there for fast demos?

ewolff commented 5 years ago

This is a demo. Settings are not intended for production. This is in particular true for Kafka and Postgres. See https://github.com/dsyer/spring-boot-startup-bench for the optimization concerning startup time.

I'll close the issue, reopen if needed.