Skip to content

Commit

Permalink
Removed jvm and direct buffer memory configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjangid05 authored Sep 25, 2023
1 parent 0fa3289 commit f14d191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ COPY --from=build $HOME/target/*.jar app.jar
EXPOSE 8080

#ENTRYPOINT ["java","-Xmx4096m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent", "-XX:MaxDirectMemorySize=4g","-jar","app.jar"]
ENTRYPOINT ["java","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-XX:MaxGCPauseMillis=1000", "-XX:MetaspaceSize=256m", "-XX:MaxMetaspaceSize=256m", "-Dio.netty.maxDirectMemory=0","-Dio.netty.noPreferDirect=false","-XX:MaxDirectMemorySize=4098m","-jar","app.jar"]
#ENTRYPOINT ["java","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-XX:MaxGCPauseMillis=1000", "-XX:MetaspaceSize=256m", "-XX:MaxMetaspaceSize=256m", "-Dio.netty.maxDirectMemory=0","-Dio.netty.noPreferDirect=false","-XX:MaxDirectMemorySize=4098m","-jar","app.jar"]
ENTRYPOINT ["java","-jar","app.jar"]

0 comments on commit f14d191

Please sign in to comment.