An error occurred while a client was connecting to the server

I found my server Xorg running, and DISPLAY=:0
Is there any other way to solve this problem?

I solved this problem by adding -display :0 after the mpirun command.

But when I open a large model on client, the server will automatically disconnect, can someone tell me why this happens?

This is the error message after the server is disconnected

Probably not enough memory.