From 69fd535f95e0389af79fa3e7dc7a67bcc0fa9515 Mon Sep 17 00:00:00 2001 From: Abhishek Patil Date: Mon, 10 May 2021 18:05:01 +0530 Subject: [PATCH 1/4] Adding common.properties --- src/main/resources/common.properties | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/main/resources/common.properties diff --git a/src/main/resources/common.properties b/src/main/resources/common.properties new file mode 100644 index 00000000..42378d89 --- /dev/null +++ b/src/main/resources/common.properties @@ -0,0 +1,2 @@ +#Enable tomcat metrics +server.tomcat.mbeanregistry.enabled=true \ No newline at end of file -- GitLab From b9e00d80a7dc2ac501266cc8bc1ede7d7e52e057 Mon Sep 17 00:00:00 2001 From: Abhishek Patil Date: Mon, 17 May 2021 17:59:33 +0530 Subject: [PATCH 2/4] Incorporated review comments --- src/main/resources/common.properties | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/main/resources/common.properties b/src/main/resources/common.properties index 42378d89..01e0174b 100644 --- a/src/main/resources/common.properties +++ b/src/main/resources/common.properties @@ -1,2 +1,24 @@ +# Copyright © Microsoft Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This file is place holder for all the common configuration across services. The properties +# which are common across all services can be placed here. +# +# In order to use the properties in this file (i.e., common.properties) in any service, configure +# the environment variable SPRING_CONFIG_NAME = common,application in that service. Doing this will +# configure the service to use properties from this file along with application.properties of that service. + + #Enable tomcat metrics server.tomcat.mbeanregistry.enabled=true \ No newline at end of file -- GitLab From 770204ccd736714c09975a8046cf95841c33c8fb Mon Sep 17 00:00:00 2001 From: Abhishek Patil Date: Wed, 19 May 2021 19:41:31 +0530 Subject: [PATCH 3/4] Adding default tomcat threads configuration --- src/main/resources/common.properties | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/common.properties b/src/main/resources/common.properties index 01e0174b..1e9185df 100644 --- a/src/main/resources/common.properties +++ b/src/main/resources/common.properties @@ -21,4 +21,8 @@ #Enable tomcat metrics -server.tomcat.mbeanregistry.enabled=true \ No newline at end of file +server.tomcat.mbeanregistry.enabled=true + +#Tomcat threads configuration +server.tomcat.max-threads=400 +server.tomcat.min-spare-threads=200 \ No newline at end of file -- GitLab From 0007f5b28faef0b2dbff69d9f9f238fb7c74bf4f Mon Sep 17 00:00:00 2001 From: Abhishek Patil Date: Tue, 8 Jun 2021 08:40:08 +0530 Subject: [PATCH 4/4] Making tomcat config changes --- src/main/resources/common.properties | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/common.properties b/src/main/resources/common.properties index 1e9185df..91f44a4d 100644 --- a/src/main/resources/common.properties +++ b/src/main/resources/common.properties @@ -24,5 +24,4 @@ server.tomcat.mbeanregistry.enabled=true #Tomcat threads configuration -server.tomcat.max-threads=400 -server.tomcat.min-spare-threads=200 \ No newline at end of file +server.tomcat.min-spare-threads=100 \ No newline at end of file -- GitLab