Troubleshooting Jaspersoft Reports

 JasperSoft Studio 6.x shows a JAVA Heap Space error similar to the following:
casm171
JasperSoft Studio shows a JAVA Heap Space Error
 JasperSoft Studio 6.x shows a JAVA Heap Space error similar to the following:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.Writer.write(Unknown Source)
Perform the following to resolve this issue: 
  1. Increase the JVM Heap Size allocated to Jaspersoft Studio.
  2. On the machine where Jaspersoft Studio is installed, modify the
    Jaspersoft
    Studio Professional.ini file.
    This file is located in the root of the JasperStudio install directory (example: C:\Program Files\TIBCO\Jaspersoft Studio Professional-6.2.1.final),
  3. Modify the
    -Xms
    and
    -Xmx
    lines to the following (assuming you have enough RAM available):
    -Xms1024m
    -Xmx4096m
  4. If JasperSoft Studio is open when the above changes are made, a restart of JasperSoft Studio is required.