MrCBofBCinTX
Technical User
I have a small program that scans Apache log files for certain "evil" patterns and then blocks those IP addresses from server (not just Apache).
But as these log files grow and grow, the CPU percentage keeps going up.
When I restart Apache after clearing log files, problem goes away, until size grows again.
I don't want the scanning to wait too long since many pages are produced with mod_perl and PostgreSQL values.
Should I be changing how it gets its data or doing something inside of the program?
Any suggestions?
But as these log files grow and grow, the CPU percentage keeps going up.
When I restart Apache after clearing log files, problem goes away, until size grows again.
I don't want the scanning to wait too long since many pages are produced with mod_perl and PostgreSQL values.
Should I be changing how it gets its data or doing something inside of the program?
Any suggestions?