Skip to content

Commit

Permalink
Add JVM's string memory optimization to the REST API Docker container…
Browse files Browse the repository at this point in the history
… for using `MavenResolverIO` and fetching >1 million POMs
  • Loading branch information
mir-am committed Jun 13, 2022
1 parent 0db60ad commit da0ccaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer/restapi-plugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ FROM openjdk:11-jre-slim
WORKDIR /app
COPY ./target/*.jar ./rest-api.jar

ENTRYPOINT java $JAVA_OPTS -jar /app/rest-api.jar $0 $@
ENTRYPOINT java $JAVA_OPTS -XX:+UseG1GC -XX:+UseStringDeduplication -XX:-CompactStrings -jar /app/rest-api.jar $0 $@

EXPOSE 8080

0 comments on commit da0ccaf

Please sign in to comment.