Description

This article explains the procedure on how to resolve if /var/log/ partition increases because of the fileHandleLeak.log file.

 

Symptoms

A few probable causes for this issue are as follows:

 

. When the application fails to close files that are no longer needed, or opens huge numbers of files unnecessarily, this is called a file or file handle leak.

. Junos Space creates large fileHandleLeak.log due to huge number of HTTPD processes

 

Solution

Command to verify the list of Open Files 
# lsof

Command to list all running processes on the system
# ps -ef 


 

1. Login to Junos Space CLI

 

2. Edit the crontab using the 'crontab -e' command.

 

# crontab -e

 

3. Add the below line in crontab to delete the file every 60 minutes.

 

*/60 * * * * rm -rf /var/log/fileHandleLeak.log

 

4. Save the crontab

 

wq!


The above solution is a temporary fix. With reference to PR 1778019, the permanent fix will be available on 23.1 - Junos Space Platform 23.1/R1 Patch v3 which is yet to be released

 

Modification History

2024-05-30 : Article Created