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

Allow setting JVM options of MillServerMain #577

Closed
ken1ma opened this issue Mar 28, 2019 · 1 comment · Fixed by #933
Closed

Allow setting JVM options of MillServerMain #577

ken1ma opened this issue Mar 28, 2019 · 1 comment · Fixed by #933
Milestone

Comments

@ken1ma
Copy link

ken1ma commented Mar 28, 2019

  1. We are getting StackOverflowError when compiling a case class with 35 fields and we want to increase the stack size of scalac, but there seems to be no way to do that other than setting JAVA_TOOL_OPTIONS.

    1. We are using shapeless/http4s/doobie/circe and they might be contributing to the stack consumption.
  2. It would be better if we don't need to resort back to JAVA_TOOL_OPTIONS that prints a message like Picked up JAVA_TOOL_OPTIONS: -Xss4m every time a JVM is launched.

  3. They say it's considered normal in Scala that you may have to increase JVM stack size in order to compile some kinds of especially involved or nested Scala code.

@ken1ma
Copy link
Author

ken1ma commented Aug 25, 2019

We have encountered the same symptom with pureconfig in a different project.
The project has only 12 case classes with 5 or less members for pureconfig to handle.

@lefou lefou closed this as completed in #933 Aug 6, 2020
@lefou lefou added this to the after 0.8.0 milestone Aug 6, 2020
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