Tuesday, February 21, 2017

Log Files Rotated By WebLogic Server 12.1.2 OR 12.1.3 Are Not Closed


Issue Definition:
=============

lsof command for Middleware directory shows that log files rotated by Node Manager are not getting closed by file handler due to this space is not releasing.

[root@test1 ~]# df -h /dev/mapper/VolGroup00-LogVol06_Middleware
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol06_Middleware
50G 39G 8.1G 83% /oracle/Middleware

[root@test1 ~]# lsof -a +L1 /oracle/Middleware/|grep -i delete
java 5634 oracle 305w REG 253,6 5118896 921736 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63956 (deleted)
java 5634 oracle 331w REG 253,6 5118902 921330 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63708 (deleted)
java 5634 oracle 332w REG 253,6 5118898 921336 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63709 (deleted)
java 5634 oracle 335w REG 253,6 5118902 921350 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63710 (deleted)
java 5634 oracle 518w REG 253,6 5118902 921362 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63711 (deleted)
java 5634 oracle 519w REG 253,6 5118898 921364 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63712 (deleted)
java 5634 oracle 520w REG 253,6 5118897 921370 /oracle/Middleware/user_projects/domains/base_domain/servers/ms1/logs/ms1.out63713 (deleted)


Solution 1) Work Around


Restart the managed server ms1 for which files are deleted but space was not released

After restart space got released

[root@test1 ~]# df -h /dev/mapper/VolGroup00-LogVol06_Middleware
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol06_Middleware
50G 30.2G 19.8G 40% /oracle/Middleware


Solution 2) Permanent Fix


There is known Bug for the wls version 12.1.2 &  wls version 12.1.3 ie (Doc ID 2068841.1). apply this patch.

No comments:

Post a Comment