Our server is 2c8g, but once we query a little large query from mongoDB, the server crash. May I ask where the problem may be?

Welcome to the forum!

How many rows of data are returned from your query? It sounds like your server is running out of memory.