Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2020 10:03:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247997] databases/cassandra3: fix build on aarch64 (Java OutOfMemory during build)
Message-ID:  <bug-247997-7788-OcajPRzCi7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-247997-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-247997-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247997

Ronald Klop <ronald-lists@klop.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #216466|0                           |1
        is obsolete|                            |

--- Comment #4 from Ronald Klop <ronald-lists@klop.ws> ---
Created attachment 216511
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216511&action=
=3Dedit
set max mem to 512 MB (svn diff)

Used the ANT_OPTS=3D"$ANT_OPTS ..." construction.

Did some more testing with "java -XX:+PrintFlagsFinal -version | grep MaxHe=
ap".
On my RPI3 with 1 GB RAM Java uses a default mx of 256MB which is too small.
On my amd64 VM with 5 GB RAM Java uses an mx of 1270MB which is plenty.

Both compile perfectly with -Xmx512m.
jstat -gc shows the RPI3 does quite some GC and reaches 512MB quite often. =
The
amd64 never hits the max mem with 512 MB avail.

This is all on openjdk8.
RPI3: OpenJDK 64-Bit Zero VM (build 25.242-b07, interpreted mode)
AMD64: OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

So I think this is ready to be committed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247997-7788-OcajPRzCi7>