Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Java OutOfMemoryError when logging into client opened by Intellij

Joined
Jun 6, 2021
Messages
3
This appears to happen when all of the following are true:
1) running runemate via intellij
2) it's 32bit runemate
3) JRE selected is x86/RuneMate/jre
4) Runemate client login with correct username and password

I've tried setting the client run arguments as follows:
Code:
-sdk -Xms512M -XMX1024M
as well as tried adjusting vmoptions to the same values

but the max heap size still reports 248MB. for reference, when I run runemate directly (not via intellij) the max heap size per the logs is 990MB.

Trying to figure out what's giving me this error:

Code:
"C:\Program Files (x86)\RuneMate\jre\bin\java.exe" [...]
com.runemate.boot.Boot -sdk -Xms512M -Xmx1024M
[Debug] Java Home: C:\Program Files (x86)\RuneMate\jre
[Debug] Java Version: 1.8.0_301 x86 (Oracle Corporation)
[Debug] Maximum Heap Size: 248MB
[Debug] RuneMate Version: 2.114.11
[Debug] Operating System: Windows 10 x64
[Debug] C:\Users\Travis\OneDrive\jagexcache is a cache root according to the registry.
Exception in thread "Thread-11" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:3236)
    at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
    at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
    at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
    at nul.IiiIIIiiIiiIi.iIiiiiiiIiIIi(lqc:210)
    at nul.IiiIIIiiIiiIi.iIiiiiiiIiIIi(lqc:21)
    at nul.IiiIIIiiIiiIi.iIiiiiiiIiIIi(lqc:208)
    at nul.IiiIIIiiIiiIi.iIiiiiiiIiIIi(lqc:155)
    at nul.iIiiiIiiiIIii.iIiiiiiiIiIIi(tgc:481)
    at nul.IIiIiIiiiIIIi.iIiiiiiiIiIIi(nac:8847)
    at nul.IIiIiIiiiIIIi.IIiiiiiiiIiii(nac:1714)
    at nul.IIiIiIiiiIIIi$$Lambda$362/1250928.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:748)

My vmoptions:
Code:
-Xms512m
-Xmx1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf
-Dkotlinx.coroutines.debug=off

After attempting to log in to runemate launched via Intellij the loading wheel will spin forever.
 
Resolved through Discord. memory arguments needed to be added to VM options line in the Spectre run configuration instead of directly to the application's arguments.
unknown.png arguments line.png
 
Top