java - Call graph generation using Spark (Soot -Eclipse framework) - memory issues -
i'm trying generate call graph using spark (in soot -eclipse framework) java code. started helloworld. small example looks system memory isn't enough.
soot has run out of memory allocated java vm. allocate more memory soot, use -xmx switch java. example (for 400mb): java -xmx400m soot.main .
my machine windows based 4gb core i-5. eclipse process running javaw.exe. out-of-memory behavior expected helloworld using soot? i'm new running profiling java , im not sure if library classes adding huge overhead.
or maybe right question - how use -xmx switch running soot more memory in eclipse on windows -anyone done this?
the command in eclipse below. im using simplification options in spark analysis.
soot.main --w --d c:\users\nbalaji\workspace\helloworld\sootoutput --process-path c:\users\nbalaji\workspace/helloworld/src; --cp /c:/users/nbalaji/workspace/helloworld/bin/, < bunch of java/jre7 files >
edit: resolved now. soot survival guide: when setting run configuration should add following parameters jvm -xmx512m -xss256m increase vm memory.
soot using memory not bug. hello-world program transitively calls thousands of methods, of analyzed.
as exception message suggests, should use:
java -xmx400m soot.main ...
this jvm option, not soot option.
Comments
Post a Comment