PDA

View Full Version : در دسترس نبودن دیتابیس ها توسط سایت ولی قابل دسترس به صورت remote



silverfox
یک شنبه 23 مهر 1391, 10:18 صبح
سلام خسته نباشید.
من هاست hsphere دارم که بعضی وقت ها به مدت چند دقیقه تا حتی یک روز دیتابیس هاش هم sql server و هم mysql از دسترس خارج می شه
جوملا که با mysql کار میکنه این error رو میده
Database connection error (2): Could not connect to MySQL.
و asp.net هم که با sql server کار می کنه این رو میگه
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)] System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) +4846887 System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189 System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90 System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376 System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221 System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189 System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185 System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31 System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject) +433 System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject) +499 System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection) +65 System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117 System.Data.SqlClient.SqlConnection.Open() +122 Silverfoxy.Default.Page_Load(Object sender, EventArgs e) +300 System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
ولی به صورت ریموت با مثلا sql server می تونم به دیتابیس وصل بشم جدول هامو ببینم query اجرا کنم مشکلی نداره.
به هاست هم که می گم تا اونا بیان نگاه بکنن معمولا چند ساعتی می گذره و می گن که ما مشکلی نمی بینیم.
بعضی وقت ها هم چند بار که ریفرش بکنی صفحه رو بدون ارور لود می شه ولی باز دفعه بعد ارور می ده.
می خواستم ببینم چیزی به فکرتون می رسه؟!

silverfox
سه شنبه 25 مهر 1391, 10:29 صبح
پاسخ host این بوده
The web server these are on has a higher number than usual recycles of the IIS service. When this happens the db will become unreachable as the service appears to run out of connections hitting the internal IIS limit then recycle.
یعنی مشکل از کجاست؟سخت افزار سایت پاسخگو نیست؟کسی می تونه توضیح بده؟