It seems that changing to Java app and updating openjdk require more memory