Skip to content

Commit

Permalink
[Hot Fix] - Added Direct Buffer Memory to resolve this issue "java.la…
Browse files Browse the repository at this point in the history
…ng.OutOfMemoryError: Direct buffer memory"
  • Loading branch information
pankajjangid05 committed Jul 17, 2023
1 parent 783338b commit d6be359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ WORKDIR $HOME
COPY --from=build $HOME/target/*.jar app.jar

EXPOSE 8080
ENTRYPOINT ["java","-Xmx1024m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-jar","app.jar"]
ENTRYPOINT ["java","-Xmx4096m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent", "-XX:MaxDirectMemorySize=4g","-jar","app.jar"]

0 comments on commit d6be359

Please sign in to comment.