From 2b6de6ce3a308aab62b1754affc0fe4c6282be76 Mon Sep 17 00:00:00 2001 From: rajitha Date: Sun, 25 Jun 2023 15:36:37 +0530 Subject: [PATCH] Update system properties --- src/main/bin/migration-token-validator.sh | 13 +++++++++++-- src/main/resources/application.properties | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/bin/migration-token-validator.sh b/src/main/bin/migration-token-validator.sh index 8fcbb5c..4ca93a5 100644 --- a/src/main/bin/migration-token-validator.sh +++ b/src/main/bin/migration-token-validator.sh @@ -3,17 +3,26 @@ value_port='8081' value_db_url='jdbc:mysql://localhost:3306/EN_MI' value_db_username='root' value_db_password='root' +value_hikari_maximum_pool_size='10' #default value 10 +value_tomcat_maximum_thread_pool_size='200' #default value 200 +value_tomcat_connection_timeout='60000' #default value 60s (=60000) property_port='--server.port=' property_db_url='--spring.datasource.url=' property_db_username='--spring.datasource.username=' property_db_password='--spring.datasource.password=' -property_log_path='--logging.file.path=' +property_hikari_maximum_pool_size='--spring.datasource.hikari.maximum-pool-size=' +property_tomcat_maximum_thread_pool_size='--server.tomcat.threads.max=' +property_tomcat_connection_timeout='--server.tomcat.connection-timeout=' + configs=($property_port$value_port \ $property_db_url$value_db_url \ $property_db_username$value_db_username \ - $property_db_password$value_db_password) + $property_db_password$value_db_password \ + $property_hikari_maximum_pool_size$value_hikari_maximum_pool_size \ + $property_tomcat_maximum_thread_pool_size$value_tomcat_maximum_thread_pool_size \ + $property_tomcat_connection_timeout$value_tomcat_connection_timeout) for config in "${configs[@]}"; do config_str="${config_str} ${config}" diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 36ea327..d0d9727 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,4 +6,7 @@ spring.datasource.username=root spring.datasource.password=root spring.jackson.property-naming-strategy=SNAKE_CASE logging.file.name=../logs/validator.log -spring.logging.file.max-history=5 \ No newline at end of file +spring.logging.file.max-history=5 +spring.datasource.hikari.maximum-pool-size=10 +server.tomcat.threads.max=200 +server.tomcat.connection-timeout=60000 \ No newline at end of file