On Ubuntu 16.04 AWS system with 32 GB ram and 4 CPU, the following commands fail,
root@ip-10-0-0-189:/home/ubuntu# sysctl -w fs.file-max=10000000 **(ten million)**
fs.file-max = 10000000
root@ip-10-0-0-189:/home/ubuntu# ulimit -n 2000000 **(2 million)**
**bash: ulimit: open files: cannot modify limit: Operation not permitted**
root@ip-10-0-0-189:/home/ubuntu#
Is there any upper limit on value that can be set on ulimit?