Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Startup performance for JVM based apps - #63

Open
paolocarta wants to merge 4 commits into
jenkins-x:masterfrom
paolocarta:resources-tuning-for-performance
Open

Startup performance for JVM based apps #63
paolocarta wants to merge 4 commits into
jenkins-x:masterfrom
paolocarta:resources-tuning-for-performance

Conversation

@paolocarta

@paolocarta paolocarta commented Aug 14, 2018

Copy link
Copy Markdown
Contributor

Addresses #62

@jstrachan @rawlingsj let me know what you think about it :-).

increasing resources limits and limiting heap size due to the fact java 8 is not docker aware
improving performance
@paolocarta paolocarta changed the title Startup performance for JVM based apps #62 Startup performance for JVM based apps issue #62 Aug 14, 2018
Comment thread packs/gradle/Dockerfile Outdated
COPY build/libs/*.jar /opt/app.jar
WORKDIR /opt
CMD ["java", "-jar", "app.jar"] No newline at end of file
ENTRYPOINT exec java -Xms256m -Xmx256m -XX:MaxMetaspaceSize=128m $JAVA_OPTS -jar app.jar

@paolocarta paolocarta Aug 14, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java 8 is not docker aware, therefore this is a workaround in order to limit heap expansion.

From my local tests I can see that a simple demo spring boot app requires around 150-200 MB of Heap.

moving env variables to kubernetes manifest
@paolocarta paolocarta changed the title Startup performance for JVM based apps issue #62 Startup performance for JVM based apps Aug 15, 2018
adding experimental jvm features
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant