Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y ...
分类:
其他好文 时间:
2016-12-08 23:19:52
阅读次数:
201
一、环境描述DB:redis3.2.5OS:centos6.6_x64IP:192.168.80.131/132/133PORT:7000redis集群模式,服务已启动二、具体操作1.三个独立的集群节点,每个集群只有自己一个节点[root@mysql-131~]#redis-cli-c-p7000127.0.0.1:7000>clusterinfocluster_state:okcluster_slots_assig..
分类:
其他好文 时间:
2016-12-07 14:40:44
阅读次数:
162
一.Tomcat内存优化
Tomcat内存优化主要是对tomcat启动参数优化,我们可以在tomcat的启动脚本catalina.sh中设置JAVA_OPTS参数。
JAVA_OPTS参数说明
-server启用jdk的server版;
-Xmsjava虚拟机初始化时的最小内存;
-Xmxjava虚拟机可使用的最大内存;
-XX:PermSize内存永久保留..
分类:
其他好文 时间:
2016-11-30 04:27:42
阅读次数:
259
1、内存优化 在bin/elasticsearch.in.sh中进行配置 修改配置项为尽量大的内存: 两者最好改成一样的,否则容易引发长时间GC(stop-the-world) elasticsearch默认使用的GC是CMS GC,如果你的内存大小超过6G,CMS是不给力的,容易出现stop-th ...
分类:
其他好文 时间:
2016-11-29 22:39:07
阅读次数:
226
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y ...
分类:
其他好文 时间:
2016-11-28 09:32:34
阅读次数:
414
一、简介 Folly是,Facebook于2012年6月初开源的一个基于C++11的C++组件库,提供了类似Boost库和std库的功能,包括散列、字符串、向量、内存分配、位处理等,以满足大规模高性能的需求,对Boost和std进行很好的补充和增强。Folly主要进行了速度上的提高、内存优化,以及数... ...
分类:
其他好文 时间:
2016-11-17 01:04:05
阅读次数:
218
1.http://python-china.org/t/77 有关method binding的理解 2.[Python] dir() 与 __dict__,__slots__ 的区别 3.Descriptor HowTo Guide 4.如何理解 Python 的 Descriptor? 5.简明 ...
分类:
编程语言 时间:
2016-11-14 02:11:09
阅读次数:
265
1、为什么要使用Gilde 因为android原生的加载图片的方式不够人性化,在内存优化、缓存处理和网络加载方面,需要开发者付出大量的精力和时间,而glide在这些方面都做了很好的处理和封装,使我们可以写少量的代码就能快速高效地完成需求,提高了我们的开发效率 2、简单的加载图片 1、从uri中加载图... ...
分类:
其他好文 时间:
2016-11-12 11:47:07
阅读次数:
151
题目说明: Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with ' ...
分类:
其他好文 时间:
2016-11-06 14:27:47
阅读次数:
220