Urgent : AVK throws OutOfMemoryError during static-archive-test

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?

Thanks

[598 byte] By [BVermaa] at [2007-10-2 12:35:26]
# 1

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)

jvmArgs="-Xms256M -Xmx512M"

Hope it helps.

VikasAwasthia at 2007-7-13 9:35:47 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 2
I was able to solve this problem by adding -ms1g -mx1.5g parameters to java command in '<JAVKE_Install_Dir>\appserver\bin\verifier.bat' file. Thanks for your help
basanta at 2007-7-13 9:35:47 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 3
I've got your same problem and talkin with a Sun Adviser I found that this kind of error is throw when you use jdk 1.4. If you use jdk 1.5 it works.
lpasquinellia at 2007-7-13 9:35:47 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 4

try adding this code in verifier.bat at the last

-Xmx1024m -XX:MaxPermSize=128m

like

"%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..

Regards,

lovelin

lovelin.ka at 2007-7-13 9:35:47 > top of Java-index,Enterprise & Remote Computing,AVK Portability...