首页 新闻 会员 周边

网站崩溃怎么找原因?

0
悬赏园豆:5 [已解决问题] 解决于 2016-08-08 15:08

昨天网站有500多人同时在线使用,就崩溃了,出了各种离奇的错误,不知道应该在哪里找问题,求大神帮忙!!!

问题补充:

系统日志里面都报微信的这个41008错误,但是人少的时候都很正常。。。

事件类型: 警告
事件来源: ASP.NET 4.0.30319.0
事件种类: Web Event
事件 ID: 1309
日期: 2016-7-12
事件: 20:41:31
用户: N/A
计算机: NET2
描述:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 2016-7-12 20:41:31 Event time (UTC): 2016-7-12 12:41:31 Event ID: d7d14fd5b1c8423985c1da8979e88970 Event sequence: 23929 Event occurrence: 1360 Event detail code: 0 Application information: Application domain: /LM/W3SVC/78128134/Root-1-131127946386406250 Trust level: Full Application Virtual Path: / Application Path: E:\ExamSystemWX\ Machine name: NET2 Process information: Process ID: 2864 Process name: w3wp.exe Account name: NT AUTHORITY\LOCAL SERVICE Exception information: Exception type: ErrorJsonResultException Exception message: 微信请求发生错误!错误代码:41008,说明:missing code
at Senparc.Weixin.HttpUtility.Get.GetJson[T](String url, Encoding encoding)
at Senparc.Weixin.QY.AdvancedAPIs.OAuth2.OAuth2Api.GetUserId(String accessToken, String code, Int32 agentId)
at ExamSystemWX.Login.GetWXUserName(String code) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 208
at ExamSystemWX.Login.Page_Load(Object sender, EventArgs e) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 28
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information: Request URL: http://wks.dynemed.cn/Login.aspx Request path: /Login.aspx User host address: 182.131.10.215 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\LOCAL SERVICE Thread information: Thread ID: 36 Thread account name: NT AUTHORITY\LOCAL SERVICE Is impersonating: False Stack trace: at Senparc.Weixin.HttpUtility.Get.GetJson[T](String url, Encoding encoding)
at Senparc.Weixin.QY.AdvancedAPIs.OAuth2.OAuth2Api.GetUserId(String accessToken, String code, Int32 agentId)
at ExamSystemWX.Login.GetWXUserName(String code) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 208
at ExamSystemWX.Login.Page_Load(Object sender, EventArgs e) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 28
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

一念成魔卍的主页 一念成魔卍 | 初学一级 | 园豆:4
提问于:2016-07-13 13:57
< >
分享
最佳答案
0

 

Exception type: ErrorJsonResultException Exception message 微信请求发生错误!错误代码:41008,说明:missing code

应该是你调用这微信接口时产生的异常

 

你用当时请求这接口的数据调试一下, 我看微信410008的错误是 丢失code参数

 

同时正式环境, 建议把SQL 的TCP/TP关了

收获园豆:5
风浪 | 老鸟四级 |园豆:2996 | 2016-07-15 11:14

 平时测试时 不会出现这个错误,可能是当时在线人数稍微多了点 就总出现这种问题

一念成魔卍 | 园豆:4 (初学一级) | 2016-07-18 13:42

@學海無涯: 查看一下, 是否服务器支持不了这么多访问, 因为要调用微信的接口, 可能一个服务器请求返回时慢, 造成后面的请求出错, 你在局域网内建一个目前运行的环境, 用ab试一下, 目前这环境能支持多少并发。 再用ng作负载, 横向加一个服务器, 再用ab试一下

风浪 | 园豆:2996 (老鸟四级) | 2016-07-18 14:18
其他回答(3)
0

没有日志么?

顾晓北 | 园豆:10844 (专家六级) | 2016-07-13 14:00

系统运行没问题的时候就把日志去掉了,应用服务器里面的日志没有,只看到SQL 的服务器有人在不停的攻击服务器

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-13 14:07

