Could not start a Mill server process - unused worker folders on different java versions #2134
james-s-w-clark
started this conversation in
General
Replies: 1 comment
-
Double checked, it's JVM changes that lead to the issue. Mill versions aren't the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Foreword
I don't expect this issue to be fixed - it could even be closed straight away. My goal is to have Google index some of the keywords so anyone searching for the error can see the problem and a workaround.
Logs
I've these logs for a while. I don't think it's causing problems, but it makes a bit of clutter and I found out the problem and a workaround.
Problem
in the
/out
subdirectory of a project, I see multiple worker folders:There is a mix of JVM versions used, hence the different names.
The max count is hard-coded, and I think mill can't reuse worker folders that have different JVM verisons. They still count towards the max count of parallel mill server instances however.
You could reproduce this by running 5 mill tasks simultaneously, changing to a different versions of JVM, and then running some more mill tasks.
Workaround
For each folder where the mill version doesn't match your current JVM version, delete the folder (or just delete them all, bit simpler). Mill will make new ones with the right versions and such.
Further notes
Maybe mill shouldn't count worker folders that use non-current JVM versions (or should remove them on
clean
?).I thought it's worth getting this information indexed though, as it seems fairly probably people will upgrade mill whilst working on the same project(s) and thus might come across these logs.
Beta Was this translation helpful? Give feedback.
All reactions