binhex / arch-nzbhydra2

Docker build script for Arch Linux base with NZBHydra2
GNU General Public License v3.0
6 stars 1 forks source link

Use OpenJDK J9 #5

Closed theotherp closed 5 years ago

theotherp commented 5 years ago

A while ago I updated my own container to use a different JVM which reduces memory usage. I haven't heard of any problems and haven't encountered any myself. If possible you could use that in your container. See https://github.com/theotherp/nzbhydra2/blob/master/misc/docker/Dockerfile

binhex commented 5 years ago

Thanks I will take a look

fryfrog commented 5 years ago

I just switched my native install to using jre-openjdk on Arch which is 11 and seems fine so far. Is there any special reason for 9 specifically? I peaked into binhex's container as part of deciding what to run and it was using 10.

theotherp commented 5 years ago

It's actually Java 8. The JVM implementation is called J9. See here. Java 11 with J9 should also work.

J9 is the key component to reduce memory usage.

fryfrog commented 5 years ago

I installed and switched to aur/jdk11-openj9-bin, when stopped it was at ~550MB and when started on J9 it is at ~250MB. I think the original started up around 450MB last time. Will keep an eye on it.

binhex commented 5 years ago

hows it looking @fryfrog worth moving over to?

fryfrog commented 5 years ago

I'm at ~490MB usage after running overnight, so it doesn't appear to have made a big difference to me. I'll continue to run it, but maybe I should try the 9 or 10 J9 version?

theotherp commented 5 years ago

Too bad :-/

binhex commented 5 years ago

but maybe I should try the 9 or 10 J9 version?

yeah go for it fryfrog!, im a bit busy with other stuff at the mo, so appreciate you doing the leg work.

fryfrog commented 5 years ago

There is something weird w/ the jdk9 j9 AUR package, so I'm running the jdk10. I'm 30 minutes in and at ~350MB, so not bad.

fryfrog commented 5 years ago

4 hours into aur/jdk10-openjdk-openj9-bin and I'm at 450MB.

binhex commented 5 years ago

ok i dont think its worth going any further with this guys, lets stick with what we have in place for now eh, closing off.