Page MenuHomePhabricator

My java tool cannot run on toolforge k8s/jdk11 due to insufficient memory
Closed, ResolvedPublicBUG REPORT

Description

My tool mw2sparql used to work under jdk8, but recently webservice started to give me warning about jdk8 deprecation. I've compiled everything using openjdk 11 and test it locally - it works ok. After that I've tried to run it via

webservice --backend=kubernetes jdk11 start '/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -Xmx2G -Xms2G -Djbo.maxpoolsize=0 -Dlogback.configurationFile=logback.xml -jar mwontop-0.2-SNAPSHOT.jar'

but https://tools.wmflabs.org/mw2sparql/sparql/ keeps responding 503
I've run

webservice migrate

and via

webservice --backend=kubernetes jdk11 shell

depending on the settings, I'm either getting OutOfMemory exception or simply "Killed"
I was trying to use -m 4G switch for webservice, but it doesn't seems to have any effect.
Probably I'm missing something simple and stupid, but cannot figure what
@Bstorm seems to be configuring new cluster, maybe you can point me in the right direction?

Event Timeline

Ghuron renamed this task from My java tool cannot run under k8s/jdk11 due to insufficient memory to My java tool cannot run on toolforge k8s/jdk11 due to insufficient memory.Mar 11 2020, 1:41 PM

Yes, thank you. Corrected title