应用程序在与postgres数据库的多个连接上崩溃 [英] App crash on multiple connections to postgres database

查看:101
本文介绍了应用程序在与postgres数据库的多个连接上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的应用程序,它建立postgresql数据库连接。它崩溃了1015连接,其中postgresql在Linux机器上。并在2147连接崩溃,其中postgressql在Windows机器上。应用程序在Windows服务器2012R2标准上运行。

A simple app which makes a postgresql database connection . it crashes on making 1017 connection where postgresql is on Linux machine. and crashes at 2147 connections where postgressql is on Windows machine. App runs on Windows server 2012R2 standard.

代码 

for(int j = 1; j< No_of_Conn + 1; j ++)

{

String ^ temp;

temp = gcnew字符串(g_Database_Pg);

connection_Pg1 [j] = gcnew NpgsqlConnection(temp);

connection_Pg1 [j] - >打开( );

for(int j=1 ;j<No_of_Conn+1;j++)
{
String^ temp;
temp = gcnew String(g_Database_Pg);
connection_Pg1[j] = gcnew NpgsqlConnection(temp);
connection_Pg1[j]->Open();

}

崩溃信息

推荐答案

您好,

欢迎使用Microsoft Visio论坛。此论坛主要关注一般性问题,有关IT专业人员的评论和讨论,请访问 Visio应用程序。  ;

Welcome to Microsoft Visio forum. This forum focuses on the general questions, comments and discussions for IT Professionals on Visio application. 

我注意到您的问题与访问PostgreSQL数据库服务器的Npgsql连接有关,而该服务器不是Microsoft的产品。为了进一步排除故障,我认为最好在PostgreSQL方面或Npgsql方面提出问题以获得更多帮助。

I notice your issue is related to the Npgsql connection to access the PostgreSQL database server which is not the product in Microsoft. For further troubleshooting, I think it is better to ask a question in PostgreSQL side or Npgsql side for more help.

对于PostgreSQL:  https://www.postgresql.org/support/

For PostgreSQL: https://www.postgresql.org/support/

对于Npgsql:  http://www.npgsql.org/#getting-help

For Npgsql: http://www.npgsql.org/#getting-help

Microsoft将此信息提供为方便你。这些网站不受微软控制。 Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。在从上述链接中检索任何建议之前,请确保您完全了解风险


这篇关于应用程序在与postgres数据库的多个连接上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