Bug 193479 - building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java heap space
Summary: building java/eclipse in HEAD w/ poudriere: java.lang.OutOfMemoryError: Java ...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 09:36 UTC by Matthias Apitz
Modified: 2014-10-25 18:54 UTC (History)
2 users (show)

See Also:


Attachments
Log file of poudriere build 11-CURRENT i386 (30.52 KB, text/plain)
2014-10-24 17:17 UTC, Jimmy Kelley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Apitz 2014-09-09 09:36:10 UTC
FreeBSD vm-tiny-r269739 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r269739M:
Fri Aug 15 18:07:41 CEST 2014 guru@vm-tiny-r269739:/usr/obj/usr/src/sys/GENERIC  i386

$ LANG=C svn info
Path: .
Working Copy Root Path: /usr/ports
URL: svn://svn.freebsd.org/ports/head/java/eclipse
Relative URL: ^/head/java/eclipse
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 364388
Node Kind: directory
Schedule: normal
Last Changed Author: marino
Last Changed Rev: 361589
Last Changed Date: 2014-07-11 23:56:01 +0200 (Fri, 11 Jul 2014)



I'm building ports in HEAD with poudriere; java/eclipse is failing with 
java.lang.OutOfMemoryError: Java heap space

I've already set in make.conf

MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m"

But this does not help; the VM where poudriere is running has 4 GByte
memory and 4 GByte swap space.

in loader.conf:

kern.maxdsiz="1073741824"  # in bytes 1024*1024*1024
kern.maxssiz="671088640"   # in bytes 65536*1024*10

I changed MAX_MEMORY=3 in poudriere's conf file:

# fgrep MAX_MEM /usr/local/etc/poudriere.conf
MAX_MEMORY=3

(btw: it is not visible in the log file)

and have set also in make.conf:

MAVEN_OPTS="-Xmx1792m -XX:MaxPermSize=512m"

The built stops again at the same place after ~1 hour. I'm attaching below the
first 142 lines and the last 200 lines of the log.

I run in another terminal a 'top -b -d100000 -I' to see the memory
usage in the moment of the crash. Here it is when the java proc
is still running and 2 secs later when it went away:

last pid: 92498;  load averages:  2.52,  2.38,  2.21  up 0+01:38:05    08:11:58
94 processes:  3 running, 91 sleeping
CPU: 91.7% user,  0.0% nice,  8.3% system,  0.0% interrupt,  0.0% idle
Mem: 886M Active, 2254M Inact, 266M Wired, 49M Cache, 90M Buf, 47M Free
Swap: 4096M Total, 1431M Used, 2664M Free, 34% Inuse, 28K In

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND
46713 root         26  52    0   465M   395M uwait   34:41  94.67% java
  803 guru          1  20    0 95640K 66984K select   2:18   2.49% Xorg
  868 guru          4  20    0   255M 54632K select   0:17   1.19% kwin
...

last pid: 92561;  load averages:  2.52,  2.38,  2.21  up 0+01:38:07    08:12:00
94 processes:  4 running, 90 sleeping
CPU: 73.6% user,  0.0% nice, 17.1% system,  0.0% interrupt,  9.3% idle
Mem: 502M Active, 2254M Inact, 288M Wired, 49M Cache, 113M Buf, 408M Free
Swap: 4096M Total, 1431M Used, 2664M Free, 34% Inuse, 144K In

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND
  803 guru          1  20    0 95640K 66984K select   2:18   2.12% Xorg
  868 guru          4  20    0   255M 54632K RUN      0:17   0.62% kwin
 1216 root          1  52    0 10436K  1024K wait     0:05   0.34% sh
...

as you can see there is pretty much free RAM and swap space in the
system; the limit must be soemthing in the jail or the JVM itself.

folow head and tail of the build log:

====>> Building java/eclipse
build started at Sun Aug 24 07:08:30 CEST 2014
port directory: /usr/ports/java/eclipse
building for: FreeBSD freebsd-head-ports-head-job-01 11.0-CURRENT FreeBSD 11.0-CURRENT i386
maintained by: ljboiler@gmail.com
Makefile ident:      $FreeBSD: head/java/eclipse/Makefile 361589 2014-07-11 21:56:01Z marino $
Poudriere version: 3.1-pre
Host OSVERSION: 1100028
Jail OSVERSION: 1100028

