CLV-4701 - OutOfMemoryError Java Heap Space (Clover Command Line Tools)

Product: Clover

Environment

Operating System  
Affect Version/s  
JVM  
Database  
Application Server  

Error Message

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at com.cenqua.clover.instr.EndBoolInstrEmitter.a(2.0.3-build-691:34)
at com.cenqua.clover.instr.Emitter.b(2.0.3-build-691:90)
at com.cenqua.clover.instr.CloverToken.a(2.0.3-build-691:145)
at com.cenqua.clover.instr.CloverTokenStreamFilter.a(2.0.3-build-691:172)
at com.cenqua.clover.instr.Instrumenter.a(2.0.3-build-691:246)
at com.cenqua.clover.instr.Instrumenter.a(2.0.3-build-691:121)
at com.cenqua.clover.CloverInstr.a(2.0.3-build-691:70)
at com.cenqua.clover.CloverInstr.mainImpl(2.0.3-build-691:47)
at com.cenqua.clover.CloverInstr.main(2.0.3-build-691:32

Symptom

Diagnostics/Test

Root Cause

Insufficient memory allocation

Solution

Increase the memory with following command:

java -Xmx512m com.cenqua.clover.CloverInstr .. 

Labels

clover clover Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.