diff --git a/pom.xml b/pom.xml
index fded496aa..fcea91cf7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -88,7 +88,7 @@ under the License.
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED
-Djdk.reflect.useDirectMethodHandle=false
- -ea -Xmx6g -Xss4m ${extraJavaTestArgs}
+ -ea -Xmx4g -Xss4m ${extraJavaTestArgs}
spark-3.3-plus
spark-3.4-plus
not-needed