AbdurRahman Member May 6, 2021 #1 Hi guys, Thanks for being a part of b4x community, Before, I wanna share my pc details: - RAM: 4gb - OS: windows 10 x86 - Processor: x64 based - Type: Laptop Please see images: The strange thing for me is that its -Xmx is 2048m. Whereas, my environment variable named _JAVA_OPTIONS is "-Xmx800M". Is there any way I can lower down its memory consumption ? I can NOT afford buying a new pc or installing 64 bit OS. Regards
Hi guys, Thanks for being a part of b4x community, Before, I wanna share my pc details: - RAM: 4gb - OS: windows 10 x86 - Processor: x64 based - Type: Laptop Please see images: The strange thing for me is that its -Xmx is 2048m. Whereas, my environment variable named _JAVA_OPTIONS is "-Xmx800M". Is there any way I can lower down its memory consumption ? I can NOT afford buying a new pc or installing 64 bit OS. Regards
Erel B4X founder Staff member Licensed User Longtime User May 6, 2021 #2 344mb is not too much for the dexer. You can edit the ini file and disable the optimized dexer. It will still require similar amount of RAM, but only during compilation. Upvote 0
344mb is not too much for the dexer. You can edit the ini file and disable the optimized dexer. It will still require similar amount of RAM, but only during compilation.
AbdurRahman Member May 6, 2021 #3 that ini file, right ? %appdata%\Anywhere Software\Basic4android\b4xV5.ini Click to expand... I opened it and set DisableDexerOptimizations=True. But still java.exe for dexer optimization do get appear again as soon as I open b4a IDE. Although 344mb is NOT that much. But my pc ram is low. So I always try my best to lower down memory usage of every single app that I can able to. My pc would hang if I use 3 apps with sum of each is upper than 1000mb. So it would be really hard for me to use these apps at a time: - Slim Browser (for searching in b4x) (500--700 mb) - B4A (for compiling android apps) (50--100 mb) - MeMu android emulator (for testings apps on android 7) (200--400 mb) - java.exe (350--400 mb) Upvote 0
that ini file, right ? %appdata%\Anywhere Software\Basic4android\b4xV5.ini Click to expand... I opened it and set DisableDexerOptimizations=True. But still java.exe for dexer optimization do get appear again as soon as I open b4a IDE. Although 344mb is NOT that much. But my pc ram is low. So I always try my best to lower down memory usage of every single app that I can able to. My pc would hang if I use 3 apps with sum of each is upper than 1000mb. So it would be really hard for me to use these apps at a time: - Slim Browser (for searching in b4x) (500--700 mb) - B4A (for compiling android apps) (50--100 mb) - MeMu android emulator (for testings apps on android 7) (200--400 mb) - java.exe (350--400 mb)
Erel B4X founder Staff member Licensed User Longtime User May 6, 2021 #4 This is a different setting. You need to set this one to False: UseOptimizedDexer Upvote 0
AbdurRahman Member May 6, 2021 #5 Yes, now it works. Now java.exe launches only when compiling. Thanks so much for the help. ❤ Cheers ! Upvote 0
Yes, now it works. Now java.exe launches only when compiling. Thanks so much for the help. ❤ Cheers !