Thank you for your reply.
Could you tell me how to start a new login shell for the setting to be picked up?
I run systems using
systemd, so I ran
systemctl daemon-reload after the setup (Please tell me if this is a wrong command.).
But I still get an error like the follows.
[2017-02-12T10:44:16,561][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory
[2017-02-12T10:44:16,564][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out.
[2017-02-12T10:44:16,564][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-02-12T10:44:16,564][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
# allow user 'ubuntu' mlockall
ubuntu soft memlock unlimited
ubuntu hard memlock unlimited
After I received this error, I set
ubuntu soft memlock unlimited and
ubuntu hard memlock unlimited in
/etc/security/limits.conf and ran
But the error doesn't disappear.
Now I looked into this doc in which they say there is another option to disable swapping.
That option is to comment out any lines that contain the word
/etc/fstab, but there is no lines with the word in the first place in that file. Does this mean I don't have to do anything and it's configured correctly out of the box?