最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类。结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing in...
分类:
数据库 时间:
2015-04-21 22:29:12
阅读次数:
297
Hadoop调优mapred.tasktracker.map.tasks.maximum官方解释:The maximum number of map tasks that will be runsimultaneously by a task tracker.我的理解:一个tasktracker最多...
分类:
其他好文 时间:
2015-04-21 17:50:58
阅读次数:
122
假设我们在机器101上 mv /etc/fdfs/client.conf.sample /etc/fdfs/client.conf 修改tracker配置项 tracker_server=192.168.56.1:22122 执行 /usr/bin/fdfs_monitor /etc/fdfs/client.conf ----------------------...
分类:
其他好文 时间:
2015-04-21 10:01:47
阅读次数:
1357
先说环境:win7旗舰版,配CRT连接虚拟机,虚拟机用的vmware Player,安装的CentOS6.4版本。1.添加用户useradd fastdfs这步可以不做,后面的操作用root账号。2.创建数据存储目录 mkdir -p /export/fastdfs/{strage,tracker}...
分类:
其他好文 时间:
2015-04-20 12:57:44
阅读次数:
305
文件:jboss7\bin\standalone.conf.bat配置:rem # JVM memory allocation pool parameters - modify as appropriate.set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSiz...
分类:
其他好文 时间:
2015-04-20 12:40:30
阅读次数:
415
本文是 tracker.conf 配置文件的详细介绍。1 基本配置disable#func:配置是否生效#valu:true、falsedisable=falsebind_addr#func:绑定IP#valu:IP地址bind_addr=192.168.6.102port#func:服务端口#va...
Memcached的内存管理方式Memcached采用了名为Slab Allocation的机制分配,管理内存。Slab Allocation的原理相当简单。将分配的内存分割成各种尺寸的块(chucnk),并把尺寸相同的块分成组(chucnk的集合)如图:而且slab Allocation还有重复使...
分类:
系统相关 时间:
2015-04-18 19:11:07
阅读次数:
183
METHOD 1:Consider the case where we do not know the number of elements in each row at compile time, i.e. both the number of rows and number of columns...
分类:
其他好文 时间:
2015-04-18 17:30:37
阅读次数:
124
Channel Allocation 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #in...
分类:
其他好文 时间:
2015-04-17 22:12:55
阅读次数:
135
1. malloc()函数
1.1 malloc的全称是memory allocation,中文叫动态内存分配。
原型:extern void *malloc(unsigned int num_bytes);
说明:分配长度为num_bytes字节的内存块。如果分配成功则返回指向被分配内存的指针,分配失败返回空指针NULL。当内存不再使用时,应使用free()函数将内存块释放。
1....
分类:
其他好文 时间:
2015-04-17 18:24:20
阅读次数:
190