PPM: About the Max Heap size for app service

Document ID : KB000113516
Last Modified Date : 11/09/2018
Show Technical Document Details
Which Max Heap size (-Xmx) is recommended for app service. 
It seems always to use 2GB.
Is there any best practice for memory utilization?
The "Tune Sun HotSpot JVMs" section in Manual says below. 
" As a best practice, set this value to at least 2048m (2 GB), even for small installations. For improved performance and fewer out-of-memory errors, set this value to 4 GB or 8 GB for larger datasets. For example, -Xms1024m -Xmx4096m.".

Recommend to increase Max Heap size for app service to 4GB.

Tune Sun HotSpot JVMs