i-net Clear Reports

Out Of Memory Error Bug

If the OutOfMemoryError is because of a bug, there are 2 types of ways it can occur:

The reproducible Bug

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:

  • report file
  • i-net Clear Reports log file
  • core files

The Memory Leak

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:

  • Add the following command line parameters in the start batch file of i-net Clear Reports
    -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.

  • Start the i-net Clear Reports Server with the new command. It should create a profile file “java.hprof” in the working directory.
  • Now you can render your reports for some time.
  • If an 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.
  • Copy or zip the profile file “java.hprof” to a separate location before you restart the i-net Clear Reports Server.
  • Send us a support request to the i-net Clear Reports support team with the profile file “java.hprof” attached.

See Also:


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.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.