1.下载redis并修改redis.windows.conf文件,新增一行 maxheap 1024000000 2.进入redis目录下,运行redis-server redis.windows.conf ...
[client]port=3306socket=/application/mysql-5.5.32/tmp/mysql.sock[mysqld]port=3306socket=/application/mysql-5.5.32/tmp/mysql.sockback_log=50max_connections=100max_connect_errors=10table_open_cache=2048max_allowed_packet=16Mbinlog_cache_size=1Mmax_heap_table_..
分类:
数据库 时间:
2017-04-28 12:10:39
阅读次数:
255
Synchronization means multi threads access the same resource (data, variable ,etc) should not cause a corruption to it.If all method of a class promis ...
分类:
其他好文 时间:
2017-04-28 10:26:43
阅读次数:
217
1.背景 2.为什么废弃永久代(PermGen) 3.深入理解元空间(Metaspace) 4.总结 正文分割线 一、背景 1.1 永久代(PermGen)在哪里? 根据,hotspot jvm结构如下(虚拟机栈和本地方法栈合一起了): 上图引自网络,但有个问题:方法区和heap堆都是线程共享的内存 ...
分类:
Web程序 时间:
2017-04-27 23:18:50
阅读次数:
343
1. 在IDE中查看Log信息 当程序执行垃圾回收的时候,会打印一条Log信息。其格式例如以下: D/dalvikvm: <GC_Reason> <Amount_freed>, <Heap_stats>, <External_memory_stats>, <Pause_time> GC_Reason ...
分类:
移动开发 时间:
2017-04-27 19:43:23
阅读次数:
558
大多数JVM将内存区域划分为MethodArea(Non-Heap)(方法区),Heap(堆),ProgramCounterRegister(程序计数器),VMStack(虚拟机栈,也有翻译成JAVA方法栈的),NativeMethodStack(本地方法栈),其中MethodArea和Heap是线程共享的,VMStack,NativeMethodStack和ProgramCount..
分类:
其他好文 时间:
2017-04-27 19:30:27
阅读次数:
120
目录 1.背景 2.为什么废弃永久代(PermGen) 3.深入理解元空间(Metaspace) 4.总结 正文分割线 一、背景 1.1 永久代(PermGen)在哪里? 根据,hotspot jvm结构如下(虚拟机栈和本地方法栈合一起了): 上图引自网络,但有个问题:方法区和heap堆都是线程共享 ...
分类:
Web程序 时间:
2017-04-27 11:40:58
阅读次数:
312
Two Nikifors play a funny game. There is a heap of N stones in front of them. Both Nikifors in turns take some stones from the heap. One may take any ...
分类:
其他好文 时间:
2017-04-26 13:06:46
阅读次数:
168
题目描述: 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。 本题最开始简单的理解为求中位数,使用的是快排的思想,当数据元素为奇数个时,求第n/2大的数,当元素个 ...
分类:
其他好文 时间:
2017-04-26 13:01:56
阅读次数:
164
A sequence S = {s1, s2, ..., sn} is called heapable if there exists a binary tree T with n nodes such that every node is labelled with exactly one ele ...
分类:
其他好文 时间:
2017-04-25 22:16:34
阅读次数:
221