-
Notifications
You must be signed in to change notification settings - Fork 74
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
What is the correct way to increase JVM memory resource #5370
Comments
I think changes to ConfigOptions.asciidoc only get picked up at build time. There are a set of conf files under
|
Thanks Brian, I had a feeling that a build might be involved. We are currently running off an ami you suggested a couple of months back, and its now going quite well. I wasn't sure of the format, and had seen a suggestion that some years go the option to do something similar in conf/hoot.json had been removed, so hadn't realised there might be another way. The bad news is that this appears to have had no effect. I've restarted tomcat, but the -Xmx value remains unchanged at 2048M. Mike |
I believe that when the Hoot command process accesses JNI that is a separate jvm from the one used by tomcat. The conf file is passed as an argument to specific hoot commands called from the web services, where the params will be read to override the defaults defined in ConfigOptions.asciidoc. What hoot command are you running? I don't have first hand experience with the JOSM validation integration, but digging around it seems like only the I don't believe the validate command is hooked up to run after any conflate calls from the Web UI. You'd have to invoke it directly from the command line and if that's the case you can specify values for those params:
p.s. Are you actually seeing java out-of-memory errors? |
@marblerun This is simply a warning that you are using more than the 95% threshold of total physical memory available. It states that Hootenanny is using 22% of it and everything else (i.e. OS and other running programs) are using the remaining 73%+. It doesn't have anything to do with the JNI memory.
That warning doesn't affect the output or Hootenanny's ability to perform correctly, it just indicates that the physical machine that Hootenanny is running on is close to running out of memory. It is possible that since you are in a docker container there may have been some limits you've put on the amount of memory the docker container has access to, though probably not because it isn't something that the "default nightly docker container" does by default. There is a utility that we've included in Hootenanny that helps us view the memory usage of Hootenanny as it is running. It is found at
Then run your Hootenanny command and it will monitor the memory usage of the executable and will show a graph of memory usage after execution is complete. |
Hi,
Hopefully a simple question. I'd like to at least double the existing values for jni.initial.memory and jni.max.memory, and can see that the expected update method is to edit ConfigOptions.asciidoc.
That seems fairly clear, what isn't is what to do next. I'm hoping that I edit the "Default Value" for both, but is there a process required to generate the corresponding json file, or is this just automatic. Just restarting tomcat isn't enough, so I assume I'm missing something here.
Kind regards,
Mike
The text was updated successfully, but these errors were encountered: