Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Setting heap memory setting in Spring boot application.  RSS feed

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , i just wanted to know how to set JVM(Heap configuration) parameters in spring boot application in order to improve my spring boot application performance.? i don't want to set while running spring boot jar in command line, i need to configure in some properties file or config file so that while starting spring boot app it should pick up those parameters. how to do that?
 
Bartender
Posts: 9493
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just create a shortcut or batch script that supplies the JVM arguments?
 
Eshwara Chaluvaiah
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Why not just create a shortcut or batch script that supplies the JVM arguments?



can't we configure in some config file or embedded server config file.?
 
Stephan van Hulst
Bartender
Posts: 9493
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know, but why would you want to do that if you can just create a batch script for each environment? Do you have a good reason not to use scripts or shortcuts?
 
Sheriff
Posts: 21464
97
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Memory settings must be applied when the JVM starts. When you use a Spring Boot config file, or configuration of the embedded server, it's already too late - the JVM has already started. Unless there's a JVM config file I don't know about, you are stuck with providing it when the JVM starts. A script file is the easiest way.
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!