from univention.management.console.resources import moduleManager, categoryManager
from univention.management.console.log import log_init
log_init('/dev/null', 0)
import gc, os, subprocess

for i in range(100):
  print(int(subprocess.check_output('grep RssAnon /proc/%d/status' % (os.getpid(),), shell=True).split()[1]))
  moduleManager.load()
  gc.collect()
