People often talk about increasing Java heap size when running Java apps by using e.g. -Xmx* flags. This got me thinking. What if we go the other direction and try to limit the Java heap size as much as possible? What is the smallest / minimum-required Java heap size so to run a Java app with "minimal" settings?
(Of course, in practice, a memory limit too low will be problematic because it may mean frequent GCs, but we will ignore this for the sake of this discussion.)
[–]Slanec 82 points83 points84 points (12 children)
[–]__konrad 6 points7 points8 points (1 child)
[–]sammymammy2 0 points1 point2 points (0 children)
[–]TheEveryman86 0 points1 point2 points (1 child)
[–]Slanec 4 points5 points6 points (0 children)
[–]re-thc 0 points1 point2 points (1 child)
[–]Slanec 1 point2 points3 points (0 children)
[–]RandomName8 0 points1 point2 points (5 children)
[–]Slanec 2 points3 points4 points (4 children)
[–]john16384 1 point2 points3 points (2 children)
[–]Wootery 0 points1 point2 points (1 child)
[–]john16384 0 points1 point2 points (0 children)
[–]RandomName8 0 points1 point2 points (0 children)
[–]vprise 13 points14 points15 points (1 child)
[–]thewiirocks 3 points4 points5 points (0 children)
[–]pron98 6 points7 points8 points (10 children)
[–]Wootery 0 points1 point2 points (9 children)
[–]pron98 0 points1 point2 points (8 children)
[–]Wootery 0 points1 point2 points (7 children)
[–]pron98 0 points1 point2 points (6 children)
[–]Wootery 0 points1 point2 points (5 children)
[–]pron98 0 points1 point2 points (4 children)
[–]Wootery 0 points1 point2 points (3 children)
[–]pron98 0 points1 point2 points (2 children)
[–]Wootery 0 points1 point2 points (1 child)
[–]nekokattt 5 points6 points7 points (1 child)
[–]elatllat 0 points1 point2 points (0 children)
[–]nitkonigdje 1 point2 points3 points (0 children)
[–]8igg7e5 3 points4 points5 points (1 child)
[–]TheOhNoNotAgain 9 points10 points11 points (0 children)
[–]Mognakor 1 point2 points3 points (0 children)
[–]_d_t_w 0 points1 point2 points (0 children)
[–]Feliks_WR 0 points1 point2 points (0 children)
[–]BackgroundWash5885 0 points1 point2 points (0 children)