[返回] [最新] [最热门] [最高评价]

memcache连接慢又一例

继上次解决memcache连接慢问题以来,好长一段时间没在这个问题上翻过跟头。这一次我又在生产环境观察到php和memcache的连接时间经常会在50ms以上。

作为一个cache,占用了这么长的执行时间,天理何在?

实际的运行环境如下:

apache + mod_php

php-memcache扩展版本为2.2.5

memcache的并发连接数在400左右,相当少

这次memcach
...

Volcano 2009-12-22 21:56 | 查看: 2316

使用markdown格式写Todo list

上周我完成了chrome的markdown-preview扩展的修改,使它支持markdown文件的实时预览功能。现在可以考虑用这个功能来做一些更酷的事情,比如说,写Todo list?

开始干

首先我找到了一个叫topmarks的markdown样式文件,这个样式文件能给出一个漂亮的Todo list样式,我把它合并到了 修改后的markdown preview插件

关注了一下markdo
...

Volcano 2011-12-26 11:10 | 查看: 3796

About ESP8266 module

How to detect the flash size of ESP8266 module? Install latest esptool from GitHub or with pip Wire ESP8266 module with a programmer Run command esptool.py flash_id You should get some information abo
...

Volcano 2018-12-26 12:43 | 查看: 53

在macOS下安装aria2并自动启动RPC

什么是Aria2? Aria2 is a lightweight download software with Multi-Connection support. Besides HTTP(s) and FTP, it also supports BitTorrent and Metalink. 安装Aria2 最简单的方法是采用homebrew安装aria2 brew install aria2
...

Volcano 2019-01-02 13:41 | 查看: 246

Discourse维护笔记

业余需要维护一个Discourse讨论区,简单记录一些常用内容
...

Volcano 2018-08-01 10:58 | 查看: 1152

My hackintosh build

High Sierra 10.13.5 Components i3 8100 ASUS h110m-k d3 MATX board (Add micro code to BIOS, support i3 8100) 8G x 2 DDR3 1600 RAM (For AMD only) Micron 1100 256 GB Solid State Drive Huntkey SUPER 400N
...

Volcano 2018-07-04 15:08 | 查看: 877

Migrate from MediaWiki to GitBook

Export data from MediaWiki Using ‘Special:Export’ to export all pages at MediaWiki Go to Special:Allpages and choose the desired article/file. Copy the list of page names to a text editor
...

Volcano 2018-06-06 15:18 | 查看: 524

DA14580 advertises to a specify channel

For BLE, Channels 37, 38, and 39 are used only for sending advertisement packets. DA14580 advertises at channel 37, 38 and 39 in the example project from Dialog. But sometimes we need it advertises to
...

Volcano 2018-05-17 11:00 | 查看: 706

Simple script for J-Link RTT viewer

I debug NRF52 chip with JLink real time terminal. It’s pretty to use J-Link RTT viewer on my macOS. For example, I ran this command for open a RTT viewer window. you@yourcomputer:~$JLinkExe -dev
...

Volcano 2018-04-08 15:10 | 查看: 567

Install extension for macOS built-in PHP

macOS High Sierra 10.13.3 ships with PHP 7.1.7. I’m trying to install an extension for the built-in PHP. I tried the pecl command but no lucky because SIP (System Integrity Protection) protectio
...

Volcano 2018-03-22 14:33 | 查看: 554

在macOS下用homebrew安装php 7.1以及pecl

用homebrew默认安装的php 7.1没有包含pecl命令。但是重新安装可以解决这个问题,如果出现libpng不兼容问题,可以加上-s参数 brew remove php71 brew install php71 --with-pear
...

Volcano 2017-07-25 21:29 | 查看: 1177

MediaWiki的维护脚本

MediaWiki的 maintenance 目录下存放着维护脚本,记录一下。 createAndPromote.php 用于创建或者修改已经存在的用户。参数如下 php createAndPromote.php [--bureaucrat] [--sysop] [--bot] [--custom-groups=<group1>,<group2>] [--force
...

Volcano 2017-05-03 10:37 | 查看: 972

...更多...