From 02cd820b69e5f800306d21eddfd1435fddab9865 Mon Sep 17 00:00:00 2001 From: Dingli Zhang Date: Tue, 30 Apr 2024 08:05:27 +0800 Subject: [PATCH] Add parameter to avoid oom exceptions for riscv64 --- flume.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flume.spec b/flume.spec index 8e275c6..b557cb8 100644 --- a/flume.spec +++ b/flume.spec @@ -1,6 +1,6 @@ Name: flume Version: 1.10.0 -Release: 2 +Release: 3 Summary: Apache Flume is a distributed, reliable, and availble service for efficiently collecting, aggregating, and moving large amounts of log data. License: Public Domain and MIT and Apache 2.0 @@ -49,6 +49,9 @@ find -name "*.cmd" -delete # for javadoc encoding export LC_ALL=en_US.UTF-8 +%if "%{_arch}" == "riscv64" +export JAVA_TOOL_OPTIONS="-Xmx4096m" +%endif mvn package -DskipTests -Pdist -Dtar %install @@ -97,6 +100,9 @@ popd %dir %{_javadir}/%{name} %changelog +* Fri Apr 19 2024 Dingli Zhang - 1.10.0-3 +- Add parameter to avoid oom exceptions for riscv64 + * Mon Aug 22 2022 yinyongkang - 1.10.0-2 - Type:CVE - ID:CVE-2022-34916 -- Gitee