Products | Versions |
---|---|
TIBCO Data Virtualization | 7.0.0 and higher |
Package Export (pkg_export) fails with the following error:
------------------------------------------------------------------------
Error occurred during initialization of VM. Unable to allocate 61973KB card tables for parallel garbage collection for the requested 29151326KB heap.
------------------------------------------------------------------------
When pkg_export is run, it starts the JVM (java virtual machine). The error indicates that the JVM requested 29 GB of memory from the machine, but less than 29 GB of was available. Consequently, the JVM could not startup. It is possible that someone edited the pkg_export.bat or pkg_export.sh script in the past to increase the value of the memory setting (MAX_MEMORY ). By default, the value of this setting is 2 GB or less - but occasionally, customers edit the setting to provide the export utility with more memory so that it runs faster. Please reduce the amount of memory that the JVM requests from the machine, as follows:
(1) Back up pkg_export.bat
e.g. copy pkg_export.bat pkg_export.bat_ORIG
(2) Open pkg_export.bat with a text editor and decrease the value of the MAX_MEMORY setting.
The following example assumes that someone had set MAX_MEMORY to approximately 29 GB, and we are going to reduce it to 1 GB.
REM set MAX_MEMORY=-Xmx28389m
MAX_MEMORY=-Xmx1024m
(3) Now try to run pkg_export
Note: "-Xmx" is a JVM command-line parameter that determines how much memory the JVM will request from the system.