Spring Boot 远程垃圾回收

huangapple 未分类评论52阅读模式
英文:

Spring Boot Remote GC

问题

在运行Spring Boot应用程序时,我被告知如果不明确指定当前应用程序将在生产环境下运行,一些端口将被打开,也允许外部的人通过发出请求来启动应用程序所在机器上的GC操作。在基本的Spring Boot程序中是否可以这样做,而不需要设置任何属性?需要采取哪些措施来防止人们在您的应用程序上运行GC操作?

英文:

While running spring boot application I was told that while not precising that the current aplication is going to be working using a production environment, some ports are being opened, also allowing people to perform such actions from the outside of the code, just by making requests to start a GC on the machine where our application sits. Is it possible to do so in the basic spring boot program without any properties set up? What needs to be done take care of it and disallow people running GC on your application?

huangapple
  • 本文由 发表于 2020年5月30日 00:27:57
  • 转载请务必保留本文链接:https://java.coder-hub.com/62090521.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定