-
Notifications
You must be signed in to change notification settings - Fork 0
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
vmext-demo.wmflabs.org seems to die frequently #22
Comments
@vstange is it possible to add something along the lines of https://stackoverflow.com/a/13119689/9215209 as a fallback? |
sure, this needs to be set as an environment variable. so whatever calls @AndreG-P I doubt that this is spring related. More likely we have a creeping memory leak. Setting the proposed vm option for |
I figured out that I created for each CAS translation request a new translator object. That messes up the memory because the init process for the translators uses a lot of java reflections. I changed this behavior now and only use two "final" translator objects. That should solve the problem. @physikerwelt However, since we are running more often into memory problems on drmf-beta, we probably should add the suggested flag |
@vstange It's probably good to add the |
@physikerwelt If I remember it correctly, the memory issue is originated here: We can simply replace the maps with a cache map. Java 8 brings the According to our latest Skype discussion, you may don't like to use a cache at all. So I will wait for your feedback before I implement this. |
I am not entirely sure, if we talk about the same thing. Cache as something that does not need to persistent is ok. I was under the impression that we aim to cache something that needs to be in memory forever. This would not be optimal. @AndreG-P does that answer you question? |
@physikerwelt Just to make sure I understand you correctly. You want to a cache solution that survives a JVM restart, right? In that case we need a database in the background or manually read/write our maps to disks. MapDB seems to be the right option. As shown in this small code snippet, it seems to be quite easy to use with Java Maps (or other collections) //import org.mapdb.*
DB db = DBMaker.memoryDB().make();
ConcurrentMap map = db.hashMap("map").make();
map.put("something", "here"); |
According to the log file it seems to be a memory problem.
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-nio-8080-ClientPoller-1"
@vstange might that be related to the spring framework?
The text was updated successfully, but these errors were encountered: