Closed zstyblik closed 2 years ago
I have found couple issues which point to this, Java being OOMK, could be the issue.
I have tried variations of command prefix export MALLOC_ARENA_MAX=4; export JAVA_OPTIONS='-Xms300M -Xmx300M -XX:MaxPermSize=128M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC'
but to no avail. :(
Ok, we've identified that % flow; is to blame for mishaps. I still think this request is valid since Java has no notion it's running in constrained environment. I will try to come up with MR once https://github.com/jenkinsci/nomad-plugin/pull/17, https://github.com/jenkinsci/nomad-plugin/pull/23 and https://github.com/jenkinsci/nomad-plugin/pull/24 are merged.
@zstyblik all PRs mentioned above are merged. Do you still want to submit your PR or should I close this issue?
Hello,
I'm under suspicion that Jenkins Java agent is being killed in Docker Container, although I simply cannot confirm it. This seems to be happening only with one CI job so far(luckily) which runs FB's flow. When executed in unconstrained Docker Container, however via SSH, or in VM, it runs just fine.
I did read a bit and it seems that running Java in Docker Container has its own issues. Therefore, I'm wondering whether somebody else is experience such issues.
More, I believe it would be great to provide way to pass args to Java which runs Jenkins client. Perhaps, this could be a "global" option since I don't see need to specify it per instance. I understand this will make things a bit complicated.
Thanks in advance for any feedback.