How to set ulimit in App VM

I was trying to increase the number of available file descriptors as per the following guide

I set the ulimit to 8096 in the ~/.bashrc file of the App VM.
Is this correct way to do this or is this something I should in the App VM’s template instead?

I think it should work.
You can make sure that it works by checking the output of this command in your qube’s terminal:

ulimit -a

Going by the output of ulimit -a, the open files limit seems to be in effect

$ ulimit -a
...
open files                          (-n) 8096
...

Thanks!