Skip to content

Commit

Permalink
RDBC Pool configuration changes.
Browse files Browse the repository at this point in the history
JVM settings changes.
Version bump 2.4.0
  • Loading branch information
chinmoy12c committed Nov 27, 2023
1 parent c730421 commit 7c9ec93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ 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","-Xmx4096m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-XX:MaxGCPauseMillis=1000", "-XX:MetaspaceSize=256m", "-XX:MaxMetaspaceSize=256m", "-Dio.netty.maxDirectMemory=0","-Dio.netty.noPreferDirect=true","-XX:MaxDirectMemorySize=2048m","-jar","app.jar"]
ENTRYPOINT ["java","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-XX:MaxGCPauseMillis=1000", "-XX:MetaspaceSize=256m", "-XX:MaxMetaspaceSize=256m", "-Dio.netty.noPreferDirect=true", "-XX:MaxDirectMemorySize=2048m", "-XX:NativeMemoryTracking=detail", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=./hdump.hprof", "-jar", "app.jar"]
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
</parent>
<groupId>com.uci</groupId>
<artifactId>transformer</artifactId>
<version>2.3.1</version>
<version>2.4.0</version>
<name>transformer</name>
<description>Demo project for Spring Boot</description>

<properties>
<java.version>11</java.version>
<utils.version>2.4.0</utils.version>
<dao.version>2.3.0</dao.version>
<adapter.version>2.3.0</adapter.version>
<message-rosa.version>2.3.0</message-rosa.version>
<dao.version>2.4.0</dao.version>
<adapter.version>2.4.0</adapter.version>
<message-rosa.version>2.4.0</message-rosa.version>
</properties>

<!-- For Downloading repositories from github packages -->
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ spring.r2dbc.name=${FORMS_DB_NAME}
spring.r2dbc.username=${FORMS_DB_USERNAME}
spring.r2dbc.password=${FORMS_DB_PASSWORD}
# R2DBC Pool Configuration
spring.r2dbc.initialSize=${FORMS_DB_POOL_INITIAL_SIZE:#{"10"}}
spring.r2dbc.maxSize=${FORMS_DB_POOL_MAX_SIZE:#{100}}
spring.r2dbc.maxIdleTime=${FORMS_DB_POOL_MAX_IDLE_TIME:#{1800000}}
spring.r2dbc.pool.initial-size=${FORMS_DB_POOL_INITIAL_SIZE:#{"10"}}
spring.r2dbc.pool.max-size=${FORMS_DB_POOL_MAX_SIZE:#{100}}
spring.r2dbc.pool.max-idle-time=${FORMS_DB_POOL_MAX_IDLE_TIME:#{30m}}
spring.r2dbc.pool.min-idle=2
#spring.r2dbc.acquireRetry=${FORMS_DB_ACQUIRE_RETRY:#{3}}
#spring.r2dbc.maxCreateConnectionTime=${FORMS_DB_MAX_CREATE_CONNECTION_TIME:#{30}}
#spring.r2dbc.maxLifeTime=${FORMS_DB_MAX_LIFE_TIME:#{30}}
Expand Down

0 comments on commit 7c9ec93

Please sign in to comment.