应用程序在与postgres数据库的多个连接上崩溃

编程入门 行业动态 更新时间:2024-10-24 02:02:25
本文介绍了应用程序在与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 onVisio application.

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

I notice your issue is related to theNpgsql 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: www.postgresql/support/

For PostgreSQL:www.postgresql/support/

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

For Npgsql:www.npgsql/#getting-help

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

更多推荐

应用程序在与postgres数据库的多个连接上崩溃

本文发布于:2023-10-28 19:39:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537593.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   在与   应用程序   数据库   postgres

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!