Comment 12 for bug 1523698

Revision history for this message
Chow Loong Jin (hyperair) wrote :

As a temporary workaround, I've been running this script in background which kills indicator-session-service when it hits 500M of rss:

#!/bin/sh
while sleep 1; do
    rss=$(ps -C indicator-session-service -o rss=)
    if [ -n "$rss" ] && [ "$rss" -gt 500000 ]; then
        pkill -f indicator-session-service -u hyperair && \
            echo "[$(date)] killed at $rss"
    fi
done