NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bump [q] gradle on NetBSD 9.1 (amd64) with OpenJDK 11 -- does not work



Hello,
unfortunately I am not yet able to figure out what's wrong.
I think there is something wrong with OpenJDK11 port for netbsd or some OS feature that it relies on, does not work as JDK 11 expects.

I do not think there is a problem with Gradle, at all.

I have tried Gradle 6.7 and the old 5.4 and they both work with OpenJDK8 on Netbsd 9.1
However, my source code needs at least OpenJDK11, so cannot use 8.

I also tried running under root, just to see if there was something about permissions.. but no luck
I ran gradle with --no-daemon, no luck either.
I have rebuilt OpenJDK11 from pkgsrc, twice -- no luck
I have installed OpenJDK11 by pkgin from binary repo -- no luck.
I have changed my locale from C to UTF8 -- no luck.


I have been looking at the output of kdump/ktrace all day today.
Unfortunately I cannot spot anything that I could investigate further.
There are over 1mln lines  there just from  ' gradle status'.
Most are getttime calls, bunch of memory maps. Some timeouts, but I see them not just at the end of ktrace when it hangs, but also early on.

So I am at loss at the moment.



On 2020-11-22 03:02, Kamil Rytarowski wrote:
I just ran into it independently on NetBSD/amd64 current 9.99.x.

On 20.11.2020 02:59, ts1000 wrote:
Hello,
wanted to bump up my question to see if anybody could help.
Also, if I may, I wanted to ask if this group is the right question
about using NetBSD as a development environment (using OpenJDK11 in my
case). Or if there are other forums more specialized for this topic.

thank you in advance

On 2020-11-07 18:08, ts1000 wrote:
Wanted to check if anybody has gradle working with OpenJDK 11 on
OpenBSD 9.1
I cannot get it to work at all.

not even:

gradle status
  or
gradle init

I have tried going back to Gradle versions that are over 1 year old,
and still same issue

https://github.com/gradle/gradle/issues/15087


I am thinking that something might be wrong with my sysctl.conf or
login.conf or something else.
If there are suggestions on what to look for next, would very much
appreciate.


 -- my sysctl.conf --

nbsd1$ cat /etc/sysctl.conf
#!/sbin/sysctl -f
#
# $NetBSD: sysctl.conf,v 1.8 2011/09/25 21:47:22 christos Exp $
#
# sysctl(8) variables to set at boot time.

# Default on panic: dump core and reboot. See savecore(8) for
information.
# Switch this to 1 if you want to enter the kernel debugger on crashes # instead. See ddb(4) for an introduction and also try the "help" command
# at the db> prompt.
# If you understand the implication and want to change the behaviour
before
# /etc/rc.d/sysctl is run, use the kernel option DDB_ONPANIC, see
options(4).
ddb.onpanic?=0

# Default core name template:
#kern.defcorename=%n.core

# Number of kernel threads to use for NFS client
#vfs.nfs.iothreads=4

# Default tty/pty character queue sizes. Should be bumped to 32K or so if
# used in networking (ppp/pppoe)
kern.tty.qsize=32000

#v-start
kern.ipc.shmmaxpgs=32768

kern.sbmax=8388608
net.inet.tcp.sendspace=3217968
net.inet.tcp.recvspace=3217968

net.inet.tcp.init_win=10



net.inet.tcp.recvbuf_auto=1
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216


net.inet.tcp.init_win_local=10


net.inet.tcp.congctl.selected=cubic
#this is invalid    net.inet.ip.ifq.maxlen = 4096
net.inet.tcp.delack_ticks=5

kern.maxfiles = 100000
kern.maxproc = 10044
kern.posix.semmax = 10128
#v-endnbsd1$

 -- my login .conf --


staff:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R7/bin
/usr/pkg/bin /usr/pkg/sbin /usr/local/bin:\
        :umask=022:\
        :datasize-max=infinity:\
        :datasize-cur=1024M:\
        :maxproc-max=1044:\
        :maxproc-cur=1024:\
        :openfiles-cur=512:\
        :openfiles-max=104512:\
        :stacksize-cur=128M:
        :copyright=/dev/null:
        :ignorenologin:\
        :requirehome@:




 -- ulimit -a --

time          (-t seconds    ) unlimited
file          (-f blocks     ) unlimited
data          (-d kbytes     ) 1048576
stack         (-s kbytes     ) 114688
coredump      (-c blocks     ) unlimited
memory        (-m kbytes     ) 8022248
locked memory (-l kbytes     ) 2674082
thread        (-r threads    ) 1024
process       (-p processes  ) 1024
nofiles       (-n descriptors) 512
vmemory       (-v kbytes     ) unlimited
sbsize        (-b bytes      ) unlimited

-- java -version --
$ java -version
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)


Home | Main Index | Thread Index | Old Index