Skip to content

Commit

Permalink
Added Direct Buffer Memory to resolve this issue "java.lang.OutOfMemo…
Browse files Browse the repository at this point in the history
…ryError: Direct buffer memory"
  • Loading branch information
pankajjangid05 committed Jul 17, 2023
1 parent 6fb8ae3 commit 91ac00d
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","-Xmx1024m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent", "-XX:MaxDirectMemorySize=2g","-jar","app.jar"]

0 comments on commit 91ac00d

Please sign in to comment.