算法调整

This commit is contained in:
2025-04-29 16:46:42 +08:00
parent d683834b73
commit d35c210d9c

View File

@@ -91,7 +91,6 @@ public class ExecutionCenter extends BaseController {
* @date 2023/11/7 14:44
*/
private void dealResponse(CalculatedParam calculatedParam, LiteflowResponse liteflowResponse, String methodDescribe) {
if (liteflowResponse.isSuccess()) {
Runtime runtime = Runtime.getRuntime();
// 获取 JVM 最大可用内存(以字节为单位)
long maxMemory = runtime.maxMemory();
@@ -106,7 +105,7 @@ public class ExecutionCenter extends BaseController {
System.out.println("当前已分配的内存: " + totalMemory / (1024 * 1024) + " MB");
System.out.println("当前空闲内存: " + freeMemory / (1024 * 1024) + " MB");
System.out.println("已使用的内存: " + usedMemory / (1024 * 1024) + " MB");
if (liteflowResponse.isSuccess()) {
// 获取执行步骤列表
long allTime = 0;
Map<String, List<CmpStep>> executeSteps = liteflowResponse.getExecuteSteps();