Questions:
1) Is it a common practice to limit the log file size of MobileFirst Server in production? The log in this folder will keep on increasing (I expect this log will actually affect the server performance and the server will crash after a stress test to the server)
2) If yes, how to set it? Is it in /opt/IBM/WebSphere/Liberty/usr/servers/mfp/server.xml?
Yes, It is common to customize the log file sizes and the location on production.
You can set the log file size on Liberty by using the attribute: maxFileSize
in server.xml - /opt/IBM/WebSphere/Liberty/usr/servers/mfp/server.xml .
The attribute maxFiles
sets the number of files of each type that are kept on the file system.
Another useful one would be to set the environment variable LOG_DIR
- You could possibly set it to a different mount point.
You can find more details on this from this link