tcp / ip连接错误

我们有一个128GB主内存的web服务器,在Ubuntu 16.04上有32个vCPU。 它运行nginx,php-fpm,postgresqlmysql和beanstalkd应用程序。

当networking服务器获得高吞吐量stream量时,networking服务器会给出来自不同应用程序的连接错 在平时,一切都好。

PostgreSQL的:

[PDOException] SQLSTATE[08006] [7] could not connect to server: Connection timed out Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? 

MySQL的:

  [PDOException] SQLSTATE[HY000] [2002] Connection timed out 

Beanstalkd:

 fwrite(): send of 8192 bytes failed with errno=32 Broken pipe 

服务器(sysctl.conf可能)的哪些设置会影响这些限制? 我怎样才能增加这些限制,以避免错误?