I trying to perform static analysis of an enterprise application (bundled as ear) currently running on weblogic.
After the tool extracts all the libraries in temporary directory, it stops in the middle complaining OutOfMemoryError.
I tried to increase the amount of memory by adding -Xmx1500m at java command in ant file, but did not help.
It seems that tool spawns a new java process during analysis process and it sets only 256 MB as maximum memory.
I tried to look for documentation of AVK ant task, but could not find much.
Could somebody help?
Make sure that the system has enough memory. Setting heap size alone in java process will not work unless the system has enough memory.
You can additionally try the following -
1. Add java heap size in the verifier script present in the bin directory of appserver installation. If you are using appserver that comes with JAVKE then you can get the verifier script at '<JAVKE_Install_Dir>\appserver\bin'. The ant scripts internally call this script.
2. You can add following argument in all the JAVKE ant tasks that you are using (like static-archive-test, translate-dd)
Hope it helps.
try adding this code in verifier.bat at the last
"%AS_JAVA%\bin\java" -Xmx1024m -XX:MaxPermSize=128m %SYSTEM_PROPERTIES% -classpath %JVM_CLASSPATH%;%HELP% com.sun.enterprise.tools.verifier.Verifier -C "%AS_INSTALL%\lib\verifier" %*
if "%AS_VERIFIER_BACKEND%" == "TRUE" exit %ERRORLEVEL%
out of memory will not be encountered..