Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Captain Captain
Captain
4377 views

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 fortify.properties file as:

com.fortify.model.ExecMemorySetting=80G

[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(Arrays.java:3664)

        at java.lang.StringBuffer.toString(StringBuffer.java:671)

        at java.io.BufferedReader.readLine(BufferedReader.java:327)

        at java.io.BufferedReader.readLine(BufferedReader.java:389)

        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.isOldFormatAuditXml(LocalAuditFileLoader.java:487)

        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.isOldFormat(LocalAuditFileLoader.java:461)

        at com.fortify.ui.model.util.fpr.LocalAuditFileLoader.doMerge(LocalAuditFileLoader.java:54)

        at com.fortify.ui.model.ProjectLoader.loadAuditInfo(ProjectLoader.java:298)

        at com.fortify.ui.model.ProjectLoader.loadAdditionalFPRInfo(ProjectLoader.java:241)

        at com.fortify.ui.model.ProjectLoader.updateProject(ProjectLoader.java:465)

        at com.fortify.ui.model.ProjectLoader.loadProject(ProjectLoader.java:203)

        at com.fortify.ui.model.ProjectLoader.loadProject(ProjectLoader.java:185)

        at com.fortify.ui.model.util.integration.IntegrationStubFactory$2.loadProjectWithProgress(IntegrationStubFactory.java:90)

        at com.fortify.ui.model.util.integration.IntegrationUtil.loadProjectWithProgress(IntegrationUtil.java:150)

        at com.fortify.ui.model.util.integration.IntegrationUtil.loadProjectWithProgress(IntegrationUtil.java:116)

        at com.fortify.ui.model.util.fpr.FPRCommandlineInterface.performMerge(FPRCommandlineInterface.java:747)

        at com.fortify.ui.model.util.fpr.FPRCommandlineInterface.main(FPRCommandlineInterface.java:232)

[releng@subgm23 17.2]$

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

Tags (2)
0 Likes
1 Reply
Captain 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"  "$@"

0 Likes
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.