Automatic check for memory size and adapting the database cache to fill no more then 50% of this.