[Soot-list] large memory consumption

Steven Arzt Steven.Arzt at cased.de
Mon Oct 27 12:41:48 EDT 2014


Hi Fang,

 

The CombinedDUAnalysis is rather inefficient. If you run into issues, please
use the two separate analyses for Definitions (SmartLocalDefs) and Uses
(SimpleLocalUses).

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Fang Liu
Gesendet: Montag, 27. Oktober 2014 16:17
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] large memory consumption

 

Hi, All,

I am using soot to do flow analysis. The program consumes lots of memory
(2GB) when processing a 100KB class with  CombinedDuAnalysis.v(unitgraph).  

 

Does anyone know what combineDuAnalysis do in detail? Why it sometimes
consumes so much memory?

 

Below is the errors when the heapsize is 1GB.

 

Thank you.

 

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

        at
soot.toolkits.scalar.ArraySparseSet.doubleCapacity(ArraySparseSet.java:120)

        at soot.toolkits.scalar.ArraySparseSet.copy(ArraySparseSet.java:274)

        at
soot.toolkits.scalar.CombinedDUAnalysis.copy(CombinedDUAnalysis.java:261)

        at
soot.toolkits.scalar.BackwardFlowAnalysis.doAnalysis(BackwardFlowAnalysis.ja
va:129)

        at
soot.toolkits.scalar.CombinedDUAnalysis.<init>(CombinedDUAnalysis.java:163)

        at
soot.toolkits.scalar.CombinedDUAnalysis.v(CombinedDUAnalysis.java:99)

      

 

 

 

Best,

Fang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20141027/ef63b6a6/attachment-0001.html 


More information about the Soot-list mailing list