-
Notifications
You must be signed in to change notification settings - Fork 443
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
Specify default memory parameters of java_application BASH script in the build #82
Comments
Yeah, sort of. THe default is 1024M I believe. You can use the -mem option, or the -h option to see available options. Here's the spot in code: |
👍 It works! Is there any way to set that number up through my build.sbt or something like that so I don't have to specify it every time I run the packaged version? Thanks for your super fast response! |
Not yet. I'll alter this to a feature request :) |
Okay thanks! If you outline the changes necessary I might be able to figure it out and send you a pull request |
Is it a good idea that the Would this be to much magic? @jsuereth , @aparkinson |
I'm pretty nervous about that's just me though. The idea of doing magic (as long as it's configurable) is great. As you've seen, most of the work in this 0.7 has been taking the initial magic of "auto java app" and adding in configuration that was missing. So, I'd be ok adding |
I never used this option so I have no idea how people use it and if they expect that their production system will look the same. We may scope this to avoid confusion, like javaOptions in (run, Linux) |
I know in my use case our production |
Okay. Do you think scoping makes sense then? |
Scoping seems reasonable and I have no objection to it |
I'd like to re-visit this issue. As more microservice style applications are developed then having a default of Why not just lean on the default Developers need to think about the memory required for their apps. Unfortunately the current settings do little to provoke that thought in practice. |
@huntc the easiest way of doing the shell part would be to remove the @jsuereth I really would like to remove this part as it only gets more tricky with each additional request. |
+1 for removing |
FIX #82 adding the ability to specify jvm options via sbt
Apparently `sbt-native-packager` removed the `-mem` parameter with sbt/sbt-native-packager@62362c2377 - so if you look in a subscriptions-box, you see this in `/subscriptions/stdout.log`: ``` !! WARNING !! -mem option is ignored. Please use -J-Xmx and -J-Xms ``` sbt/sbt-native-packager#82 (comment)
I downloaded a sample app for the latest version of play
packaged it using debian:packageBin and then installed it in my VM with 512 megs of ram
but when I try to run it I get this
While you can specify
-mem
to the script to fix this, it'd be nice if the default configuration for memory requirements was configurable.The text was updated successfully, but these errors were encountered: