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
  • The Memory Leak

Product: i‑net Crystal-Clear
Version: 8.0 7.9
Date: Oct 10, 2008
Keywords:

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 Crystal-Clear support team. Include in the support request all needed information for reproducing the problem like:

  • Report file
  • i‑net Crystal-Clear 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 Crystal-Clear
    -Xrunhprof:heap=sites,depth=8
    Now your command line will look like:
    java -Xmx512M -Xrunhprof:heap=sites,depth=8 -cp “CrystalClear.jar” com.inet.report.Listener

If you use a application server then you need to add it to the application server command line.

  • Start the i‑net Crystal-Clear Server with the new command. It should create a profile file java.hprof.txt in the working directory.
  • Now you can render your reports for some time.
  • If an OutOfMemoryError occurs, then terminate the i‑net Crystal-Clear 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.txt to a separate location before you restart the i‑net Crystal-Clear Server.
  • Send us a support request to the i-net Crystal-Clear support team with the profile file java.hprof.txt.
 

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