What's the size limitiation of Spring Cloud Config?What's the simplest way to print a Java array?What's the difference between @Component, @Repository & @Service annotations in Spring?Using Spring Cloud Config without Git repoSpring cloud config client properties are not getting resolvedspring config error on /envSpring Cloud Config Server not enforcing BASIC Authentication when running main()Spring profiles not ordering correctly when obtaining config from Spring Cloud Config ServerSpring Boot config Client | Rest End Point not workingSpring Config Server - resolvePlaceholders + enviroment variablesHow can I configured spring-boot-starter-data-elasticsearch 2.0.1 with es 6.2.3

Why does it seem the best way to make a living is to invest in real estate?

Shell Sort, Insertion Sort, Bubble Sort, Selection Sort Algorithms (Python)

Job interview by video at home and privacy concerns

Is there a way to remove Smite from a weapon?

Is "weekend warrior" derogatory?

Why did they use ultrafast diodes in a 50 or 60 Hz bridge?

Replace zeros in a list with last nonzero value

How to say "respectively" in German when listing (enumerating) things

Why has Speaker Pelosi been so hesitant to impeach President Trump?

Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?

Parent asking for money after moving out

How closely correlated is culture to geography?

Realistically, how much do you need to start investing?

Why is music is taught by reading sheet music?

How important is knowledge of trig identities for use in Calculus

Missing quartile in boxplot

Why does `FindFit` fail so badly in this simple case?

Is there a pattern for handling conflicting function parameters?

French license plates

Bothered by watching coworkers slacking off

Isn't the detector always measuring, and thus always collapsing the state?

Did the Soviet army intentionally send troops (e.g. penal battalions) running over minefields?

Phonetic distortion when words are borrowed among languages

Writing about real people - not giving offence



What's the size limitiation of Spring Cloud Config?


What's the simplest way to print a Java array?What's the difference between @Component, @Repository & @Service annotations in Spring?Using Spring Cloud Config without Git repoSpring cloud config client properties are not getting resolvedspring config error on /envSpring Cloud Config Server not enforcing BASIC Authentication when running main()Spring profiles not ordering correctly when obtaining config from Spring Cloud Config ServerSpring Boot config Client | Rest End Point not workingSpring Config Server - resolvePlaceholders + enviroment variablesHow can I configured spring-boot-starter-data-elasticsearch 2.0.1 with es 6.2.3






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









3















We are using Spring Boot, Spring Cloud Configurations and generate the application.yaml from an external source. This yaml file has about 53k lines of configuration and a file size of 2.7mb. Unfortunately, the spring application fails starting when connected to this config.



I managed to feed the yaml file into the Spring Cloud Config server locally and request a representation via a url like
http://localhost:8888/mybranch/myApp-application.properties.



But when I start my Spring Boot app via mvn clean spring-boot:run -Dspring-boot.run.profiles=local it stops in the middle of the boot process.



In fact it stops after fetching the yaml from the cloud config server. As you can see it takes about 2 minutes to initialize the filter 'apiKeyHeaderFilter'. But after that it stops.



 . ____ _ __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)

2019-03-28 21:06:01.264 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-03-28 21:06:05.129 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=myApp, profiles=[local], label=mybranch, version=99fd22b9273e757c2afad36deec40442c2cdb69a, state=null
2019-03-28 21:06:05.130 INFO 43213 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource name='configService', propertySources=[MapPropertySource name='configClient', MapPropertySource name='/Users/me/dev/projects/mam/repos/myApp-configs/application.yaml']
2019-03-28 21:06:10.506 INFO 43213 --- [ main] c.m.forms.application.Application : The following profiles are active: local
2019-03-28 21:08:04.864 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Initializing filter 'apiKeyHeaderFilter'
2019-03-28 21:08:04.865 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Filter 'apiKeyHeaderFilter' configured successfully


I already tried starting with the app with more heap size but same result: mvn clean spring-boot:run -Dspring-boot.run.profiles=local -Drun.jvmArguments="-Xms1024m"