---Begin Environment---
OSVERSION=1100028
UNAME_v=FreeBSD 11.0-CURRENT
UNAME_r=11.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=xterm
MASTERMNT=/usr/local/poudriere/data/.m/freebsd-head-ports-head/ref
PKG_EXT=txz
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNG=1
PKGNAME=eclipse-4.3.2_1
PKG_DELETE=/usr/local/sbin/pkg-static delete -y -f
PKG_ADD=/usr/local/sbin/pkg-static add
OLDPWD=/root
PWD=/usr/local/poudriere/data/.m/freebsd-head-ports-head/ref/.p/pool
MASTERNAME=freebsd-head-ports-head
USER=root
HOME=/root
POUDRIERE_VERSION=3.1-pre
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
PKG_VERSION=/.p/pkg-static version
PKG_BIN=/usr/local/sbin/pkg-static
---End Environment---

---Begin OPTIONS List---
===> The following configuration options are available for eclipse-4.3.2_1:
====> Options available for the single INSTALLPKG: you have to select exactly one of them
     FULL_SDK=on: Full SDK (JDT, PDE, source, API docs)
     PLATFORM_SDK=off: Platform with source, API Docs (no Java tools)
     PLATFORM=off: Platform only (no Java tools, no source or docs)
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/java/eclipse/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/eclipse/work  HOME=/wrkdirs/usr/ports/java/eclipse/work TMPDIR="/tmp" XDG_DATA_HOME=/wrkdirs/usr/ports/java/eclipse/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/eclipse/work  HOME=/wrkdirs/usr/ports/java/eclipse/work TMPDIR="/tmp" MAKE=gmake PKG_CONFIG=pkgconf SHELL=/bin/sh CONFIG_SHELL=/bin/sh ESD_CONFIG="/usr/local/bin/esd-config"
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/java/eclipse/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/eclipse/work  HOME=/wrkdirs/usr/ports/java/eclipse/work TMPDIR="/tmp" XDG_DATA_HOME=/wrkdirs/usr/ports/java/eclipse/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/eclipse/work  HOME=/wrkdirs/usr/ports/java/eclipse/work TMPDIR="/tmp" NO_PIE=yes SHELL=/bin/sh NO_LINT=YES ESD_CONFIG="/usr/local/bin/esd-config" PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="clang" CFLAGS="-O2 -pipe  -fno-strict-aliasing"  CPP="clang-cpp" CPPFLAGS=""  LDFLAGS="" LIBS=""  CXX="clang++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -o root -g wheel -m 555"  BSD_INSTALL_LIB="install  -s -o root -g wheel -m 444"  BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555"  BSD_INSTALL_DATA="install  -o root -g wheel -m 444"  BSD_INSTALL_MAN="install  -o root -g wheel -m 444"
--End MAKE_ENV--

--PLIST_SUB--
JAVASHAREDIR="share/java"
JAVAJARDIR="share/java/classes"
OSREL=11.0
PREFIX=%D
LOCALBASE=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
PORTDATA=""
LIB32DIR=lib
GTK2_VERSION="2.10.0"
GTK3_VERSION="3.0.0"
DOCSDIR="share/doc/eclipse"
EXAMPLESDIR="share/examples/eclipse"
DATADIR="share/eclipse"
WWWDIR="www/eclipse"
ETCDIR="etc/eclipse"
--End PLIST_SUB--

