-
tozhu
hello all, how to limit ARC size to 64GB in smartos?
-
tozhu
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.
-
sommerfeld
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.
-
kahlemt
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
-
kahlemt
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.
-
jbk
are you getting an error?
-
kahlemt
Nope, just hangs.
-
danmcd
kahlemt: Is this an LX zone?
-
kahlemt
No.
-
danmcd
had to ask.
-
kahlemt
It's the base-64 smartos smartmachine or whatever that's called,
-
jbk
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
-
danmcd
Oh.
-
kahlemt
I'm not sure what to call that actually.
-
danmcd
Yes... actually there's an open bug... gimme a sec.
-
kahlemt
The one that is smartos running inside of smartos. :)
-
sommerfeld
I had a recent minecraft server running on openindiana and had to dink a bit with the java flags
-
danmcd
Okay... so you SHOULD be grabbing your Java from pkgsrc.
-
kahlemt
I was afraid I came to the wrong place. But this is kinda what I was suspecting. Running a Java server is dead easy.
-
danmcd
And the bug I'm thinking is for OmniOS.
-
kahlemt
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?
-
danmcd
pkgin == pkgsrc.
-
kahlemt
Oh. I see.
-
kahlemt
That is the one I am grabbing.
-
danmcd
You might need to update the version of pkgsrc you're one. What does /etc/motd say about the zone image you're in?
-
danmcd
E.g. "base-64-lts 21.4.1" ?
-
kahlemt
base-64-lts 23.4.0
-
sommerfeld
I had to set -Dsun.security.pkcs11.enable-solaris=false to avoid signing breakage when it was downloading the base minecraft bit.
-
jbk
hrm.. that's interesting.. doesn't that just use libpkcs11?
-
kahlemt
Just tried that sommerfeld. Same thing. Just hangs on Starting net.minecraft.server.Main
-
sommerfeld
this was with several versions of the Paper server.
-
sommerfeld
and it was with OpenJDK 17 rather than 21 late last year.
-
kahlemt
Got it. Thanks for chiming in anyway. I was thinking it might have something to do with a weird flag needed for solaris.
-
kahlemt
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.
-
kahlemt
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.
-
jbk
it might be worth trying openjdk 17 -- ISTR some changes between the two that seemed like could cause some things problems
-
jbk
at least that was my recollection when i was setting up tomcat to run opengrok
-
jbk
though i admit that's annoyingly vague
-
jbk
i think pkgsrc should also have openjdk 17 available as well
-
kahlemt
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.
-
kahlemt
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.
-
jperkin
I can take a look at updating them but I'm on vacation next week so it'll be a little while
-
jperkin
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
-
jperkin
and yeh the pkcs11 stuff should be fixed these days
-
kahlemt
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.
-
danmcd
See
omniosorg/omnios-build #3575 for the OpenJDK 21 vs. minecraft issue I was speaking of.
-
kahlemt
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.
-
danmcd
Phew, I guess?
-
kahlemt
:)
-
kahlemt
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
-
kahlemt
to jperkin when he looks at updating the pkgsrc package.
-
kahlemt
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.
-
jclulow
danmcd: Pretty sure it _is_ that issue
-
jclulow
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
-
jclulow
My hope is that it's not that
-
jclulow
a mutex or condvar thing is broken
-
jclulow
just that it's having trouble correctly noticing that a process is all done
-
jclulow
The issue stands in the way of my kiddo's Minecraft server as well so I will be looking at it relatively soon
-
sommerfeld
ah, yes, Minecraft as a mission-critical workload for illumos.. :-)