Ask Your Question

I keep running out of tmpfs when trying to install Android SDK component.

asked 2016-04-19 17:15:15 +0000


I am trying to update Android N's system image but I keep running out of tmpfs space. How do I resolve it?


image description

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-04-20 00:57:44 +0000

sergiomb gravatar image

updated 2016-04-20 06:53:38 +0000

you may disable tmpfs [1] , or change tmp to /var/tmp

[1] https://ask.fedoraproject.org/en/ques...

I understood the problem is /tmp with tmpfs just have capacity of 2GB, if you need more you have to disable tmpfs on /tmp or change tmp dir of android studio

edit flag offensive delete link more


Could you please explain what that does? I feel like there's something fishy in Android SDK. The image it is trying to install shouldn't take up 4GB to unarchive.

sudhirkhanger ( 2016-04-20 03:19:49 +0000 )edit

It means, that tmpfs is only in RAM of your PC. It takes about 50% of RAM amount. It is very small to do installation with this /tmp directory. So you need modify your /etc/fstab to avoid using tmpfs.

mrTuborg ( 2016-04-20 11:59:17 +0000 )edit

Cool. I have filed a bug report against Android Studio as I am not sure why 4GB is not enough for it. If they don't make any progress I will think about disabling tmpfs.

sudhirkhanger ( 2016-04-20 12:20:48 +0000 )edit

It is not a bug :) All modern Linux distro keep tmp directory in RAM, but Android Studio I think looking more in old-fashioned distribution like Debian and Ubuntu. So, I think they have option to change default /tmp dir on something else, like it was said by @sergiomb

mrTuborg ( 2016-04-21 08:22:55 +0000 )edit

answered 2016-07-20 09:24:25 +0000

harald gravatar image

I just added

export _JAVA_OPTIONS=-Djava.io.tmpdir=/var/tmp

at the top of studio.sh and everything works as expected now.

edit flag offensive delete link more


thanks, you saved me a lot of time

evillagr ( 2018-01-17 01:37:10 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2016-04-19 17:15:15 +0000

Seen: 2,596 times

Last updated: Apr 20 '16