--SUB_LIST--
JAVASHAREDIR="/usr/local/share/java"
JAVAJARDIR="/usr/local/share/java/classes"
JAVALIBDIR="/usr/local/share/java/classes"
JAVA_VERSION="1.7"
JAVA_VENDOR="openjdk"
JAVA_OS="native"
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/eclipse
DOCSDIR=/usr/local/share/doc/eclipse
EXAMPLESDIR=/usr/local/share/examples/eclipse
WWWDIR=/usr/local/www/eclipse
ETCDIR=/usr/local/etc/eclipse
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/freebsd-head-make.conf ####
WITH_PKGNG=yes       # Only required for versions before 10.0
CC=clang             # Highly recommended over GCC,
CXX=clang++          # but only needed for 8.X and 9.X
CPP=clang-cpp        # since it's the default in 10.0
MASTER_SITE_BACKUP?= \
http://ftp2.us.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR/}
#
# from aurora:
#
# WITHOUT_PKGNG=yes
WITH_NEW_XORG=yes
WITHOUT_HAL=yes
#
# NO_IGNORE=yes
# From: Chris Rees <crees@bayofrum.net>
# CC: freebsd-ports@freebsd.org
# Date: Sat, 23 Aug 2014 14:19:24 +0100
# better is:
DISABLE_LICENSES=yes
#
#
# added 20130612 guru
# CPUTYPE?=pentium3
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
#
# not used until now:
# FETCH_BEFORE_ARGS=-p4 -T 10
# OPTIONS_UNSET= DEBUG HELP STATIC GNUTLS DOCS EXAMPLES IPV6 \
#            MANPAGES PTH IDN LIBIDN NLS DBUS SOUND ALSA PULSEAUDIO \
#            DOCBOOK CUPS TESTS HTMLDOCS BONJOUR GSSAPI APIDOCS
MAVEN_OPTS="-Xmx1792m -XX:MaxPermSize=512m"
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
=======================<phase: check-sanity   >============================

...


	LogHelper.log(result);
	^^^^^^^^^
Discouraged access: The type LogHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[77] 
	LogHelper.log(result);
	^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method log(IStatus) from the type LogHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[169] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^
Discouraged access: The type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[169] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getService(BundleContext, String) from the type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[170] 
	PackageAdmin packageAdmin = (PackageAdmin) ServiceHelper.getService(Activator.getBundleContext(), PackageAdmin.class.getName());
	                                           ^^^^^^^^^^^^^
Discouraged access: The type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[170] 
	PackageAdmin packageAdmin = (PackageAdmin) ServiceHelper.getService(Activator.getBundleContext(), PackageAdmin.class.getName());
	                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getService(BundleContext, String) from the type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[193] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^
Discouraged access: The type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[193] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getService(BundleContext, String) from the type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[206] 
	if (ImportPackageSpecification.RESOLUTION_OPTIONAL.equals(((ImportPackageSpecification) leafConstraints[i]).getDirective(Constants.RESOLUTION_DIRECTIVE)))
	                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The type Constants is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[208] 
	if (ImportPackageSpecification.RESOLUTION_DYNAMIC.equals(((ImportPackageSpecification) leafConstraints[i]).getDirective(Constants.RESOLUTION_DIRECTIVE)))
	                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The type Constants is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[224] 
	String generalMessage = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED, description.getLocation());
	                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The type EclipseAdaptorMsg is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[224] 
	String generalMessage = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED, description.getLocation());
	                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The field ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED from the type EclipseAdaptorMsg is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[227] 
	String message = generalMessage + " Reason: " + MessageHelper.getResolutionFailureMessage((VersionConstraint) inner.next()); //$NON-NLS-1$
	                                                ^^^^^^^^^^^^^
Discouraged access: The type MessageHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[227] 
	String message = generalMessage + " Reason: " + MessageHelper.getResolutionFailureMessage((VersionConstraint) inner.next()); //$NON-NLS-1$
	                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getResolutionFailureMessage(VersionConstraint) from the type MessageHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[239] 
	String generalMessage = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED, bundle);
	                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The type EclipseAdaptorMsg is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[239] 
	String generalMessage = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED, bundle);
	                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The field ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED from the type EclipseAdaptorMsg is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[248] 
	allProblems.add(createError(generalMessage + " Reason: " + MessageHelper.getResolutionFailureMessage(unsatisfied[j]))); //$NON-NLS-1$
	                                                           ^^^^^^^^^^^^^
