aa-logprof: doesn't handle large logs
Bug #387657 reported by
Tom Metro
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Wishlist
|
Unassigned | ||
apparmor (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: apparmor
Ubuntu 8.04.2
Package: apparmor-utils
Version: 2.1+1075-0ubuntu9.2
My first experience with AppArmor was finding a kernel log file that was full of 800 MB of AppArmor warnings from Samba and CUPS. I'm not sure what suddenly enabled AppArmor on this LTS system, but while fixing the problem I noticed....
aa-logprof, while processing an 800 MB log file, drove the load average up into the high 40's. I suspect it was trying to load the whole thing into memory (on a system with 1 GB of RAM). I'd recommend revising the architecture so that it processes the lines as it sees them.
I worked around the problem by splitting the file into a dozen 75MB chunks.
Changed in apparmor (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: aa-tools |
Changed in apparmor: | |
importance: | Undecided → Wishlist |
status: | New → Incomplete |
Changed in apparmor (Ubuntu): | |
status: | Incomplete → Confirmed |
To post a comment you must log in.
Is this still an issue on Ubuntu 14.04 or 14.10?