1

In android studio/intellij ide when you wanted to define the memory allocation you will see this warning:

similar to allocating to little memory allocating too much memory will degrade the performance

why?enter image description here

max
  • 5,963
  • 12
  • 49
  • 80
  • 1
    Does this answer your question? [Can I make the heap too big?](https://stackoverflow.com/questions/25192583/can-i-make-the-heap-too-big) – Martheen Aug 13 '21 at 01:14
  • not really, could you elaborate more on it – max Aug 14 '21 at 04:32
  • 1
    Aside from allocating too much that the OS is starving for RAM, a larger heap means more objects in GC and longer pauses https://stackoverflow.com/questions/31225252/java-slower-with-large-heap-no-excessive-gc-ing – Martheen Aug 14 '21 at 04:57

0 Answers0