In Cent OS when we are running java process we might have get an exception saying FileNotFound but file is actually exist in the physical location. Surprisingly this is not happening immediately and it happens after opened few reads are done. There are multiple factors for this issue but in Linux main cause could be few of the OS settings Mainly check the configurations in below file
We need to see two properties nproc and nofile attributes. This attributes sets number of process can run by the user and number of files can concurrently open in Linux system. So in Linux concurrent reads and writes are happening we must need to set these two properties. See below examplevi /etc/security/limits.conf
Here nivan is a user and we need to set both soft and hard process.nivan hard nproc 1024 nivan soft nproc 1024 nivan hard nofile 1024 nivan soft nofile 1024
0 Comments
Post a Comment