Bug 266902 - devel/spark: patch for Could not reserve enough space for 2097152KB object heap
Summary: devel/spark: patch for Could not reserve enough space for 2097152KB object heap
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2022-10-08 13:56 UTC by Martin Filla
Modified: 2024-06-13 10:45 UTC (History)
3 users (show)

See Also:


Attachments
spark.diff (895 bytes, patch)
2022-10-08 13:56 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (761 bytes, patch)
2022-10-08 21:25 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (612 bytes, patch)
2022-10-13 16:27 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (612 bytes, patch)
2022-10-13 16:31 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (728 bytes, patch)
2022-10-13 16:58 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (729 bytes, patch)
2022-10-13 17:13 UTC, Martin Filla
no flags Details | Diff
spark.diff (129.03 KB, patch)
2022-10-23 12:13 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff
spark.diff (1.14 KB, patch)
2024-05-28 18:55 UTC, Martin Filla
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2022-10-08 13:56:28 UTC
Created attachment 237154 [details]
spark.diff

Hi,
we have an issue on i386. I've added a patch and lowered the memory to 1gb for i386

=======================<phase: build          >============================
===>  Building for apache-spark-3.3.0
/bin/mkdir -p /wrkdirs/usr/ports/devel/spark/work/snappy/org/xerial/snappy/native/FreeBSD/x86
cp -f /usr/local/lib/libsnappyjava.so  /wrkdirs/usr/ports/devel/spark/work/snappy/org/xerial/snappy/native/FreeBSD/x86
cd /wrkdirs/usr/ports/devel/spark/work/spark-3.3.0 && /usr/bin/env JAVA_HOME=/usr/local/openjdk8  MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=2g" XDG_DATA_HOME=/wrkdirs/usr/ports/devel/spark/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/spark/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/spark/work/.cache  HOME=/wrkdirs/usr/ports/devel/spark/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/spark/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/spark/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INS
 TALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"  /usr/local/bin/mvn -o  -Duser.home=/wrkdirs/usr/ports/devel/spark/work  -Dmaven.repo.local=/wrkdirs/usr/ports/devel/spark/work/m2  -Dhadoop.version=3.3.4  -Pyarn -Phive -Phive-thriftserver -DskipTests  clean package
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Comment 1 Martin Filla 2022-10-08 21:25:51 UTC
Created attachment 237160 [details]
spark.diff
Comment 3 Martin Filla 2022-10-13 16:27:23 UTC
Created attachment 237270 [details]
spark.diff
Comment 4 Martin Filla 2022-10-13 16:31:40 UTC
Created attachment 237271 [details]
spark.diff
Comment 5 Martin Filla 2022-10-13 16:58:00 UTC
Created attachment 237272 [details]
spark.diff
Comment 6 Martin Filla 2022-10-13 17:13:20 UTC
Created attachment 237273 [details]
spark.diff
Comment 7 Martin Filla 2022-10-23 12:13:50 UTC
Created attachment 237556 [details]
spark.diff

I tested armv7 and marked as broken
Comment 8 Robert Clausecker freebsd_committer freebsd_triage 2023-04-08 13:32:59 UTC
There are lots of changes in your patch that substitute %%SPARC_USER%% for sparc.  Many of them do not seem to actually refer to the user but are just random matches of the string sparc.  Please check the plist and adjust if necessary.
Comment 9 Martin Filla 2024-05-28 18:55:26 UTC
Created attachment 251039 [details]
spark.diff

Hi, new better patch
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-06-13 10:45:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8022738ef798beb02ebc973326a31edd251289a4

commit 8022738ef798beb02ebc973326a31edd251289a4
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-06-13 10:44:56 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-06-13 10:44:56 +0000

    devel/spark: lowering the memory to 1gb for i386 and armv*

    PR: 266902

 devel/spark/Makefile | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)