Are you using a custom Bitcoin Core node? Because dbcache is hard capped at 16gb currently. Though if you read that github link andrewtoth posted you'll see they are trying to increase it maybe by next release.