/proc/sys/net/ipv4/tcp_max_tw_buckets
默认的太小了net.ipv4.tcp_syncookies = 0这个参数是怎么得来的?其实是通过ab 简单的压力测试,/var/log/message
里面会有内核的报错信息。
分类:
其他好文 时间:
2014-05-14 22:56:49
阅读次数:
349
CMS,Content Management System,一个很普通的网站内容管理系统,本文章旨在从一定的高度把CMS的功能概念做一个分解论述 ,希望读者可以有所感!...
分类:
其他好文 时间:
2014-05-14 21:28:40
阅读次数:
276
c++ primer 模板与泛型编程 Queue模板的实现...
分类:
编程语言 时间:
2014-05-14 20:45:26
阅读次数:
362
首先 将该代码挂在NGUI的UIroot上
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
Screen.SetResolution(1024, 768, true);//自己想要的分辨率,比如1024*768,true表示全...
分类:
其他好文 时间:
2014-05-14 19:24:25
阅读次数:
404
Master-Worker模式适合在一个任务可以拆分成多个小任务来进行的情况下使用。packagecn.fcl.masterworker;
importjava.util.HashMap;
importjava.util.Map;
importjava.util.Queue;
importjava.util.concurrent.ConcurrentHashMap;
importjava.util.concurrent.ConcurrentLinked..
分类:
编程语言 时间:
2014-05-14 18:26:04
阅读次数:
243
1.简单Java多线程例子(继承Thread)publicclasshelloextendsThread{
privateStringname;
publichello(Stringname){
this.name=name;
}
publicvoidrun(){
for(inti=0;i<5;i++){
System.out.println(name+"运行..."+i);
}
}
publicstaticvoidmain(String[]args){
hellohel..
分类:
编程语言 时间:
2014-05-14 17:45:57
阅读次数:
318
数据库解锁SELECTA.OWNER,A.OBJECT_NAME,B.XIDUSN,B.XIDSLOT,B.XIDSQN,B.SESSION_ID,B.ORACLE_USERNAME,B.OS_USER_NAME,B.PROCESS,B.LOCKED_MODE,C.MACHINE,C.STATUS,C.SERVER,C.SID,C.SERIAL#,C.PROGRAMFROMALL_OBJECTSA,V$LOCKED_OBJECTB,SYS.GV_$SESSIONCWHERE(A.OBJECT_ID=..
分类:
数据库 时间:
2014-05-14 17:43:54
阅读次数:
331
1UIAlertView类似于Android中的Dialog,简单用法如下:UIAlertView*alertView=[[UIAlertViewalloc]initWithTitle:@"Title"message:@"Messate"delegate:nilcancelButtonTitle:@"Cancle"otherButtonTitles:nil,nil];[alertViewshow];2UIActionSheet底部弹出的对话框,较常用,简..
分类:
移动开发 时间:
2014-05-14 16:24:55
阅读次数:
332
expdpsystem/oracledirectory=DB_BAKdumpfile=zhzy.dmpschemas=zhzyexpdpsystem/SYSTEMdirectory=DB_BAKdumpfile=sde__zyyh_zhzy.dmpschemas=(sde,zyyh,zhzy)logfile=expdp_all.logexpdpsystem/SYSTEMdirectory=DB_BAKdumpfile=sde__zyyh_zhzy.dmpschemas=(sde,zyyh,zhzy)logfi..
分类:
数据库 时间:
2014-05-14 16:12:39
阅读次数:
360
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:
其他好文 时间:
2014-05-14 16:06:25
阅读次数:
296