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

Optimize resource usage #31

Open
max-tet opened this issue Aug 1, 2022 · 2 comments
Open

Optimize resource usage #31

max-tet opened this issue Aug 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@max-tet
Copy link

max-tet commented Aug 1, 2022

The app uses more than 250MB of memory while running. This might be fine on a homelab but I would like to run it on a cloud VM that is a little more resource constrained. Any chance to get the resource usage down a bit?

@bayang
Copy link
Owner

bayang commented Aug 7, 2022

Hi

actually I'm already pretty happy to run with only 250MB on a jvm app 😃

If you really want to try and force it to use less memory you can have a look at the -Xmx JVM flag if you use the JAR

it is explained in the accepted answer here : https://stackoverflow.com/questions/14763079/what-are-the-xms-and-xmx-parameters-when-starting-jvm

If you don't use the JAR you can set the -Xmx through the JAVA_TOOL_OPTIONS env variable

see here : https://stackoverflow.com/questions/28327620/difference-between-java-options-java-tool-options-and-java-opts

@max-tet
Copy link
Author

max-tet commented Aug 7, 2022

Thanks, I'll experiment with these settings a bit!

@bayang bayang added waiting feedback Further information is requested enhancement New feature or request and removed waiting feedback Further information is requested labels Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants