-
Notifications
You must be signed in to change notification settings - Fork 30
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
Problem adding features to cache #89
Comments
I'm not 100% sure what's causing that error, but it's related to caching. However, it shouldn't be a fatal error, since the intended behaviour is to log that message and just not add the feature to the cache. Can you turn off caching and see how it behaves? In your config.xml ensure you have:
If that fixes it, great (as a temporary solution while I look into what's going on). If not, hopefully the catalina.out won't be quite so difficult to scan for other error messages which might indicate what's really happening. Also, what version of Java are you using? |
Thanks for the help, disabling cache seems to work although seemingly not ideal for load times. I'm considering spinning up a webserver to cache the requests as suggested by @kwilcox through Nginx. Any other performance suggestions are greatly appreciated! Versions I'm using... Please let me know if you need any other info to troubleshoot, thanks! |
In case it helps anyone else - I have also been running into this issue on the latest NcWMS2 (v2.5.2) with Java 11 as part of the latest Hyrax docker image (opendap/hyrax_ncwms:1.16.8). If I combine the information in this Stack OverFlow answer about a similar error message and quite a lot of trial and error, it looks like adding the following options to my JAVA_OPTS environment variable may be enough to resolve it:
The trick seems to be to find out the part of the error message that looks like Caveat - I am no kind of a Java expert, so please make your own evaluation of any potential security risk from adding these arguments! There's some more information on how the --add-opens flag works with recent Java versions at https://docs.oracle.com/en/java/javase/17/migrate/migrating-jdk-8-later-jdk-releases.html#GUID-7744EF96-5899-4FB2-B34E-86D49B2E89B6 |
I've stood up a NCWMS2 server based on the latest war file and am able to scroll around for a while before running into some errors that cause the data to stop loading. This works if it's the Godiva app trying to access localhost or a remote server supplying WMS calls. After this error pops up, the only solution is to restart the tomcat server. Any advice for what I'm doing wrong?
This is running on a reasonable strong AWS instance (c5.ad-2xlarge) with 8vCPUs and 16gb. I've maxed out the Java RAM to 12GB (setenv.sh attached as setenv.txt). I know WMS performance on AWS isn't as good as dedicated hardware, but I've run into similar issues trying to run a dedicated server off a 36-Xeon core Dell FX2 chassis/blade configuration.
To conserve space, I truncated the catalina.out file to what I believe the problem area is, specifically, this error
ERROR uk.ac.rdg.resc.edal.catalogue.DataCatalogue - Problem adding features to cache
is repeated about 5,000 times. I checked the content directory and nothing is being written although there is write access to the user.
Besides this problem, any other performance improvement suggestions would be greatly appreciated, thanks!
truncated_catalina.out.txt
setenv.txt
The text was updated successfully, but these errors were encountered: