Captain Captain

FPRUtility is throwing out of memory error while merging fpr files

I am trying to merge two fpr files using FPRUtility but it is throwing out of memory error. Ample physical memory is available in the high-capcity machine with 256 GB RAM and 48 cpu cores.

[releng@subgm23 17.2]$ free -g

             total       used       free     shared    buffers     cached

Mem:           251          2        249          0          0          0

-/+ buffers/cache:          1        250

Swap:            7          0          7

I have set the JVM size in file as:


[releng@subgm23 17.2]$ FPRUtility -merge -project Fortify-occs-version17.1-3rdParty-scan.fpr -source Fortify-occs17.2-3rdParty-scan.fpr -f Fortify-occs17.2main-3rdParty-scan.fpr

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

        at java.util.Arrays.copyOfRange(

        at java.lang.StringBuffer.toString(



        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.isOldFormatAuditXml(

        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.isOldFormat(

        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.doMerge(

        at com.fortify.ui.model.ProjectLoader.loadAuditInfo(

        at com.fortify.ui.model.ProjectLoader.loadAdditionalFPRInfo(

        at com.fortify.ui.model.ProjectLoader.updateProject(

        at com.fortify.ui.model.ProjectLoader.loadProject(

        at com.fortify.ui.model.ProjectLoader.loadProject(

        at com.fortify.ui.model.util.integration.IntegrationStubFactory$2.loadProjectWithProgress(

        at com.fortify.ui.model.util.integration.IntegrationUtil.loadProjectWithProgress(

        at com.fortify.ui.model.util.integration.IntegrationUtil.loadProjectWithProgress(

        at com.fortify.ui.model.util.fpr.FPRCommandlineInterface.performMerge(

        at com.fortify.ui.model.util.fpr.FPRCommandlineInterface.main(

[releng@subgm23 17.2]$

Any idea what I am doing wrong? Thanks much in advance.

Tags (2)
1 Reply
Captain Captain

I edited the FPRUtility script and changed the jvm size within the script.

"$JAVA_CMD" -Xmx80G ${AWB_VM_OPTS} ${USER_VM_OPTS} -jar "${FORTIFY_HOME}/Core/lib/exe/fpr-utility-exe.jar"  "$@"

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.