@學海無涯: 网站的话,在系统的日志里面一般会有,计算机---管理---事件查看器---Windows日志---应用程序,看看有什么有用的东西没有?

支持(0) 反对(0) 顾晓北 | 园豆:10844 (专家六级) | 2016-07-13 14:11

@顾晓北: 

事件类型: 警告
事件来源: ASP.NET 4.0.30319.0
事件种类: Web Event
事件 ID: 1309
日期: 2016-7-12
事件: 20:41:31
用户: N/A
计算机: NET2
描述:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 2016-7-12 20:41:31 Event time (UTC): 2016-7-12 12:41:31 Event ID: d7d14fd5b1c8423985c1da8979e88970 Event sequence: 23929 Event occurrence: 1360 Event detail code: 0 Application information: Application domain: /LM/W3SVC/78128134/Root-1-131127946386406250 Trust level: Full Application Virtual Path: / Application Path: E:\ExamSystemWX\ Machine name: NET2 Process information: Process ID: 2864 Process name: w3wp.exe Account name: NT AUTHORITY\LOCAL SERVICE Exception information: Exception type: ErrorJsonResultException Exception message: 微信请求发生错误!错误代码:41008,说明:missing code
at Senparc.Weixin.HttpUtility.Get.GetJson[T](String url, Encoding encoding)
at Senparc.Weixin.QY.AdvancedAPIs.OAuth2.OAuth2Api.GetUserId(String accessToken, String code, Int32 agentId)
at ExamSystemWX.Login.GetWXUserName(String code) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 208
at ExamSystemWX.Login.Page_Load(Object sender, EventArgs e) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 28
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information: Request URL: http://wks.dynemed.cn/Login.aspx Request path: /Login.aspx User host address: 182.131.10.215 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\LOCAL SERVICE Thread information: Thread ID: 36 Thread account name: NT AUTHORITY\LOCAL SERVICE Is impersonating: False Stack trace: at Senparc.Weixin.HttpUtility.Get.GetJson[T](String url, Encoding encoding)
at Senparc.Weixin.QY.AdvancedAPIs.OAuth2.OAuth2Api.GetUserId(String accessToken, String code, Int32 agentId)
at ExamSystemWX.Login.GetWXUserName(String code) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 208
at ExamSystemWX.Login.Page_Load(Object sender, EventArgs e) in E:\Project\Dynemed\ExamSystem\ExamSystemWX\ExamSystemWX\Login.aspx.cs:line 28
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:03
0

只看到SQL 的服务器有人在不停的攻击服务器,怎么攻击

laugher_ccc | 园豆:593 (小虾三级) | 2016-07-13 14:28

就是不停的尝试登陆:Login failed for user ‘sa’ 原因:密码与所提供的登录名不匹配。 

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:09

错误:18456,严重性:14 状态 8  。好多这样的记录 每秒钟会有6、7条  这个应该会对服务器资源什么的有影响吧

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:10

@學海無涯: 加个密码输入错误多次后锁定

支持(0) 反对(0) laugher_ccc | 园豆:593 (小虾三级) | 2016-07-14 09:13

@laugher_ccc: 这个是通过网站攻击 还是通过扫描数据库攻击的?

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:16

@學海無涯: sa密码你是不是默认的,别人也许是乱试,把sa禁用了

支持(0) 反对(0) laugher_ccc | 园豆:593 (小虾三级) | 2016-07-14 09:29

@laugher_ccc: 恩恩 

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:36

@學海無涯: 你怎么把db放在外网可见的地方?这不是自杀么

支持(0) 反对(0) Daniel Cai | 园豆:10424 (专家六级) | 2016-07-14 09:55

@Daniel Cai: 当时为了方便。。。

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 12:26
0

二货,啥都不提供,怎么看?

| 园豆:780 (小虾三级) | 2016-07-13 20:38

我有罪。。。

支持(0) 反对(0) 一念成魔卍 | 园豆:4 (初学一级) | 2016-07-14 09:11
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册