• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Setting heap memory setting in Spring boot application.  RSS feed

 
Greenhorn
Posts: 23
  • 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?
 
Saloon Keeper
Posts: 9239
177
  • 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: 23
  • 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
Saloon Keeper
Posts: 9239
177
  • 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: 21459
96
Chrome Eclipse IDE Java 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!