i have use like this
java -Xmx1G -jar [file].jar but when i run it i got error like this :
Exception in thread "Thread-11" java.lang.OutOfMemoryError: GC overhead limit exceeded
How to fix this problem ?
i have change become java -Xmx2G -jar [file].jar
and here my consist size for thread
public class QueueConst {
public static int Size_Worker = 300000;
public static int DELAYED_MESSAGE_Worker = 1000000;
}
so my question is the problem in my heap size or in my QUEUE Size ? thanks all