diff --git a/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/scala/org/apache/linkis/ecm/server/util/ECMUtils.scala b/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/scala/org/apache/linkis/ecm/server/util/ECMUtils.scala index 08addb94c1..2a50b40405 100644 --- a/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/scala/org/apache/linkis/ecm/server/util/ECMUtils.scala +++ b/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/scala/org/apache/linkis/ecm/server/util/ECMUtils.scala @@ -102,8 +102,7 @@ object ECMUtils extends Logging { // if enable estimate actual memory if (ECM_STIMATE_ACTUAL_MEMORY_ENABLE) { - // 90% - val totalByte = (HardwareUtils.getMaxMemory() * 0.9).asInstanceOf[Long] + val totalByte = HardwareUtils.getMaxMemory() val resultMemory = math.max(totalByte, ECM_PROTECTED_MEMORY) // max of PhysicalMemory or ECM_PROTECTED_MEMORY