106
gitpush
7y

FOR FUCK SAKE ANDROID STUDIO!!! 5GB RAM WHAT THE FUCK ARE YOU DOING!!! I NEED THOSE VMs RUNNING AND USING 5GB IS NOT COOL AT ALL!!

Comments
  • 3
    @ThatDude @dude @gitoutofhere plz!
  • 7
    Android studio : (Gollum voice) This is not enough, I need more!!!
  • 3
  • 2
    Holy crap lol why 😂
  • 15
  • 0
    @MikeOcasio I have no single clue, sometimes I wish I could remove that thing but I need it to make Android Apps :(
  • 1
    @Aitkotw as a Lord of the Rings fan, this made me giggle but I hope there is a Mordor in real life to throw those RAMs and hope Android Studio follows through XD
  • 2
    I hope that Santa 🎅 will bring you more RAM
  • 1
    @SystemZ no less than 128GB XD
  • 1
    when I open two windows of Android studio I get 250mb ram left for anything else. I mean why leave it, what will I run in that space?—another VM maybe ¯\_(ツ)_/¯
  • 0
    @sambhav2612 for me I do need my VMs running, I have two Ubuntu running one is a server and the other is regular desktop, using the server for docker containers (MySQL, SQL Server, DotNetCore)
    and using desktop for React and DotNetCore
    Using Windows for Android >_>

    My App will not function without the dotnet core service running, and dotnet core service will not function without the containers running (at least one of them)

    not planning to move any of them to another OS just because that thing is eating up my 16GB ram T_T
  • 4
    This is seriously getting out of hand. There's the stupid electron that loads like we have all the time in the world and then there's this RAM eating abomination.

    Our ancestors sent people to the moon with the computing power of a calculator! Time to wake up!
  • 1
    @gitpush then phones will come will support for writing your own SDKs and massive databases because why not?
    why fucking not put everything inside phones while at most instances they never use it completely et al.
    and, why not make them work like workstations and servers to handle the goddamn internet.

    this is a bigger scam than bitcoin. xDD
  • 0
    @speedForce this is a fucked up world I guess :\
  • 1
    @Torbuntu are you sure you are running Android studio :P and not some fake version of it :P

    @sambhav2612 hahaha why not :P
  • 0
    @gitpush could be a lite/go version of it tho 😂
  • 0
    @Torbuntu teach me master! I'm sick of this shit, even at work on a mac it does the same thing, eats all ram :\
  • 1
    @Torbuntu Same here I test on a physical device all the time, I closed it after this rant and now it is back to 4GB WTF!
  • 0
    @Torbuntu ignore windows, it does the same at work on a mac :\
  • 0
    @Torbuntu just writing code and running on device, the most basic things, I didn't even open the profiler tab to make it load
  • 1
    @Torbuntu can you lend me your laptop :P
  • 0
    @Torbuntu hahahaha its ok at least it runs android studio without issues XD
  • 1
    @gitpush @Torbuntu atleast tell us how you've configured it because I've never seen Android studio to take only 2.7gigs for 9 tabs. 🙏
  • 0
    @Torbuntu then I know what to do, buy an old crappy laptop :P
  • 0
    @sambhav2612 I changed nothing, it always suck like this ever since their very first preview few years ago :\
  • 1
    @Torbuntu what the fuck is this sorcery? 1gb ram for 9 tabs, are you KIDDING me?!
  • 1
    @Torbuntu I still cannot believe what I'm seeing :\ Something is wrong here either Linux really plays nice with Java or we fucked up somewhere or I'm dreaming ...
  • 0
    @Torbuntu I hate you -.-
  • 1
    @Torbuntu for Christmas I wish Java works for me well too T_T
  • 2
    @Torbuntu @gitpush just compare your studio version and Java version.. Maybe it's version difference..
  • 1
    Almost like an electron app
  • 3
    You should open Chrome as well. 😁 Those two programs will show you who is boss.
  • 1
    Depends what you're building I guess.
    Libraries, modules and configuration.

    Need a hand with the config? Ive spent a bit of time optimizing (my work PC has 8gb of ram).

    I will argue however that using 5-6 gb of ram (since you have them to spare) isn't that bad if it makes the build go faster. On my 16gb machine I've set it up to take up to 8
  • 1
    You're at 85% WHERE IS YOUR FUCKING PROBLEM
    Unused RAM is wasted RAM, god damnit
  • 1
    @succcubbus My problem is I had to close my Ubuntu VM to be able to continue work, I work on my service on that VM and had to deploy it to my VPS to be able to call it and continue working due to RAM being eaten up by Android Studio :\

    @jAsE oh ya please :D
    @RickDiculous179 can you share some of your configs? I am working on a new app for personal use it has only okhttp, google room db, and material edit text as dependencies

    @suprano I don't want my laptop to die :P

    @Danacus yup say postman? but ironically on Windows it behaves ok but on mac at work i fucking hate it

    @gardenGnome I have everything up to date and Android studio using the built-in openjdk could this be an issue?
  • 0
    if you have free ram, why not to use it?
  • 1
    @gitpush
    This is my global gradle.properties file for my 16gb rig - i7 6700:

    https://dropbox.com/s/...

    Also after using both room and realm I'd highly suggest realm. Room gets too annoying with complicated structures.

    Tweak the parralel threads to what is good for you. I have 8 logical cores so I give 6 to the build process and leave the 2 for anything else that may be running.

    I don't remember why I set a max metaspace size for the life of me.... Shouldn't make much of a difference.
  • 0
    @RickDiculous179 thanks man much appreciated. I added it to the project I'm working on lets see how things go
    However about Room and Realm, the only thing I don't like about Realm is it takes 90MB on an iOS project and that's too much :\

    I do like Realm but thought that since Room is google developed it should play nice with their platform though your note is making me think twice before going that way
  • 1
    @RickDiculous179 after applying your configs build speed did increase and I like what I'm seeing, but Android Studio still eats too much ram :\
  • 0
    @gitpush you can lower the maximum ram to fix that e.g. on my work Mac I'm using 3g out of the 8 it has.

    But imho ram is there to be used. Do you really miss 8g out of 16? I mean the rest should be enough for just about anything
  • 0
    @RickDiculous179 I'll change it but my problem is I always have to vms running, one Ubuntu desktop (for dev) and the other ubuntu server (for docker)
    and Android studio on Windows, so I don't really have enough free RAM to give to Android Studio especially that I have paging file disabled cuz I don't windows to always write on my ssd
  • 0
    @RickDiculous179 for example right now with nothing open but fire fox I have 7.6GB used :\
  • 1
    @gitpush hmm ssds aren't that bad nowadays though but yeah I see.

    Fully switching to Linux isn't an option I assume?
  • 1
    @gitpush I'd try 4g as a setting then
  • 1
    @RickDiculous179 I'll give it a go but I need to find a solution for this, increasing RAM is not an option since 16GB are enough and if I'm to upgrade I'd have to remove two 8GB to replace with the new ones :\

    I'm thinking of moving containers to a VPS, I usually require at least two at any given time and for dev I don't think more than 512MB RAM server is needed

    I'll switch those gradle settings to 4GB and hope it doesn't go over it thanks man
  • 1
    @gitpush out of curiosity what SSD do you have?

    I own a couple of cheap ones - one's in an Intel nuc that runs a private git among other things.
    And a couple of nvme drives on my main laptop (linux/windows with full on indexing, swap etc).
    Never had a single broken one and that includes the Macs at work (mine is a 2015 model that has seen a lot of usage).
  • 0
    @RickDiculous179 I got the Samsung Evo 850 500GB back in May 2015, so far it has 10TB writes I know Samsung says it can go up to 150TB but I don't know I still don't trust SSDs the same way I do with regular HDDs
    I still have an HDD 8GB functioning with no issues on a Pentium 4 PC got it like 12 years ago
  • 1
    @gitpush Mate I have the 850 on a Toshiba since 2013 it's around 50TB+ now :P

    I trust it with my life :P
  • 1
    @gitpush I do backups regularly but still... Never needed em
  • 0
    @RickDiculous179 hmm... 4 years now that's amazing, but still not enough to convince me XD
  • 0
    @RickDiculous179 any special software for backup or just copy paste? I'm planning on doing an image of my system so that in-case it fails I restore the image only
  • 1
    @gitpush 2014 actually so 3 years my bad.

    Windows I copy and rar5 with a huge dictionary so it compresses a lot.

    Mac I use time machine and carbon copy cloner or something if I need to do something that'll break things (like... Make a case sensitive partition case insensitive)

    Linux I don't bother because anything that can break Linux will probably kill humanity too :P
  • 0
    @RickDiculous179 haha! well played XD
    But does Linux play nice with SSDs?
  • 1
    @gitpush of course why not? :)

    Especially sata ones. You may need a driver for some nvme ones to get all the speed out of them but other than that no issues
  • 1
    @RickDiculous179 wish I could fully convert to Linux but I can't I develop universal windows platform apps = require windows = require visual studio = I'm stuck :\
  • 1
    @gitpush ahh... That's too bad :( Thank god I can just use it to game :P
  • 0
    @RickDiculous179 oh I forgot about gaming too XD
  • 0
    Do gradle builds on EC2 with the commandline tools. Problem solved!
  • 0
    @bdhobare EC2? :S lol can you please explain more
  • 0
    At least your CPU isn't 100%, seems like god really likes you.
Add Comment