Thank you for the suggestion Christian.
In the logs everything seems to be working just fine until this one call – which returns the error “Out of Main Memory”. However, looking at the systems logs themselves, the system reports ample memory at
that time. I’m not exactly sure when BaseX reported that error at that time.
After that initial “Out of Main Memory” error, all requests (PUT requests, simple GUI requests) fail with either:
java.lang.ArrayIndexOutOfBoundsException
-or
java.lang.NegativeArraySizeException
The only thing I can think of is that he system was reaching maximum harddisk capacity and maybe ran out of wiggle room at that point.
3:59:40.282 10.112.72.182:36826 basex-rest REQUEST [PUT] /basex/rest/psc/jqa/jqadiaries-v31-1819-11-p194.xml
13:59:43.889 10.112.72.182:36826 basex-rest 500 Out of Main Memory. 3607.46 ms
13:59:45.358 10.112.72.182:36828 basex-rest REQUEST [PUT] /basex/rest/psc/jqa/jqadiaries-v31-1819-09-p165.xml
13:59:45.746 10.112.72.182:36828 basex-rest 500 Improper use? Potential bug? Your feedback is welcome: Contact:
basex-talk@mailman.uni-konstanz.de Version: BaseX 10.4 Java: Red Hat, Inc., 11.0.16 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Free slot exceeds file offset: 49357094248 + 110461 > 49357197312
at org.basex.util.Uti14:08:00.444 10.112.72.182:37070 basex-rest 500 Improper use? Potential bug? Your feedback is welcome: Contact:
basex-talk@mailman.uni-konstanz.de Version: BaseX 10.4 Java: Red Hat, Inc., 11.0.16 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException 9.96 ms
14:08:05.549 10.112.72.182:37074 basex-rest REQUEST [PUT] /basex/rest/psc/jqa/jqadiaries-v51-1803-08-p001.xml
14:08:05.556 10.112.72.182:37074 basex-rest 500 Improper use? Potential bug? Your feedback is welcome: Contact:
basex-talk@mailman.uni-konstanz.de Version: BaseX 10.4 Java: Red Hat, Inc., 11.0.16 OS: Linux, amd64 Stack Trace: java.lang.NegativeArraySizeException: -1236248751 at org.basex.io.random.DataAccess.readBytes(DataAccess.java:196)
at org.basex.io.random.DataAccess.readToken(DataAccess.java:175) at org.basex.io.random.DataAccess.readToken(DataAccess.java:166) at org.basex.data.DiskData.txt(DiskData.java:306) at org.basex.data.DiskData.text(DiskData.java:273) at org.basex.index.value.DiskValues.key(DiskValues.java:430)
at org.basex.index.value.DiskValues.indexEntry(DiskValues.java:330) at org.basex.index.value.DiskValues.get(DiskValues.java:206) at org.basex.index.value.UpdatableDiskValues.delete(UpdatableDiskValues.java:98) at org.basex.data.Data.indexDelete(Data.java:1083)
at org.basex.data.Data.delete(Data.java:683) at org.basex.query.up.atomic.Replace.apply(Replace.java:57) at org.basex.query.up.atomic.AtomicUpdateCache.ap... 7.06 ms
14:08:10.590 10.112.72.182:370