最近阅读SQLskills SQL101,将Erin Stellato部分稍作整理。仅提取自己感兴趣的知识点,详细内容请阅读原文。 一、Trace Flags推荐开启三个跟踪标记1118、3023、3226跟踪标记1118(适用2016之前版本),避开对SGAM页的使用,在统一区分配新建对象的空间。 ...
分类:
数据库 时间:
2017-08-19 12:53:16
阅读次数:
225
一,背景收到应用服务报警,然后登录上服务器查看原因,发现进程不再了。二,问题分析1,那么判断进程被干掉的原因如下:(1),机器重启了通过uptime看机器并未重启(2),程序有bug自动退出了通过查询程序的errorlog,并未发现异常(3),被别人干掉了由于程序比较消耗内存,..
分类:
其他好文 时间:
2017-07-31 22:04:40
阅读次数:
2796
1.表结构设计 from django.db import models class UserProfile(models.Model): """ 用户信息 """ name = models.CharField(u'姓名', max_length=32) email = models.EmailF ...
分类:
数据库 时间:
2017-07-30 00:53:19
阅读次数:
287
1.boa的配置文件boa.conf Port 80 //服务访问端口 User 0 Group 0 ErrorLog /var/log/boa/error_log //错误日志地址 AccessLog /var/log/boa/access_log //访问日志文件 DocumentRoot /v ...
分类:
Web程序 时间:
2017-07-22 13:29:43
阅读次数:
213
通过ELK监控发现,程序连接mysqlDB失败,通过看程序的log和mysql的errorlog发现mysql中出现error查看Mysql日志发现InnoDB:Error:table`mysql`.`innodb_table_stats`doesnotexistintheInnoDBinternal这个原因很明显,是mysql库的innodb_table_stats表损坏了。首先登录mysql查看..
分类:
数据库 时间:
2017-07-20 14:13:44
阅读次数:
204
MySQL关于aborted告警日志的分析实战Part1:写在最前在MySQL的errorlog中,我们会经常性看到一些各类的Aborted
connection错误,本文中会针对这类错误进行一个初步分析,并了解一个问题产生后的基本排查思路和方法。掌握这种方法是至关重要的,而不是出现问题了,去猜,去试。数..
分类:
数据库 时间:
2017-06-27 13:46:58
阅读次数:
413
1、http2.4.1以前: 第一种 直接拒绝访问 打开 httpd.conf 文件,将一下配置追加到文件最后。 #直接拒绝所有非法域名 ServerName * ServerAlias * Order Allow,Deny Deny from all ErrorLog "/alidata/log/... ...
分类:
Web程序 时间:
2017-06-27 09:49:05
阅读次数:
242
[root@localhost ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf DocumentRoot "/data/www" ServerName www.test.com ErrorLog "logs/test.com_error... ...
分类:
Web程序 时间:
2017-06-17 19:30:02
阅读次数:
177
[root@localhost ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf DocumentRoot "/data/www" ServerName www.test.com ErrorLog "logs/test.com_error... ...
分类:
Web程序 时间:
2017-06-17 19:26:42
阅读次数:
195
第一步:引入Log4net.dll 文件的引用 第二步:添加LogHelper类,代码如下 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threa... ...
分类:
Web程序 时间:
2017-06-17 15:59:14
阅读次数:
229