Thank you for the follow up in regards to gradle on openjdk11 with
NetBSD 9.1
0) Running NetBSD 9.1 amd64 within Virtual Box on windows host.
Allocated to it the box 8gb and 4 cores
the underlying disk (that vbox is using is an Intel SSD)
1) following your suggestion I installed openJDK8 from binary packages
(I use pkgin)
and:
gradle status
worked with that older version of the openJDK (I tried both the most
recent gradle 6.7 and older gradle 5.4 .. both work)
2) OpenJDK11 from binary packages the above command does not work
3) OpenJDK11 from my rebuild (using pkgsrc) the above command does not
work either
it basically hangs as I described earlier, the full message dump is:
nbsd1$ gradle -d status
2020-11-21T02:11:20.275+0000 [DEBUG]
[org.gradle.internal.nativeintegration.services.NativeServices]
Native-platform is not available.
2020-11-21T02:11:20.549+0000 [INFO]
[org.gradle.internal.nativeintegration.services.NativeServices]
Initialized native services in: /home/v/.gradle/native
2020-11-21T02:11:20.623+0000 [LIFECYCLE]
[org.gradle.launcher.cli.DebugLoggerWarningAction]
#############################################################################
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
WARNING
Debug level logging will leak security sensitive information!
https://docs.gradle.org/6.7/userguide/logging.html#sec:debug_security
#############################################################################
2020-11-21T02:11:21.000+0000 [DEBUG]
[org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices]
Native-platform file system integration is not available. Continuing
with fallback.
2020-11-21T02:11:21.108+0000 [DEBUG]
[org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices]
Using Jdk7Symlink implementation as symlink.
2020-11-21T02:11:22.275+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DaemonClient] Executing build
04bc315f-ebb4-4e65-b3f9-60b4eb16d648 in daemon client {pid=6432}
2020-11-21T02:11:22.298+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP
addresses for network interface lo0
2020-11-21T02:11:22.298+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Is this a
loopback interface? true
2020-11-21T02:11:22.299+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Adding
loopback address /127.0.0.1
2020-11-21T02:11:22.299+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP
addresses for network interface wm0
2020-11-21T02:11:22.300+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Is this a
loopback interface? false
2020-11-21T02:11:22.300+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote
address /10.0.2.15
2020-11-21T02:11:22.387+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire
shared lock on daemon addresses registry.
2020-11-21T02:11:22.408+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on
daemon addresses registry.
2020-11-21T02:11:22.424+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on
daemon addresses registry.
2020-11-21T02:11:22.434+0000 [DEBUG]
[org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Getting
daemon stop events
2020-11-21T02:11:22.435+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire
shared lock on daemon addresses registry.
2020-11-21T02:11:22.435+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on
daemon addresses registry.
2020-11-21T02:11:22.435+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on
daemon addresses registry.
2020-11-21T02:11:22.441+0000 [INFO]
[org.gradle.launcher.daemon.registry.PersistentDaemonRegistry]
Removing 0 daemon stop events from registry
2020-11-21T02:11:22.448+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire
exclusive lock on daemon addresses registry.
2020-11-21T02:11:22.454+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on
daemon addresses registry.
2020-11-21T02:11:22.467+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on
daemon addresses registry.
2020-11-21T02:11:22.476+0000 [LIFECYCLE]
[org.gradle.launcher.daemon.client.DefaultDaemonConnector] Starting a
Gradle Daemon (subsequent builds will be faster)
2020-11-21T02:11:22.657+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DefaultDaemonStarter] Using daemon
args: [/usr/pkg/java/openjdk11/bin/java, --add-opens,
java.base/java.util=ALL-UNNAMED, --add-opens,
java.base/java.lang=ALL-UNNAMED, --add-opens,
java.base/java.lang.invoke=ALL-UNNAMED, --add-opens,
java.prefs/java.util.prefs=ALL-UNNAMED, -XX:MaxMetaspaceSize=256m,
-XX:+HeapDumpOnOutOfMemoryError, -Xms256m, -Xmx512m,
-Dfile.encoding=US-ASCII, -Duser.country=US, -Duser.language=en,
-Duser.variant, -cp,
/home/v/opt/gradle-6.7/lib/gradle-launcher-6.7.jar]
2020-11-21T02:11:22.692+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DefaultDaemonStarter] Starting
daemon process: workingDir = /home/v/.gradle/daemon/6.7, daemonArgs:
[/usr/pkg/java/openjdk11/bin/java, --add-opens,
java.base/java.util=ALL-UNNAMED, --add-opens,
java.base/java.lang=ALL-UNNAMED, --add-opens,
java.base/java.lang.invoke=ALL-UNNAMED, --add-opens,
java.prefs/java.util.prefs=ALL-UNNAMED, -XX:MaxMetaspaceSize=256m,
-XX:+HeapDumpOnOutOfMemoryError, -Xms256m, -Xmx512m,
-Dfile.encoding=US-ASCII, -Duser.country=US, -Duser.language=en,
-Duser.variant, -cp,
/home/v/opt/gradle-6.7/lib/gradle-launcher-6.7.jar,
org.gradle.launcher.daemon.bootstrap.GradleDaemon, 6.7]
2020-11-21T02:11:22.828+0000 [INFO]
[org.gradle.process.internal.DefaultExecHandle] Starting process
'Gradle build daemon'. Working directory: /home/v/.gradle/daemon/6.7
Command: /usr/pkg/java/openjdk11/bin/java --add-opens
java.base/java.util=ALL-UNNAMED --add-opens
java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.lang.invoke=ALL-UNNAMED --add-opens
java.prefs/java.util.prefs=ALL-UNNAMED -XX:MaxMetaspaceSize=256m
-XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m
-Dfile.encoding=US-ASCII -Duser.country=US -Duser.language=en
-Duser.variant -cp /home/v/opt/gradle-6.7/lib/gradle-launcher-6.7.jar
org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.7
2020-11-21T02:11:22.828+0000 [DEBUG]
[org.gradle.process.internal.DefaultExecHandle] Changing state to:
STARTING
2020-11-21T02:11:22.842+0000 [DEBUG]
[org.gradle.process.internal.DefaultExecHandle] Waiting until process
started: Gradle build daemon.
2020-11-21T02:11:22.968+0000 [DEBUG]
[org.gradle.process.internal.DefaultExecHandle] Changing state to:
STARTED
2020-11-21T02:11:22.972+0000 [INFO]
[org.gradle.process.internal.DefaultExecHandle] Successfully started
process 'Gradle build daemon'
2020-11-21T02:11:22.972+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DefaultDaemonStarter] Gradle daemon
process is starting. Waiting for the daemon to detach...
2020-11-21T02:11:22.979+0000 [DEBUG]
[org.gradle.process.internal.ExecHandleRunner] waiting until streams
are handled...
2020-11-21T02:11:22.980+0000 [DEBUG]
[org.gradle.launcher.daemon.bootstrap.DaemonOutputConsumer] Starting
consuming the daemon process output.
2020-11-21T02:11:29.874+0000 [DEBUG]
[org.gradle.launcher.daemon.bootstrap.DaemonOutputConsumer] daemon
out: Daemon started. About to close the streams. Daemon details:
01000439393733002461653638653637352d323865662d343335382d396665302d373065646339376161636237b2537561278045c38664d257bc5f5f120000fff000000001000000047f000001002e2f686f6d652f762f2e677261646c652f6461656d6f6e2f362e372f6461656d6f6e2d393937332e6f75742e6c6f67
2020-11-21T02:11:29.905+0000 [DEBUG]
[org.gradle.process.internal.DefaultExecHandle] Changing state to:
DETACHED
2020-11-21T02:11:29.906+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DefaultDaemonStarter] Gradle daemon
process is now detached.
2020-11-21T02:11:29.906+0000 [DEBUG]
[org.gradle.process.internal.DefaultExecHandle] Process 'Gradle build
daemon' finished with exit value 0 (state: DETACHED)
2020-11-21T02:11:29.931+0000 [INFO]
[org.gradle.launcher.daemon.client.DefaultDaemonStarter] An attempt to
start the daemon took 7.226 secs.
2020-11-21T02:11:29.943+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DefaultDaemonConnector] Started
Gradle daemon DaemonStartupInfo{pid=9973,
uid=ae68e675-28ef-4358-9fe0-70edc97aacb7,
address=[b2537561-2780-45c3-8664-d257bc5f5f12 port:65520,
addresses:[/127.0.0.1]], diagnostics={pid=9973,
daemonLog=/home/v/.gradle/daemon/6.7/daemon-9973.out.log}}
2020-11-21T02:11:29.945+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire
shared lock on daemon addresses registry.
2020-11-21T02:11:29.946+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on
daemon addresses registry.
2020-11-21T02:11:29.950+0000 [DEBUG]
[org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on
daemon addresses registry.
2020-11-21T02:11:29.953+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.TcpOutgoingConnector]
Attempting to connect to [b2537561-2780-45c3-8664-d257bc5f5f12
port:65520, addresses:[/127.0.0.1]].
2020-11-21T02:11:29.953+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Trying
to connect to address /127.0.0.1.
2020-11-21T02:11:29.980+0000 [DEBUG]
[org.gradle.internal.remote.internal.inet.TcpOutgoingConnector]
Connected to address /127.0.0.1:65520.
2020-11-21T02:11:30.132+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DaemonClient] Connected to daemon
DaemonInfo{pid=9973, address=[b2537561-2780-45c3-8664-d257bc5f5f12
port:65520, addresses:[/127.0.0.1]], state=Busy,
lastBusy=1605924689834,
context=DefaultDaemonContext[uid=ae68e675-28ef-4358-9fe0-70edc97aacb7,javaHome=/usr/pkg/java/openjdk11,daemonRegistryDir=/home/v/.gradle/daemon,pid=9973,idleTimeout=10800000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=US-ASCII,-Duser.country=US,-Duser.language=en,-Duser.variant]}.
Dispatching request Build{id=04bc315f-ebb4-4e65-b3f9-60b4eb16d648,
currentDir=/home/v/devel/mine/delme}.
2020-11-21T02:11:30.136+0000 [DEBUG]
[org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1:
dispatching class org.gradle.launcher.daemon.protocol.Build
-----
My openJDK11 version (compiled from pkgsrc)
openjdk version "11.0.8-internal" 2020-07-14
OpenJDK Runtime Environment (build
11.0.8-internal+0-adhoc.pkgsrc.openjdk-jdk11u-jdk-11.0.8-10-1)
OpenJDK 64-Bit Server VM (build
11.0.8-internal+0-adhoc.pkgsrc.openjdk-jdk11u-jdk-11.0.8-10-1, mixed
mode)
----
4) With regards to ktrace.
I do not think I am using it right, because it is not showing me
anything for the gradle's process ID
nbsd1$ ps -aux | grep java
v 6432 0.0 1.0 1716396 84416 pts/0 Il+ 2:11AM 0:18.27
/usr/pkg/java/openjdk11/bin/java -Xmx64m -Xms64m
-Dorg.gradle.appname=gradle
v 9973 0.0 1.5 1425632 120676 pts/0 Sl+ 2:11AM 0:23.22
/usr/pkg/java/openjdk11/bin/java --add-opens
java.base/java.util=ALL-UNNAMED
nbsd1$ ktrace -p 6432
shows nothing
I also traced
ktrace -i gradle status
the gradle hangs as before, and I did not see any log messages that
might be specific to ktrace