‘linchangsheng’ 1 month ago
parent
commit
a64e779c37

+ 1 - 0
mall-server-api/src/main/java/com/gree/mall/manager/config/aop/MemoryMonitoringFilter.java

@@ -25,6 +25,7 @@ public class MemoryMonitoringFilter implements Filter {
         if (request instanceof HttpServletRequest) {
             String requestURI = ((HttpServletRequest) request).getRequestURI();
             System.out.println("请求接口: " + requestURI + ", 内存使用情况: " + memoryUsed + " bytes");
+            System.out.println("请求接口: " + requestURI + ", 内存使用情况: 使用前" + beforeMemory+"使用后"+afterMemory+"差值"+memoryUsed + " bytes");
         }
     }
 }