You can translate the question and the replies:

An error was found: java.lang.OutOfMemoryError: Java heap space

I am getting **An error was found: java.lang.OutOfMemoryError: Java heap space** on using export with option **Include Jar** [Error Screenshot](
01-01-2020 20:12:42 -0500

2 Answers

Hi, I have come across the same error while exporting the metadata with options Include Jars in the Virtual DataPort. This error is caused due to the insufficient heap space in a Virtual DataPort Administration Tool. To overcome, that error I would do the following steps, * Open the Denodo Control Center. * Click on the "Configure > JVM Options > Memory options". * Change the value of the "Virtual DataPort Administration Tool" to -mx2048m and apply the changes. * Open a new Virtual DataPort Administration Tool and retry the export. For more information, you could refer to the Knowledge Base article [JVM Memory Settings Configuration]( Hope this helps!
Denodo Team
02-01-2020 00:52:34 -0500
Usually, this error is thrown when the [Java Virtual Machine]( cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. Therefore you pretty much have two options: * Increase the default memory your program is allowed to use using the -Xmx option (for instance for 1024 MB: -Xmx1024m) * Modify your program so that it needs less memory, using less big data structures and getting rid of objects that are not any more used at some point in your program Increasing the heap size is a bad solution, 100% temporary. It will crash again in somewhere else. To avoid these issues, write high performance code. * Use local variables wherever possible. * Make sure you select the correct object (EX: Selection between String, StringBuffer and StringBuilder) * Use a good code system for your program(EX: Using static variables VS non static variables) * Other stuff which could work on your code. * Try to move with Multy Threading
06-01-2021 02:00:18 -0500
You must sign in to add an answer. If you do not have an account, you can register here