<div dir="ltr">Hello everyone,<div><br></div><div>I&#39;m trying to modify an android apk and everything was working fine until now. I suppose that the apk has grown too big (actually is not that much), and now I&#39;m receive a Java Heap space error or a GC error even after giving more memory to soot:</div><div><div>- Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded</div></div><div><br></div><div>I suppose that Soot is trying to analyse *everything* inside the app, which uses a lot of Libs. How can I avoid this? I&#39;ve tried setting the entry point (<a href="http://www.bodden.de/2012/07/26/soot-custom-entry-points/">http://www.bodden.de/2012/07/26/soot-custom-entry-points/</a>) of the jtp transformation, but it still gives me the same error. </div><div><br></div><div>Furthermore, I now noticed that its inferring a main-class from a lib I&#39;m using: &quot;No main class given. Inferred org.apache.commons.math3.util.FastMath&#39; as main class.&quot;, how can I set this correctly? Is the error related?</div><div><br></div><div>This is my command-line: java -Xmx1024M -Xms1024M -XX:PermSize=2048m -XX:MaxPermSize=2048m -cp &quot;~/TestingSoot/lib/*:../../*:.&quot;  AndroidInstrument -pp -android-jars /home/neto/adt-bundle-linux-x86_64-20140702/sdk/platforms/android-20 -process-dir ~/ClientSide/bin/ClientMain-debug.apk -allow-phantom-refs -w</div><div><br></div><div>Thank you for your help,</div><div>José</div></div>