It looks like the reason for this behaviour was telescope. Although I´m running the script on the command line the memory rises as soon as telescope auto-refresh is active. As soon as I pause the auto-refresh, memory consumption stays at the same level.