Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jvm-opts not working with server mode. #1908

Closed
jilen opened this issue Jun 28, 2022 · 2 comments · Fixed by #1929
Closed

jvm-opts not working with server mode. #1908

jilen opened this issue Jun 28, 2022 · 2 comments · Fixed by #1929
Milestone

Comments

@jilen
Copy link
Contributor

jilen commented Jun 28, 2022

Options defined in .mill-jvm-opts not picked unlsess --no-server is specified.

macro expansion or shapeless based staff requires large stack size. But set -Xss in .mill-jvm-opts not working.

@lefou
Copy link
Member

lefou commented Jun 29, 2022

Do you have a small reproducer for this, by any chance? Or an idea of some example of a code snippet known to need a high -Xss setting?

@jilen
Copy link
Contributor Author

jilen commented Jun 29, 2022

import java.lang.management._
val runtimeMxBean = ManagementFactory.getRuntimeMXBean()
val arguments = runtimeMxBean.getInputArguments()

I tried print the vm args in the ZincWorkImpl using java management api. And the options defined .mill-jvm-opts only seen while --no-server specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants