mojira / arisa-kt

:robot::sparkles: Run checks and perform automated tasks in Mojira
https://bugs.mojang.com
GNU General Public License v3.0
10 stars 6 forks source link

java.lang.OutOfMemoryError: Java heap space #707

Open SPGoding opened 3 years ago

SPGoding commented 3 years ago

The Bug

13:07:17.645 [main] INFO  Arisa - [RESPONSE] [MCPE-131091] [UpdateLinked] Successful
13:09:01.804 [main] INFO  Arisa - [RESPONSE] [MCPE-43402] [UpdateLinked] Successful
13:11:39.466 [main] INFO  Arisa - [RESPONSE] [MCPE-40709] [UpdateLinked] Successful
13:12:22.595 [main] INFO  Arisa - [RESPONSE] [REALMS-3620] [UpdateLinked] Successful
16:44:16.480 [main] INFO  Arisa - [RESPONSE] [MCPE-62278] [UpdateLinked] Successful
16:44:16.484 [main] ERROR Arisa - [RESPONSE] [MCPE-122850] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
        at java.base/java.util.Arrays.copyOf(Arrays.java:3689)
        at java.base/java.util.ArrayList.grow(ArrayList.java:238)
        at java.base/java.util.ArrayList.grow(ArrayList.java:243)
        at java.base/java.util.ArrayList.add(ArrayList.java:486)
        at java.base/java.util.ArrayList.add(ArrayList.java:499)
        at org.apache.commons.collections.map.ListOrderedMap.put(ListOrderedMap.java:215)
        at net.sf.json.JSONObject._setInternal(JSONObject.java:2691)
        at net.sf.json.JSONObject.setInternal(JSONObject.java:2736)
        at net.sf.json.JSONObject._fromJSONObject(JSONObject.java:944)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:155)
        at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:108)
        at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:238)
        at net.sf.json.JSONArray._processValue(JSONArray.java:2513)
        at net.sf.json.JSONArray.processValue(JSONArray.java:2538)
        at net.sf.json.JSONArray.addValue(JSONArray.java:2525)
        at net.sf.json.JSONArray._fromJSONArray(JSONArray.java:1096)
        at net.sf.json.JSONArray.fromObject(JSONArray.java:121)
        at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:105)
        at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:238)
        at net.sf.json.JSONObject._processValue(JSONObject.java:2655)
        at net.sf.json.JSONObject.processValue(JSONObject.java:2721)
        at net.sf.json.JSONObject.element(JSONObject.java:1786)
        at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1036)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:159)
        at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:348)
        at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1008)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:159)
        at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:348)
        at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1008)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:159)
        at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:348)
        at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1131)
16:44:16.485 [main] ERROR Arisa - [RESPONSE] [MCPE-123020] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.485 [main] ERROR Arisa - [RESPONSE] [MCPE-117534] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.486 [main] ERROR Arisa - [RESPONSE] [MCPE-115987] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.486 [main] ERROR Arisa - [RESPONSE] [MCPE-122535] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.486 [main] ERROR Arisa - [RESPONSE] [MCPE-117521] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-119356] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-122694] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-115521] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-120434] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-119443] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.487 [main] ERROR Arisa - [RESPONSE] [MCPE-123151] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.488 [main] ERROR Arisa - [RESPONSE] [MCPE-90983] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.488 [main] ERROR Arisa - [RESPONSE] [MCPE-117283] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.488 [main] ERROR Arisa - [RESPONSE] [MCPE-115564] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.488 [main] ERROR Arisa - [RESPONSE] [MCPE-112844] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.494 [main] ERROR Arisa - [RESPONSE] [MCPE-122969] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.495 [main] ERROR Arisa - [RESPONSE] [MCPE-111020] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space
16:44:16.495 [main] ERROR Arisa - [RESPONSE] [MCPE-113081] [UpdateLinked] Failed
java.lang.OutOfMemoryError: Java heap space

Example Ticket

Expected behavior

Marcono1234 commented 3 years ago

The REST JSON response for neither MCPE-122850 nor MCPE-123020 seems to be that large, so we probably have a memory leak? Was someone with access to the server able to take a heap dump?

SPGoding commented 3 years ago

Sorry, I didn't take one before restarting it.

Marcono1234 commented 3 years ago

No worries, but might be good to keep in mind in case an OutOfMemoryError occurs again.