Highlighted
Micro Focus Contributor
Micro Focus Contributor
6914 views

sourceanalyzer not working on SLES11SP4

Jump to solution

I have Fortify SCA 18.20 installed on my SLES11SP4 box. I know SLES11SP4 isn't a supported platform but unfortunately one of our components has to be built there. I see a failure when I run sourceanalyzer:

bash$ /opt/Fortify/Fortify_SCA_and_Apps_18.20/bin/sourceanalyzer
Error occurred during initialization of VM
Could not reserve enough space for 29597696KB object heap

The server has 32GB RAM, 60GB free hard disk space and 4 cores (Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz).

What could be wrong here ?

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: sourceanalyzer not working on SLES11SP4

Jump to solution
  • Did you complete the installation and licensing for SCA?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#Install/InstallSCA.htm%3FTocPath%3DInstallation%7CAbout%2520Installing%2520Fortify%2520Static%2520Code%2520Analyzer%2520and%2520Applications%7C_____1

 

  • Did you run the Post-Install Tool (for non-Windows OS)?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/RunningPostInstall.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____1

 

  • Did you run an initial update for the Rulepacks?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/UpdSecurityContent.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____7

 

  • Are you able to simply run "sourceanalyzer -?"

 

  • Have you set the appropriate Java_Home environment variable(s)?

 

  • Any idea why a VM was referred to by the command?  Is this a normal OS installation, or some Docker/VM/shell/container?

 

  • When running scans, SCA will assume 3/4 or more of the Total System Memory, unless you specify otherwise with the {-Xmx} option.  Could this be why 29GB (of 32GB total) was in the error message?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Help_18.20/index.htm#CommandLineInterface/OtherOptions.htm

 

 

 

 

Note - The referenced product documentation can be found by searching for "fortify" at  https://www.microfocus.com/support-and-services/documentation/


-- Habeas Data
Micro Focus Fortify Customers-Only Forums – https://community.softwaregrp.com/t5/Fortify/ct-p/fortify
0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

Re: sourceanalyzer not working on SLES11SP4

Jump to solution
  • Did you complete the installation and licensing for SCA?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#Install/InstallSCA.htm%3FTocPath%3DInstallation%7CAbout%2520Installing%2520Fortify%2520Static%2520Code%2520Analyzer%2520and%2520Applications%7C_____1

 

  • Did you run the Post-Install Tool (for non-Windows OS)?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/RunningPostInstall.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____1

 

  • Did you run an initial update for the Rulepacks?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/UpdSecurityContent.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____7

 

  • Are you able to simply run "sourceanalyzer -?"

 

  • Have you set the appropriate Java_Home environment variable(s)?

 

  • Any idea why a VM was referred to by the command?  Is this a normal OS installation, or some Docker/VM/shell/container?

 

  • When running scans, SCA will assume 3/4 or more of the Total System Memory, unless you specify otherwise with the {-Xmx} option.  Could this be why 29GB (of 32GB total) was in the error message?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Help_18.20/index.htm#CommandLineInterface/OtherOptions.htm

 

 

 

 

Note - The referenced product documentation can be found by searching for "fortify" at  https://www.microfocus.com/support-and-services/documentation/


-- Habeas Data
Micro Focus Fortify Customers-Only Forums – https://community.softwaregrp.com/t5/Fortify/ct-p/fortify
0 Likes
Micro Focus Contributor
Micro Focus Contributor

Re: sourceanalyzer not working on SLES11SP4

Jump to solution

@HansEnders wrote:
  • Did you complete the installation and licensing for SCA?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#Install/InstallSCA.htm%3FTocPath%3DInstallation%7CAbout%2520Installing%2520Fortify%2520Static%2520Code%2520Analyzer%2520and%2520Applications%7C_____1

yes

  • Did you run the Post-Install Tool (for non-Windows OS)?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/RunningPostInstall.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____1

yes

  • Did you run an initial update for the Rulepacks?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Install_Help_18.20/index.htm#PostInstall/UpdSecurityContent.htm%3FTocPath%3DPost-Installation%2520Tasks%7C_____7

yes

  • Are you able to simply run "sourceanalyzer -?"

I initially tried to run sourceanalyzer on sample programs. It was failing. So, I finally ran sourceanalyzer without any commandline arguments. Even that failed with the same error.

  • Have you set the appropriate Java_Home environment variable(s)?

I haven't set it because this link seems to suggest that fortify installs its own java. I also checked using strace - sourceanalyzer opens /opt/Fortify/Fortify_SCA_and_Apps_18.20/jre/lib/amd64/server/libjvm.so always. Setting JAVA_HOME was not making sourceanalyzer load any binary from the java installation.

  • Any idea why a VM was referred to by the command?  Is this a normal OS installation, or some Docker/VM/shell/container?

I assumed it was referring to JVM

  • When running scans, SCA will assume 3/4 or more of the Total System Memory, unless you specify otherwise with the {-Xmx} option.  Could this be why 29GB (of 32GB total) was in the error message?

https://www.microfocus.com/documentation/fortify-static-code-analyzer-and-tools/1820/SCA_Help_18.20/index.htm#CommandLineInterface/OtherOptions.htm

Note - The referenced product documentation can be found by searching for "fortify" at  https://www.microfocus.com/support-and-services/documentation/


This was helpful. I passed -Xmx16G as an argument to sourceanalyzer and everything started working ! Thanks.

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.