Tag: 超时预览模式: 普通 | 列表
09-06
21

pjblog全静态化超时问题

pjblog3的静态化是它最大的一个改动,但是也带来了一些不稳定的问题,比如日志超过一定数量,在初始化的时候,就会由于响应时间过长而导致发生如下错误。

引用内容 引用内容
Active Server Pages 错误 'ASP 0113'

脚本超时

/ConContent.asp


超过了脚本运行的最长时间。可以为 Server.ScriptTimeOut 属性指定新值或更改 IIS 管理工具中的相应值来更改此限制。

查看更多...

Tags: PJBLOG 静态化 超时

分类:OpenSource | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 221
09-03
04

远程连接mysql超时的解决办法

远程连接mysql超时的解决办法PHP远程连接MYSQL速度慢,有时远程连接到MYSQL用时4-20秒不等,本地连接MYSQL正常,出现这种问题的主要原因是,默认安装的MYSQL开启了DNS的反向解析,在MY.INI(WINDOWS系统下)或MY.CNF(UNIX或LINUX系统下)文件的[mysqld]下加入skip-name-resolve这一选项就能禁用DNS解析,连接速度会快很多。不过,这样的话就不能在MySQL的授权表中使用主机名了而只能用ip格式。
附录:( How MySQL uses DNS )

引用内容 引用内容
When a new thread connects to mysqld, mysqld will spawn a new thread to handle the request. This thread will first check if the hostname is in the hostname cache. If not the thread will call gethostbyaddr_r() and gethostbyname_r() to resolve the hostname.

If the operating system doesn't support the above thread-safe calls, the thread will lock a mutex and call gethostbyaddr() and gethostbyname() instead. Note that in this case no other thread can resolve other hostnames that is not in the hostname cache until the first thread is ready.

You can disable DNS host lookup by starting mysqld with --skip-name-resolve. In this case you can however only use IP names in the MySQL privilege tables.

查看更多...

Tags: 超时 连接

分类:Database | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 804