arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26609cs.SE
收藏

软件栈升级中的能量感知决策

Energy-Aware Decision Making in Software Stack Upgrades

Eastern Switzerland University of Applied Sciences (OST)(东瑞士应用科学大学);Zurich University of Applied Sciences (ZHAW)(苏黎世应用科学大学)

Mirko Stocker, Michael Wahler

AI总结:

提出一种系统方法,通过自动化基准测试评估Spring Boot和JVM版本组合对应用能耗的影响,发现升级可显著改变能耗,为软件维护决策提供依据。

摘要:

软件栈升级是软件维护和演进的常规部分,通常出于改进性能、稳定性或功能性的动机。然而,它们对能源消耗的影响——这是追求可持续发展的组织日益关注的问题——仍然知之甚少。本文提出了一种系统方法,用于测量核心软件栈组件(如Spring Boot和Java虚拟机(JVM))的不同版本如何影响应用程序的能源消耗。我们的方法通过自动化基准测试评估框架版本、运行时版本和执行平台的组合。通过基于Spring Petclinic REST应用程序的案例研究,我们表明,不同Spring Boot和JVM版本之间的能源消耗差异很大,在某些情况下会产生意外的回归。值得注意的是,较新的JVM版本和虚拟线程(在Java 21和23中引入)在不更改应用程序的情况下产生了显著的节能效果。这些结果表明,软件升级可以显著影响能源使用,并且测量能源消耗为软件维护和演进中的决策提供了有价值的证据。

英文摘要:

Software stack upgrades are a routine part of software maintenance and evolution, typically motivated by improved performance, stability, or functionality. Yet their impact on energy consumption - a growing concern for organizations pursuing sustainability - remains poorly understood. This paper presents a systematic method for measuring how different versions of core software stack components, such as Spring Boot and the Java Virtual Machine (JVM), influence the energy consumption of applications. Our approach evaluates combinations of framework versions, runtime versions, and execution platforms through automated benchmarking. Using a case study based on the Spring Petclinic REST application, we show that energy consumption varies substantially across Spring Boot and JVM versions, in some cases producing unexpected regressions. Notably, newer JVM releases and virtual threads (introduced in Java 21 and 23) yielded significant energy savings without requiring application changes. These results demonstrate that software upgrades can meaningfully affect energy usage and that measuring energy consumption provides valuable evidence for decision making in software maintenance and evolution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