We are aware of this and we want to fix this problem soon. On Wed, Oct 14, 2015 at 10:33 PM, Sebastian Choina <[email protected]> wrote:
> Hi > Originally I have posted that question to Gradle dev team here: > https://discuss.gradle.org/t/gradle-android-predex-forks-large-ammount-of-processes-causing-oom/12142 > Iv been suggested to post to adt-dev as mentioned processes are forked by > android plugin > > >> Gradle 2.5 and Gradle 2.7 >> I am using gradle to build android app. I cannot find how to force gradle >> to LIMIT number of external processes forked for single build. In my case >> *preDex* task is forking 8 (probably No cores) java processes with >> -Xmx:1g setting that causes whole build to crash due to OOM. >> I have tried *max-worker* but this seems to be related only to internal >> gradle workers pooll for parallel execution. I also have inplicity disabled >> parallel build with *org.gradle.parallel=false* but this does not change >> anything here. >> >> Here is a piece of info log to point what kind of external forks i am >> talking about. If I could only limit those to reasonable ammount of 2 or >> so, evertyhting would be finde. Gradle forks 8 (or more) of such processes >> causes windows 8 to complain about lack of memory and fails the build as >> the result (forked process is shut down due to OOM) >> > > > Tutaj wprowadź kod... > > Starting process 'command 'C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe''. Working directory: > Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\okio-1.6.0-bfa4b4411ac27172662c9a83ff09f213a027c493.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\1.6.0\98476622f10715998eacf9240d6b479f12c66143\okio-1.6.0.jar > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\commons-io-20030203.000550-905716a7e032a741df146f69fee96082a7b705ad.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\commons-io\commons-io\20030203.000550\506fc1d8e200a9e664d8befb991d407ae551d7fe\commons-io-20030203.000550.jar > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\okhttp-urlconnection-2.5.0-029b7366ba67a61f31621487a774e3249928ff52.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\com.squareup.okhttp\okhttp-urlconnection\2.5.0\d737653459be272e881d51024274fa4785225641\okhttp-urlconnection-2.5.0.jar > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\retrofit-1.8.0-cca6da4728dc5a4079cd70b5f3ada88e82d93184.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\com.squareup.retrofit\retrofit\1.8.0\a517f29ed06be2b2879524fcd94b6e9b36e2e0b5\retrofit-1.8.0.jar > r.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\gson-2.3-fce3d622f7add32b2be5f8cd49b7f212738a5ba7.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.3\5fc52c41ef0239d1093a1eb7c3697036183677ce\gson-2.3.jar > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\renderscript-v8-7af406199434867ff312b65e802813cefe685067.jar > Z:\softy\android\sdk\build-tools\23.0.1\renderscript\lib\renderscript-v8.jar > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\okhttp-2.5.0-c52054756df28f41f82a521b8d4fb573df070344.jar > > C:\Users\Antoniossss\.gradle\caches\modules-2\files-2.1\com.squareup.okhttp\okhttp\2.5.0\4de2b4ed3445c37ec1720a7d214712e845a24636\okhttp-2.5.0.jar > Successfully started process 'command 'C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe'' > Starting process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe''. > Working directory: Z:\git\breeze-android\app Command: C:\Program > Files\Java\jdk1.8.0_40\bin\java.exe -Xmx1024M -Dfile.encoding=windows-1250 > -Duser.country=PL -Duser.language=pl -Duser.variant -cp > Z:\softy\android\sdk\build-tools\23.0.1\lib\dx.jar > com.android.dx.command.Main --dex --verbose --force-jumbo --num-threads=4 > --output > Z:\git\breeze-android\app\build\intermediates\pre-dexed\alpha\Parse-1.9.1-b32331039cf6b551e7d9c59c0ae0a9c74b426c2d.jar > Z:\git\breeze-android\app\libs\Parse-1.9.1.jar > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