Discouraged access: The type MessageHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[248] 
	allProblems.add(createError(generalMessage + " Reason: " + MessageHelper.getResolutionFailureMessage(unsatisfied[j]))); //$NON-NLS-1$
	                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getResolutionFailureMessage(VersionConstraint) from the type MessageHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.framework/bundles/org.eclipse.osgi/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[346] 
	MigrationWizard wizardPage = new MigrationWizard(profile, Collections.<IInstallableUnit> emptyList(), new URI[0], false);
	^^^^^^^^^^^^^^^
Discouraged access: The type MigrationWizard is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[346] 
	MigrationWizard wizardPage = new MigrationWizard(profile, Collections.<IInstallableUnit> emptyList(), new URI[0], false);
	                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The constructor MigrationWizard(IProfile, Collection<IInstallableUnit>, URI[], boolean) is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[346] 
	MigrationWizard wizardPage = new MigrationWizard(profile, Collections.<IInstallableUnit> emptyList(), new URI[0], false);
	                                 ^^^^^^^^^^^^^^^
Discouraged access: The type MigrationWizard is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[348] 
	wizardPage.rememberCancellationDecision(cancelAnswer);
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method rememberCancellationDecision(int) from the type MigrationWizard is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[409] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^
Discouraged access: The type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[409] 
	PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
	                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method getService(BundleContext, String) from the type ServiceHelper is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[448] 
	migrationSupport.performMigration(agent, reg, profile);
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method performMigration(IProvisioningAgent, IProfileRegistry, IProfile) from the type MigrationSupport is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java:[461] 
	new MigrationWizardTestHelper().rememberMigrationCompleted();
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The method rememberMigrationCompleted() from the type MigrationSupport is not accessible due to restriction on classpath entry /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/target/classes
36 problems (36 warnings)
[INFO] 
[INFO] --- tycho-eclipserun-plugin:0.19.0:eclipse-run (default) @ org.eclipse.equinox.p2.tests.verifier ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ org.eclipse.equinox.p2.tests.verifier ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/src/test/resources
[INFO] 
[INFO] --- tycho-source-plugin:0.19.0:plugin-source (plugin-source) @ org.eclipse.equinox.p2.tests.verifier ---
[WARNING] bundle localization file /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/plugin.properties not found
[WARNING] Bundle-Vendor header not found in /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/META-INF/MANIFEST.MF, fallback to 'unknown' for source bundle
[INFO] Building jar: /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/target/org.eclipse.equinox.p2.tests.verifier-1.0.100-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:package-plugin (default-package-plugin) @ org.eclipse.equinox.p2.tests.verifier ---
[WARNING] /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/build.properties: bin.includes value(s) [bin/] do not match any files.
[INFO] Building jar: /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/target/org.eclipse.equinox.p2.tests.verifier-1.0.100-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.19.0:p2-metadata-default (default-p2-metadata-default) @ org.eclipse.equinox.p2.tests.verifier ---
[INFO] No baseline version MavenProject: org.eclipse.equinox:org.eclipse.equinox.p2.tests.verifier:1.0.100-SNAPSHOT @ /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests.verifier/pom.xml
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.equinox.p2.tests 1.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.eclipse.equinox.p2.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ org.eclipse.equinox.p2.tests ---
[INFO] The project's OSGi version is 1.5.0.v20140824-0512
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ org.eclipse.equinox.p2.tests ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ org.eclipse.equinox.p2.tests ---
[INFO] 
[INFO] --- eclipse-cbi-plugin:1.0.4:generate-api-build-xml (default) @ org.eclipse.equinox.p2.tests ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ org.eclipse.equinox.p2.tests ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/saveproperties
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (filter-resources) @ org.eclipse.equinox.p2.tests ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/saveproperties
[INFO] 
[INFO] --- tycho-compiler-plugin:0.19.0:compile (default-compile) @ org.eclipse.equinox.p2.tests ---
[INFO] Compiling 512 source files to /wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-4.3.2/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/target/classes
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2367)
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
	at java.lang.StringBuffer.append(StringBuffer.java:237)
	at java.io.StringWriter.write(StringWriter.java:112)
	at java.io.PrintWriter.write(PrintWriter.java:456)
	at java.io.PrintWriter.write(PrintWriter.java:473)
	at java.io.PrintWriter.print(PrintWriter.java:603)
	at java.io.PrintWriter.println(PrintWriter.java:739)
	at org.eclipse.jdt.internal.compiler.batch.Main$Logger.printlnErr(Main.java:1121)
	at org.eclipse.jdt.internal.compiler.batch.Main$Logger.logProblem(Main.java:788)
	at org.eclipse.jdt.internal.compiler.batch.Main$Logger.logProblems(Main.java:809)
	at org.eclipse.jdt.internal.compiler.batch.Main$3.acceptResult(Main.java:2962)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:510)
	at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4099)
	at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1689)
	at org.eclipse.tycho.compiler.jdt.JDTCompiler.compileInProcess(JDTCompiler.java:348)
	at org.eclipse.tycho.compiler.jdt.JDTCompiler.performCompile(JDTCompiler.java:109)
	at copied.org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:424)
	at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.execute(AbstractOsgiCompilerMojo.java:237)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
