When you view application logs in the Enterprise Distributed Application Service (EDAS) console, the log viewer may fail to load with an error. This happens because the EDAS agent cannot start the threads required to retrieve and display logs.
Cause
The ulimit value on the host machine is set too low. The nproc parameter, which is controlled through ulimit, defines the maximum number of processes and threads a user can create. When this value is too low, the threads fail to start, which causes the log viewer to fail.
Solution
Raise the nproc limit for the admin user by editing the system limits configuration file.
Open
/etc/security/limits.d/20-nproc.confin a text editor:sudo vi /etc/security/limits.d/20-nproc.confAdd the following line to remove the process limit for the
adminuser:Field Value Description adminUser name The Linux user under which the EDAS agent runs softLimit type The soft limit, which can be raised up to the hard limit nprocResource Maximum number of processes and threads the user can create unlimitedValue Removes the cap on thread creation admin soft nproc unlimitedRun the following command to reload kernel parameters:
sysctl -p &> /dev/null(Optional) Restart the EDAS agent to make sure it picks up the new limit.
Verify the fix
Confirm the new limit is active: The output should show
unlimited.su - admin -c "ulimit -u"Open the EDAS console, navigate to your application, and open the log viewer. The application logs should now load without errors.
What to do if the issue persists
Upgrade the EDAS agent to the latest version. The root cause has been fixed in newer releases, which eliminates the need for the manual workaround.
Check other system limits. Run
ulimit -aas theadminuser to review all resource limits and confirm no other limit is blocking thread creation.If the error continues after trying these steps, contact EDAS technical support with the output of
ulimit -aand the EDAS agent version for further diagnosis.