Projects STRLCPY jadx Commits 7e9278f9
🤬
  • don't hardcode maximum Java heap size

  • Loading...
  • Skylot committed 10 years ago
    7e9278f9
    1 parent 9194441c
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 37 lines
    38 38   
    39 39  ### Usage
    40 40  ```
    41  -jadx[-gui] [options] <input file> (.dex, .apk or .jar)
     41 +jadx[-gui] [options] <input file> (.dex, .apk, .jar or .class)
    42 42  options:
    43 43   -d, --output-dir - output directory
    44 44   -j, --threads-count - processing threads count
    skipped 6 lines
    51 51   jadx -d out classes.dex
    52 52  ```
    53 53   
     54 +### Troubleshooting
     55 +##### Out of memory error:
     56 + - Reduce processing threads count (`-j` option)
     57 + - Increase maximum java heap size:
     58 + * command line (example for linux):
     59 + `JAVA_OPTS="-Xmx4G" jadx -j 1 some.apk`
     60 + * edit 'jadx' script (jadx.bat on Windows) and setup bigger heap size:
     61 + `DEFAULT_JVM_OPTS="-Xmx2500M"`
     62 + 
     63 +---------------------------------------
    54 64  *Licensed under the Apache 2.0 License*
    55 65   
    56 66  *Copyright 2014 by Skylot*
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    jadx-cli/build.gradle
    skipped 8 lines
    9 9   compile 'ch.qos.logback:logback-classic:1.1.2'
    10 10  }
    11 11   
    12  -startScripts {
    13  - doLast {
    14  - // increase default max heap size
    15  - String var = 'DEFAULT_JVM_OPTS='
    16  - String args = '-Xmx1300M'
    17  - unixScript.text = unixScript.text.replace(var + '""', var + '"' + args + '"')
    18  - windowsScript.text = windowsScript.text.replace(var, var + args)
    19  - }
    20  -}
    21  - 
    22 12  applicationDistribution.with {
    23 13   into('') {
    24 14   from '../.'
    skipped 6 lines
  • ■ ■ ■ ■ ■ ■
    jadx-gui/build.gradle
    skipped 7 lines
    8 8   compile 'com.fifesoft:rsyntaxtextarea:2.5.0'
    9 9  }
    10 10   
    11  -startScripts {
    12  - doLast {
    13  - // increase default max heap size
    14  - String var = 'DEFAULT_JVM_OPTS='
    15  - String args = '-Xmx1300M'
    16  - unixScript.text = unixScript.text.replace(var + '""', var + '"' + args + '"')
    17  - windowsScript.text = windowsScript.text.replace(var, var + args)
    18  - }
    19  -}
    20  - 
    21 11  applicationDistribution.with {
    22 12   into('') {
    23 13   from '../'
    skipped 12 lines
Please wait...
Page is in error, reload to recover