这几天在做一个性能测试,写了一个模拟发送http的程序。模拟100并发的情况下,随机发http get的请求。放到服务器上运行一段时间抛出Too many open files的异常。 这几天在做一个性能测试,写了一个模拟发送http的程序。模拟100并发的情况下,随机发http get的请求。放....
分类:
其他好文 时间:
2014-12-16 16:54:43
阅读次数:
251
http://www.javacodegeeks.com/2012/11/mybatis-tutorial-crud-operations-and-mapping-relationships-part-1.htmlCRUD OperationsMyBatis is an SQL Mapper too...
分类:
移动开发 时间:
2014-12-16 16:36:48
阅读次数:
172
/*
?*????ip_append_data()?and?ip_append_page()?can?make?one?large?IP?datagram
?*????from?many?pieces?of?data.?Each?pieces?will?be?holded?on?the?socket
?*????until...
分类:
移动开发 时间:
2014-12-16 11:57:52
阅读次数:
268
Descriptionliympanda, one of Ikki’s friend, likes playing games with Ikki. Today after minesweeping with Ikki and winning so many times, he is tired o...
分类:
其他好文 时间:
2014-12-15 23:15:31
阅读次数:
287
序言 之前用python爬取网页的时候,一直用的是regex或者自带的库sgmllib里的SGMLParser。但是遇到复杂一点的情况时,SGMLParser往往就不那么给力了!(哈,难道说我 too native了?毕竟beautifulSoup是继承sgmlparser的么~)所以,我寻寻觅觅....
分类:
编程语言 时间:
2014-12-15 16:46:54
阅读次数:
263
DescriptionThe little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-...
分类:
其他好文 时间:
2014-12-14 21:10:37
阅读次数:
216
题目:Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. ...
分类:
其他好文 时间:
2014-12-14 18:30:16
阅读次数:
176
题目来源:http://poj.org/problem?id=2413 / http://acm.hdu.edu.cn/showproblem.php?pid=1316
How many Fibs?
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10742
...
分类:
其他好文 时间:
2014-12-14 14:38:05
阅读次数:
238
Problem Description "Guanxi" is a very important word in Chinese. It kind of means "relationship" or "contact". Guanxi can be based on friendship, but...
分类:
其他好文 时间:
2014-12-14 11:59:26
阅读次数:
150
(1)、max_connections:允许的同时客户的数量。增加该值增加 mysqld 要求的文件描述符的数量。这个数字应该增加,否则,你将经常看到 too many connections 错误。 默认数值是100,我把它改为1024 。(2)、record_buffer:每个进行一个顺序扫描的...
分类:
数据库 时间:
2014-12-14 00:41:09
阅读次数:
269