I am running many python process as services under SystemD. The count could exceed 200 python system services which i found using the below command
systemctl list-units --type=service | grep "search string specfic to my created python services" | wc -l
output:245
I know that these many services can create so many logs that a disk could be filled.
So I was thinking to setup logrotate and delete logs in a fixed interval. But now I have totally run out of the disk space, and I tried many solutions to clear any space possible and find where space is getting occupied but no luck.
whole 49gb diskspace is used up:
trying to find what dir occupied more space.
I had similar problem in gcp, disk got full, but I resolved it by deleting trash listed by this command.
sudo find / -type f -printf '%12s %p\n' 2>/dev/null|awk '{if($1>999999999)print $0;}'
but I when i am using this the only thing it lists is /proc/kcrore
,
I know i can't delete this