Java.lang.outofMemory Error

Hey all i am Trying to update my spark clients using the client management pluging in opefire 3.7.0 and everytime i try to upload the new file i get a

Exception:

java.lang.OutOfMemoryError: Java heap space

How do i clear the cache for this or allocate more memory to it.

Thanks,

hi Rozey!

try to modify jvm args.

[root@testservertest]# vi $OpenFire_HOME/bin/openfire

#! /bin/sh

Uncomment the following line to override the JVM search sequence

INSTALL4J_JAVA_HOME_OVERRIDE=

Uncomment the following line to add additional VM parameters

INSTALL4J_ADD_VM_PARAMS=

INSTALL4J_ADD_VM_PARAMS="-Xms8g -Xmx8g -Xmn4g -XX:MaxPermSize=400m -XX:PermSize=400m "

Xms,Xmx depends on Memory capacity.