`
ycsk
  • 浏览: 153868 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
今天做主从同步里,执行slave start报了以下错误。 引用 Fatal error: The slave I/O thread stops because master and slave have different values for the COLLATION_SERVER global variable. The values must be equal for the Statement-format replication to work 意思是因为主从之间的COLLATION_SERVER这个全局变量不同,slave停止工作了。 查看MySQL手册,这个变量的控制默认的 ...
在JVM中除了有年轻代、年老代外,还一个持久代,主要用来存放类对象的meta-data,PermGen和你设置的Xmx无关,而是通过MaxPermSize设置。如果你的应用程序代码量很大会很快出现OutOfMemoryError。 引用 The permanent generation is special because it holds meta-data describing user classes (classes that are not part of the Java language). Examples of such meta-data are objects descri ...
以前直接用squid命令进行启动,但这次发现squid命令执行以后,不监听端口,没有任何反应。没有报错提示信息,比较奇怪,后来发现我的公网不通。公网通了以后,启动一切正常。查看squid进程,发现一些dns进程, root 3665 0.0 0.0 53868 2360 ? Ss May07 0:00 /byread/bin/squid/sbin/squid nobody 3735 0.0 0.5 117764 41072 ? Sl May07 0:36 (squid) nobody 3736 0.0 0. ...
在tomcat前加了一个nginx,做动静分离,分别到tomcat和squid,发现nginx不停的报以下错误。 upstream sent too big header while reading response header from upstream 在网上查找资料,原因是后端回应的数据包的包头长度超过了nginx默认的长度4K or 8K(根据系统的page大小而定)。这时需要修改nginx的包头长度的大小。 Changes with nginx 0.3.12 26 Nov 2005 ...
在进行mysql数据库初始化时会一些警告信息,大概意思是:MySQL 7.0版本将弃用log_slow_queries,如下: 100504 13:47:02 [Warning] The syntax '--log_slow_queries' is deprecated and will be removed in MySQL 7.0. Please use '--slow_query_log'/'--slow_query_log_file' instead. OK 100504 13:49:55 [Warning] options --log-slow-admin-statemen ...
The Executor represents a thread pool that can be shared between components in Tomcat. Historically there has been a thread pool per connector created but this allows you to share a thread pool, between (primarly) connector but also other components when those get configured to support executors Exec ...
在用innobackupex备份数据库是出现以下报错信息时,主要是因为mysql主动断开了空闲连接,可以修改innobackupex文件,连接时临时增加空闲等待时间。 xtrabackup: Transaction log of lsn (73 943434069) to (73 953657096) was copied. Pipe to mysql child process broken: ERROR 2006 (HY000) at line 15: MySQL server has gone away if (compare_versions($mysql_serv ...
在mysql的设置中有两个选项,主动断开空闲连接的等待时间。 wait_timeout The number of seconds the server waits for activity on a noninteractive connection before closing it. This timeout applies only to TCP/IP and Unix socket file connections, not to connections made via named pipes, or shared memory. interactive_timeout The ...
Apache对外的目录下存放程序保存的文件,但是有些文件不允许用户访问。 <FilesMatch "\.(brm|txt|TXT|BRM)$"> Deny from all </FilesMatch> 不允许访问以.txt结尾的文件。

XtraDB内部原理

XtraDB的内部原理,原文链接:http://www.percona.com/docs/wiki/percona-xtradb:internals:start。 可以从中得到一些关键参数的优化。
今天在tomcat前面加了一个nginx做动静分离,静态文件由squid来提供服务。查看nginx日志发现一些状态代码499,相关说明在网上搜索到这个链接:http://www.blogkid.net/archives/2582.html。
我喜欢做一些系统性能优化事情,觉得这样有种成就感,实现了自己的价值。所以经常到系统上去top、netstat、uptime看看系统运行的状况。今天我对mysql数据库进行索引创建。 mysql的慢查询日志是我部署环境时就打开了的。 mysqldumpslow是对慢查询日志进行统计的工具, 讲一下有用的参数: -s 排序选项:c 查询次数 r 返回记录行数 t 查询时间 -t 只显示top n条查询 mysqldumpslow -s r -t 10 slow.log 根据各种排序条件进行统计,然后将查询条件字段建立索引。当然也需要根据表的实际情况来进行判断,比如表中的记录数基本不增加而且记录数 ...
今天实然接到通知,说服务器上的服务down了,因为在外面无法查看,过了一会同事又说是因为网络不通重启了网卡又正常了。回到家上服务器进行检查,没有报错,也没有发现什么系统的异常。觉得比较奇怪就上网搜索了一下,发现也有人遇到了Broadcom BCM5709在centos系统出现网卡不工作的情况。重新安装网卡驱动,只能再观察是否还会再出现这种情况。 lspci 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 01:00.1 Ethernet contro ...

NTP服务

在ntp server上重新启动ntp服务后,ntp server自身或者与其server的同步的需要一个时间段,这个过程可能是5分钟,在这个时间之内在客户端运行ntpdate命令时会产生no server suitable for synchronization found的错误
apache错误日志显示: exit signal file size limit exceeded 查看日志文件,发现mod_jk的日志超过2G,清空日志文件不再报错。
Global site tag (gtag.js) - Google Analytics