摘要: 最近数据库经常出现异常停顿和阻塞,通过show processlist发现大量类似如下的连接:|592|unauthenticated user|192.168.3.20:35320|NULL|Connect| |login|NULL||593|unauthenticated user|192.168.3.20:35321|NULL|Connect| |login|NULL||594|unauthenticated user|192.168.3.20:35322|NULL|Connect| |login|NULL|google后发现和域名解析有关系。不管连接的方式是经过hosts或是IP,my 阅读全文
posted @ 2013-05-09 13:27 糖豆爸爸 阅读(270) 评论(0) 推荐(0)
摘要: 最近服务器上经常出现mysql进程占CPU100%的情况,使用show processlist命令后,看到出现了很多状态为LOCKED的sql。使用show status like 'table%'检查Table_locks_immediate和Table_locks_waited,发现Table_locks_waited偏大。出问题的表是MyISAM,分析大概是MyISAM的表锁导致。MyISAM适合于读频率远大于写频率这一情况。而我目前的应用可能会出现在某一时段读写频率相当。大致如下:一个客户端发出需要长时间运行的SELECT其他客户端在同一个表上发出INSERT或者UPD 阅读全文
posted @ 2013-05-09 13:26 糖豆爸爸 阅读(251) 评论(0) 推荐(0)
摘要: getWriter() has already been called for this response PrintWriter out = response.getWriter();OutputStream outputStream = response.getOutputStream(); response重复调用!删除一个即可如果想继续调用,下面再重设response.reset();PrintWriter out = response.getWriter();response.setContentType(String); 阅读全文
posted @ 2013-05-09 13:25 糖豆爸爸 阅读(211) 评论(0) 推荐(0)
Live2D