If the OutOfMemoryError is because of a bug, there are 2 types of ways it can occur:
With this bug, the OutOfMemoryError occurs with a specific report or parameter set. If you think that your problem is such a bug, then please send a support request to the i-net Clear Reports support team. Include in the support request all needed information for reproducing the problem like:
With this bug the problem occurs after a long time of running the system. After the first occurance of the OutOfMemoryError the problem occurs more frequently. Only a new start helps to solve it. In this case we'll need a Memory Profiling to help you. You need to do the following steps for a Memory Profiling:
-Xrunhprof:heap=sites,depth=8,format=b
Now your command line will look like:
java -Xmx512M -Xrunhprof:heap=sites,depth=8,format=b -cp "core/ClearReports.jar" com.inet.report.Listener
If you use an application server then you need to add it to the application server command line.
OutOfMemoryError occurs, then terminate the i-net Clear Reports Server (or the application server). You can do this with CTRL-C in the console window. Do NOT kill it with the task manager. It can take 1 or 2 minutes to write the profile result in the profile file.
i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.