Do I hit a size limitation or lines of config threshold with my setup?



Edit: Also the relevant part of myApp bootstrap.yaml looks like the following:



spring:
profiles: local
cloud:
config:
enabled: true
label: mybranch
uri: http://localhost:8888









share|improve this question


























  • Are you sure you setup config file correctly for your local env?

    – MS90
    Mar 28 at 20:47











  • Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

    – M. Schmidt
    Mar 28 at 21:47

















3















We are using Spring Boot, Spring Cloud Configurations and generate the application.yaml from an external source. This yaml file has about 53k lines of configuration and a file size of 2.7mb. Unfortunately, the spring application fails starting when connected to this config.



I managed to feed the yaml file into the Spring Cloud Config server locally and request a representation via a url like
http://localhost:8888/mybranch/myApp-application.properties.



But when I start my Spring Boot app via mvn clean spring-boot:run -Dspring-boot.run.profiles=local it stops in the middle of the boot process.



In fact it stops after fetching the yaml from the cloud config server. As you can see it takes about 2 minutes to initialize the filter 'apiKeyHeaderFilter'. But after that it stops.



 . ____ _ __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)

2019-03-28 21:06:01.264 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-03-28 21:06:05.129 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=myApp, profiles=[local], label=mybranch, version=99fd22b9273e757c2afad36deec40442c2cdb69a, state=null
2019-03-28 21:06:05.130 INFO 43213 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource name='configService', propertySources=[MapPropertySource name='configClient', MapPropertySource name='/Users/me/dev/projects/mam/repos/myApp-configs/application.yaml']
2019-03-28 21:06:10.506 INFO 43213 --- [ main] c.m.forms.application.Application : The following profiles are active: local
2019-03-28 21:08:04.864 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Initializing filter 'apiKeyHeaderFilter'
2019-03-28 21:08:04.865 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Filter 'apiKeyHeaderFilter' configured successfully


I already tried starting with the app with more heap size but same result: mvn clean spring-boot:run -Dspring-boot.run.profiles=local -Drun.jvmArguments="-Xms1024m"



Do I hit a size limitation or lines of config threshold with my setup?



Edit: Also the relevant part of myApp bootstrap.yaml looks like the following:



spring:
profiles: local
cloud:
config:
enabled: true
label: mybranch
uri: http://localhost:8888









share|improve this question


























  • Are you sure you setup config file correctly for your local env?

    – MS90
    Mar 28 at 20:47











  • Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

    – M. Schmidt
    Mar 28 at 21:47













3












3








3








We are using Spring Boot, Spring Cloud Configurations and generate the application.yaml from an external source. This yaml file has about 53k lines of configuration and a file size of 2.7mb. Unfortunately, the spring application fails starting when connected to this config.



I managed to feed the yaml file into the Spring Cloud Config server locally and request a representation via a url like
http://localhost:8888/mybranch/myApp-application.properties.



But when I start my Spring Boot app via mvn clean spring-boot:run -Dspring-boot.run.profiles=local it stops in the middle of the boot process.



In fact it stops after fetching the yaml from the cloud config server. As you can see it takes about 2 minutes to initialize the filter 'apiKeyHeaderFilter'. But after that it stops.



 . ____ _ __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)

2019-03-28 21:06:01.264 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-03-28 21:06:05.129 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=myApp, profiles=[local], label=mybranch, version=99fd22b9273e757c2afad36deec40442c2cdb69a, state=null
2019-03-28 21:06:05.130 INFO 43213 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource name='configService', propertySources=[MapPropertySource name='configClient', MapPropertySource name='/Users/me/dev/projects/mam/repos/myApp-configs/application.yaml']
2019-03-28 21:06:10.506 INFO 43213 --- [ main] c.m.forms.application.Application : The following profiles are active: local
2019-03-28 21:08:04.864 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Initializing filter 'apiKeyHeaderFilter'
2019-03-28 21:08:04.865 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Filter 'apiKeyHeaderFilter' configured successfully


