07:53:14 hello all, how to limit ARC size to 64GB in smartos? 07:55:28 and I hit an issue that sys is used about 65%, usr just used 5%, and idle is about 20% ; how to find / check who/which sys process is eating the CPU? any tools to diag it? best wishes. 14:45:53 tozhu: sys is time spent in kernel and includes time spent there by normal processes. lots of tools for profiling activity. lockstat & dtrace most notably. 20:59:02 Hello. I am playing with migrating a few VM's over to SmartOS. One of the VM's is a Debian server that hosts my kids Minecraft world. I decided to try and get this working in base-64 imgage. It creates just fine, I log in as root using zlogin. I make sure everything is up to date and install tmux and OpenJDK21. Then I tried to run the same jar file I was running on Debian. Is there a trick 20:59:05 to getting java working in SmartOS? Any dependencies that I might need that I am forgetting? Running Java --version shows it's installed and finds the path after installing the pkgin OpenJDK21 package. I'm sure I'm doing something noobish. 20:59:43 are you getting an error? 20:59:51 Nope, just hangs. 21:00:48 kahlemt: Is this an LX zone? 21:00:53 No. 21:00:57 had to ask. 21:01:12 It's the base-64 smartos smartmachine or whatever that's called, 21:01:14 if you're using the pkgsrc java, it should pull in any dependencies it needs... i've not really messed with minecraft, so not sure if it's doign anything goofy or not 21:01:15 Oh. 21:01:19 I'm not sure what to call that actually. 21:01:31 Yes... actually there's an open bug... gimme a sec. 21:01:32 The one that is smartos running inside of smartos. :) 21:01:50 I had a recent minecraft server running on openindiana and had to dink a bit with the java flags 21:02:23 Okay... so you SHOULD be grabbing your Java from pkgsrc. 21:02:29 I was afraid I came to the wrong place. But this is kinda what I was suspecting. Running a Java server is dead easy. 21:02:47 And the bug I'm thinking is for OmniOS. 21:03:09 Ah. Ok. I can do that dan. The one provide by pkgin is not the one to run then. Is that for every version of Java? These arn't maintained? 21:03:41 pkgin == pkgsrc. 21:03:52 Oh. I see. 21:04:03 That is the one I am grabbing. 21:04:12 You might need to update the version of pkgsrc you're one. What does /etc/motd say about the zone image you're in? 21:04:39 E.g. "base-64-lts 21.4.1" ? 21:04:42 base-64-lts 23.4.0 21:05:08 I had to set -Dsun.security.pkcs11.enable-solaris=false to avoid signing breakage when it was downloading the base minecraft bit. 21:06:47 hrm.. that's interesting.. doesn't that just use libpkcs11? 21:07:09 Just tried that sommerfeld. Same thing. Just hangs on Starting net.minecraft.server.Main 21:07:51 this was with several versions of the Paper server. 21:09:19 and it was with OpenJDK 17 rather than 21 late last year. 21:10:39 Got it. Thanks for chiming in anyway. I was thinking it might have something to do with a weird flag needed for solaris. 21:12:52 I figured my Active Directory server would be the hard one to get running on SmartOS. That was pretty straight forward. bhyve seems to be working great for a simple AD auth server. 21:22:08 Ok, looks like my smartos non-global instance is running pkg_install-20211115nb1 I'm not sure if I need/can update this further. Running pkgin ug shows that everything is on the latest version. Not sure if there is another way to upgrade pkgsrc. 21:30:20 it might be worth trying openjdk 17 -- ISTR some changes between the two that seemed like could cause some things problems 21:30:41 at least that was my recollection when i was setting up tomcat to run opengrok 21:30:52 though i admit that's annoyingly vague 21:31:39 i think pkgsrc should also have openjdk 17 available as well 21:33:34 Doesn't work. At least I get an error. Looks like this version of Minecraft was compiled by "a more recent version of the Java Runtime (class file version 65.0) bla bla bla... This version of Minecraft must have version 21 it looks like. 21:37:17 Looks like there are 5 CVE's for 21.0.1. 21.0.2 is out now. How often are the packages updated for Java? I'm sorry I don't really understand who maintains what or how that works yet with SmartOS. Still learning. 21:38:03 I can take a look at updating them but I'm on vacation next week so it'll be a little while 21:38:49 there was definitely a few things still missing in openjdk21, so it's recommended to still use older LTS if possible, not ideal if minecraft requires 21 but we can see if newer releases help 21:39:29 and yeh the pkcs11 stuff should be fixed these days 21:39:45 Thanks. It's obviously not anything to rush. So thanks for taking a look. I'm looking at the changelog for 21.0.2 to see if I can find anything that relates to what I'm seeing. 21:42:13 See https://github.com/omniosorg/omnios-build/issues/3575 for the OpenJDK 21 vs. minecraft issue I was speaking of. 21:51:06 Thanks for that Dan. I don't think this is the same issue. I downloaded and compiled his source for the "simpler reproduction of the issue" and it succeeds on all 50 of his tests without hanging in 0m0.127s on my hardware. 21:53:51 Phew, I guess? 21:53:57 :) 22:13:10 Hmm. Perhaps jclulow's bug 3575 is related. The issue wasn't reproducible using his code, but I ran jstack against the PID running minecraft and I get the same java.lang.Thread.State: WIATING (parking) when I run it. So perhaps it's the same issue, but his hunch is wrong in terms of the code he supplied to reproduce the issue. Thanks for pointing me to this issue. Perhaps this is interesting 22:13:12 to jperkin when he looks at updating the pkgsrc package. 22:23:55 I updated bug 3575 with what I found in case it's any help. I need to go outside. Thanks for all the ideas. Have a nice day. 23:10:41 danmcd: Pretty sure it _is_ that issue 23:11:16 I bisected down to the version it was introduced, and there are a handful of changes (amongst a truly staggering number of lines of delta) that explicitly dork with the child process stuff in a way that I feel might be suspect 23:11:23 My hope is that it's not that 23:11:31 a mutex or condvar thing is broken 23:11:44 just that it's having trouble correctly noticing that a process is all done 23:12:17 The issue stands in the way of my kiddo's Minecraft server as well so I will be looking at it relatively soon 23:40:38 ah, yes, Minecraft as a mission-critical workload for illumos.. :-)