Today i receive a disk full alarm from my portal server. As usual i delete some logs and files left behind, but for this time this does not solve the issue.
Search for big files or what folder is bigger on linux is hard using du. Googling i found a nice toll and what i found was a big surprise.
I setup NCDU (NCurses Disk Usage) is a curses-based version of the well-known “du”, and provides a fast way to see what directories are using your disk space.
The setup is easy:
1 - yum install ncurses-devel ncurses
2 – download ncdu
3 – untar the file
4- ./configure –prefix=/usr
5 – make && make install
To run just type ncdu at / and the tool will scan your entire server.
Navigating on the toll i found a big folder inside of the connections portlets called “logs” full of files 5GB. The path on my server is :
/opt/IBM/WebSphere/wp_profile/installedApps/portalCell/PA_icWEFPtlts.ear/snor.pf.portlets.war/WEB-INF/logs
I check my server and no tarces are on.
Why these logs are there? I don’t know yet. I just clean my server.
NCDU did the trick ! Thanks.