LegendPei commented on issue #7836: URL: https://github.com/apache/incubator-seata/issues/7836#issuecomment-3658462416
> [@LegendPei](https://github.com/LegendPei) I believe that, by default, if a user hasn’t explicitly set JVM parameters (for example, -Xmx) those values should be automatically calculated from the host’s total memory. This auto-calculation should not be limited to containerized environments — it must also support virtual machines and bare‑metal (physical) deployments. seata-server.bat作为windows物理机的启动,目前只支持-Xmx2048m -Xms2048m的硬编码启动,但是要实现自动分配内存好像有点复杂困难,因为windows批处理好像没有内置命令直接获取内存总量,我想对于这一块先做支持环境变量的内存分配吧,然后做一下测试 Currently, seata-server.bat, when launched on a Windows physical machine, only supports hard-coded startup with the options -Xmx2048m and -Xms2048m. However, achieving automatic memory allocation seems somewhat complex and challenging, as Windows batch processing does not seem to have a built-in command to directly obtain the total memory. I think for this part, we should first support memory allocation using environment variables, and then conduct some testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