[ERROR] Java heap space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
*** Error code 1

Stop.
make: stopped in /usr/ports/java/eclipse
====>> Cleaning up wrkdir
===>  Cleaning for eclipse-4.3.2_1
build of /usr/ports/java/eclipse ended at Sun Aug 24 08:12:13 CEST 2014
build time: 01:03:43
!!! build failure encountered !!!
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-10-20 01:35:11 UTC
Notify maintainer.
Comment 2 Jimmy Kelley 2014-10-24 17:17:12 UTC
Created attachment 148621 [details]
Log file of poudriere build 11-CURRENT i386

On machine upgraded via source from 10.0-RELEASE amd64 to -CURRENT amd64, then freshly created poudriere 11-CURRENT i386 jail from svn, and finally bulk build of java/eclipse port.  No build errors.
Comment 3 Jimmy Kelley 2014-10-24 17:33:54 UTC
Unfortunately, there is nothing in place for a port to tell a build system (such as poudriere) about the memory or disk space requirements that the port has.
From my work on actually creating and testing this port, and if you are using the poudriere TMPFS=yes option (you don't say, but I believe it is pretty much the default), your 4G ram/ 4G swap machine isn't big enough;  the WRKDIR space needed for the Eclipse port is just over 6G, which is going to leave you with about 2G for the kernel, poudriere, and the JVM that's doing the actual build.  If you want to use the TMPFS option, I would add 2G to either the machine ram or swap space.
Comment 4 Matthias Apitz 2014-10-24 18:49:46 UTC
as you can see in the original posting of the bug: when the JVM stops with
some out of mem message, the host system has GBytes of free RAM  and SWAP
space:

last pid: 92498;  load averages:  2.52,  2.38,  2.21  up 0+01:38:05    08:11:58
94 processes:  3 running, 91 sleeping
CPU: 91.7% user,  0.0% nice,  8.3% system,  0.0% interrupt,  0.0% idle
Mem: 886M Active, 2254M Inact, 266M Wired, 49M Cache, 90M Buf, 47M Free
Swap: 4096M Total, 1431M Used, 2664M Free, 34% Inuse, 28K In

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND
46713 root         26  52    0   465M   395M uwait   34:41  94.67% java
  803 guru          1  20    0 95640K 66984K select   2:18   2.49% Xorg
  868 guru          4  20    0   255M 54632K select   0:17   1.19% kwin
Comment 5 Matthias Apitz 2014-10-25 18:54:32 UTC
I was able today to build java/eclipse with poudriere in a VM with:

4 GByte RAM
6 GByte SWAP files

and the following parameters.

/boot/loader.conf:

kern.maxdsiz="1073741824"  # in bytes 1024*1024*1024
kern.maxssiz="671088640"   # in bytes 65536*1024*10
kern.maxswzone="72351744"  # double of default 36.175.872

/usr/local/etc/poudriere.conf:

export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=256m'
export JAVA_OPTS='-Xms512m -Xmx1024m'

It took around ~52 minutes to build and I think the essential is the memory/swap
in the last phase of the building, and esp. to unlimit the JVM (per default it
seems to be limited to 512 MByte).

Maybe we should adjust the above *_OPTS value in the ports Makefile.