简体   繁体   English

如何升级 spring 引导应用程序

[英]how to upgrade a spring boot application

how to upgrade a spring boot application如何升级 spring 引导应用程序

In the session management (you can do it on server level, which will be the default for all applications, or on application level, which will be for that app only), you can change default timeout, or even set 'No timeout' to disable it completely.在 session 管理中(您可以在服务器级别执行此操作,这将是所有应用程序的默认设置,或在应用程序级别执行此操作,这将仅适用于该应用程序),您可以更改默认超时,甚至将“无超时”设置为完全禁用它。

I'd not advise to completely disable, as old sessions will be gathering and storing in heap, which will result in OOM error at some point.我不建议完全禁用,因为旧会话将收集并存储在堆中,这将在某些时候导致 OOM 错误。 So set it to something quite long, eg 8 hours.因此,将其设置为相当长的时间,例如 8 小时。 Also I'd recommend to set it only on application that it is really needed, not on server level for all apps.此外,我建议仅在真正需要的应用程序上设置它,而不是在所有应用程序的服务器级别上设置它。

Similarly in Global Security > LTPA, you can increase LTPA timeout to similar value.同样,在 Global Security > LTPA 中,您可以将 LTPA 超时增加到类似的值。 Actually if users are using SPNEGO, they should be seamlessly reauthenticated when LTPA expires, but I dont know how your app will behave in that case.实际上,如果用户使用的是 SPNEGO,他们应该在 LTPA 到期时无缝地重新验证,但我不知道您的应用程序在这种情况下会如何表现。

In general, long timeouts are not recommended as they are using resources without a need and it is very inefficient.一般来说,不建议长时间超时,因为它们在不需要的情况下使用资源,而且效率非常低。 Application users should not relay on the session lasting forever.应用程序用户不应永久使用 session。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM