Set memory_limit = 512M for console application