摘要:
mnesia overload是个很典型的问题,下面我找到一些老外处理"mnesia overload"消息的方案If you're using mnesia disc_copies tables and doing a lot of writes all at once, you've probably run into the following message=ERROR REPORT==== 10-Dec-2008::18:07:19 ===Mnesia(node@host): ** WARNING ** Mnesia is overloaded: 阅读全文
摘要:
近期偶然的机会看到一些go的websocket技术方案,顺便写了个demo,玩了一下:首先安装websocket包go get code.google.com/p/go.net/websocketwebsocket 聊天室代码:package main import ( "fmt" "io" "bufio" "net/http" "code.google.com/p/go.net/websocket" "container/list") var connid intvar c 阅读全文
摘要:
57个Web框架性能大测试-数据库查询 gemini,openresty,servlet分列前三,Json序列化 finagle,onion,gemini夺得前三:http://www.techempower.com/benchmarks/#section=data-r4Database access test (single query)In this test, each request is processed by fetching a single row from a simple database table. That row is then serialized as a J 阅读全文
摘要:
通过修改proc系统的drop_caches清理free的cache$echo 3 > /proc/sys/vm/drop_caches说明,切记释放前最好sync一下,防止丢数据。drop_caches的详细文档如下:Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.To free pagecache:* echo 1 > /proc/sys/vm/drop_cachesTo 阅读全文