What are the possible reasons that tmp file size getting increased on the controller?

What are the possible reasons that tmp file size getting increased on the controller?

A:

We might come across the situation that the Controller temp file size seems to be increasing continuously (as shown below) which leads to the controller crash.

One of the possible reason is that, if there is too many config change and if they are not saved by doing #write memory periodically will trigger the increase in tmp file size which leads to controller crash.

Part of the customer design may be to do this route change every second (done by an external script's) and in such case its recommended to add the #write mem command in the script to avoid controller crash due to this increase in tmp file size.