I already tried starting with the app with more heap size but same result: mvn clean spring-boot:run -Dspring-boot.run.profiles=local -Drun.jvmArguments="-Xms1024m"



Do I hit a size limitation or lines of config threshold with my setup?



Edit: Also the relevant part of myApp bootstrap.yaml looks like the following:



spring:
profiles: local
cloud:
config:
enabled: true
label: mybranch
uri: http://localhost:8888









share|improve this question
















We are using Spring Boot, Spring Cloud Configurations and generate the application.yaml from an external source. This yaml file has about 53k lines of configuration and a file size of 2.7mb. Unfortunately, the spring application fails starting when connected to this config.



I managed to feed the yaml file into the Spring Cloud Config server locally and request a representation via a url like
http://localhost:8888/mybranch/myApp-application.properties.



But when I start my Spring Boot app via mvn clean spring-boot:run -Dspring-boot.run.profiles=local it stops in the middle of the boot process.



In fact it stops after fetching the yaml from the cloud config server. As you can see it takes about 2 minutes to initialize the filter 'apiKeyHeaderFilter'. But after that it stops.



 . ____ _ __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)

2019-03-28 21:06:01.264 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-03-28 21:06:05.129 INFO 43213 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=myApp, profiles=[local], label=mybranch, version=99fd22b9273e757c2afad36deec40442c2cdb69a, state=null
2019-03-28 21:06:05.130 INFO 43213 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource name='configService', propertySources=[MapPropertySource name='configClient', MapPropertySource name='/Users/me/dev/projects/mam/repos/myApp-configs/application.yaml']
2019-03-28 21:06:10.506 INFO 43213 --- [ main] c.m.forms.application.Application : The following profiles are active: local
2019-03-28 21:08:04.864 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Initializing filter 'apiKeyHeaderFilter'
2019-03-28 21:08:04.865 DEBUG 43213 --- [ost-startStop-1] c.m.m.c.a.ApiKeyHeaderFilter : Filter 'apiKeyHeaderFilter' configured successfully


I already tried starting with the app with more heap size but same result: mvn clean spring-boot:run -Dspring-boot.run.profiles=local -Drun.jvmArguments="-Xms1024m"



Do I hit a size limitation or lines of config threshold with my setup?



Edit: Also the relevant part of myApp bootstrap.yaml looks like the following:



spring:
profiles: local
cloud:
config:
enabled: true
label: mybranch
uri: http://localhost:8888






java spring-boot spring-cloud-config spring-config






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 21:45







M. Schmidt

















asked Mar 28 at 20:34









M. SchmidtM. Schmidt

184 bronze badges




184 bronze badges















  • Are you sure you setup config file correctly for your local env?

    – MS90
    Mar 28 at 20:47











  • Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

    – M. Schmidt
    Mar 28 at 21:47

















  • Are you sure you setup config file correctly for your local env?

    – MS90
    Mar 28 at 20:47











  • Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

    – M. Schmidt
    Mar 28 at 21:47
















Are you sure you setup config file correctly for your local env?

– MS90
Mar 28 at 20:47





Are you sure you setup config file correctly for your local env?

– MS90
Mar 28 at 20:47













Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

– M. Schmidt
Mar 28 at 21:47





Hi @MS90: When you say "setup config file" you probably refer to the bootstrap.yaml in the Spring Boot app, right? I am able to see the properties file via request to localhost after all. I firmly believe, the bootstrap is correct as I was able to change this to a different label and address a shorter application.yaml in a different branch. Let me edit the main post and add an extraction of the bootstrap.yaml.

– M. Schmidt
Mar 28 at 21:47












0






active

oldest

votes













Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406435%2fwhats-the-size-limitiation-of-spring-cloud-config%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406435%2fwhats-the-size-limitiation-of-spring-cloud-config%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

해남서초등학교 학교 연혁 학교 동문 외부 링크 둘러보기 메뉴북위 34° 34′ 21″ 동경 126° 35′ 50″ / 북위 34.5726385° 동경 126.5972670°  / 34.5726385; 126.5972670해남서초등학교eh