昨天网站有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 的帮助和支持中心。
Exception type: ErrorJsonResultException Exception message 微信请求发生错误!错误代码:41008,说明:missing code
应该是你调用这微信接口时产生的异常
你用当时请求这接口的数据调试一下, 我看微信410008的错误是 丢失code参数
同时正式环境, 建议把SQL 的TCP/TP关了
平时测试时 不会出现这个错误,可能是当时在线人数稍微多了点 就总出现这种问题
@學海無涯: 查看一下, 是否服务器支持不了这么多访问, 因为要调用微信的接口, 可能一个服务器请求返回时慢, 造成后面的请求出错, 你在局域网内建一个目前运行的环境, 用ab试一下, 目前这环境能支持多少并发。 再用ng作负载, 横向加一个服务器, 再用ab试一下
没有日志么?
系统运行没问题的时候就把日志去掉了,应用服务器里面的日志没有,只看到SQL 的服务器有人在不停的攻击服务器
@學海無涯: 网站的话,在系统的日志里面一般会有,计算机---管理---事件查看器---Windows日志---应用程序,看看有什么有用的东西没有?
@顾晓北:
事件类型: 警告
事件来源: 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 的帮助和支持中心。
只看到SQL 的服务器有人在不停的攻击服务器,怎么攻击
就是不停的尝试登陆:Login failed for user ‘sa’ 原因:密码与所提供的登录名不匹配。
错误:18456,严重性:14 状态 8 。好多这样的记录 每秒钟会有6、7条 这个应该会对服务器资源什么的有影响吧
@學海無涯: 加个密码输入错误多次后锁定
@laugher_ccc: 这个是通过网站攻击 还是通过扫描数据库攻击的?
@學海無涯: sa密码你是不是默认的,别人也许是乱试,把sa禁用了
@laugher_ccc: 恩恩
@學海無涯: 你怎么把db放在外网可见的地方?这不是自杀么
@Daniel Cai: 当时为了方便。。。
二货,啥都不提供,怎么看?
我有罪。。。