自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (279)
  • 问答 (4)
  • 收藏
  • 关注

转载 Java的Executor框架和线程池实现原理

一,Java的Executor框架1,Executor接口[java] view plain copy print?public interface Executor {       void execute(Runnable command);   }  Executor接口是Executor框架中最基础

2017-04-25 23:37:45 324

转载 线程池原理

总结:线程池优先要创建出基本线程池大小(corePoolSize)的线程数量,没有达到这个数量时,每次提交新任务都会直接创建一个新线程,当达到了基本线程数量后,又有新任务到达,优先放入等待队列,如果队列满了,才去创建新的线程(不能超过线程池的最大数maxmumPoolSize)

2017-04-25 23:37:02 252

转载 disruptor 笔记

disruptor的优缺点:没有竞争=没有锁=非常快。所有访问者都记录自己的序号的实现方式,允许多个生产者与多个消费者共享相同的数据结构。在每个对象中都能跟踪序列号(ring buffer,claim Strategy,生产者和消费者),加上神奇的cache line padding,就意味着没有为伪共享和非预期的竞争。 Disruptor 为什么快1.

2017-04-24 16:20:18 1048

转载 spring 注入方式

1、接口注入 就是接口的实现注入到目标类啊,不用new对象了

2017-04-21 13:42:33 359

转载 设计模式之六大原则(转载)

设计模式之六大原则(转载)  关于设计模式的六大设计原则的资料网上很多,但是很多地方解释地都太过于笼统化,我也找了很多资料来看,发现CSDN上有几篇关于设计模式的六大原则讲述的比较通俗易懂,因此转载过来。  原作者博客链接:http://blog.csdn.net/LoveLion/article/category/738450/7一.单一职责原则  原文链接:http://blo

2017-04-20 19:00:00 307

转载 Google-Guava-EventBus源码解读

Guava是Google开源的一个Java基础类库,它在Google内部被广泛使用。Guava提供了很多功能模块比如:集合、并发库、缓存等,EventBus是其中的一个module,本篇结合EventBus源码来谈谈它的设计与实现。概要首先,我们先来预览一下EventBus模块的全部类图:类并不是多而且几乎没有太多继承关系。下面,我们来看一下各个

2017-04-14 00:22:45 579

转载 mysql filesort

explain select * from verify_anti_fraud where user_key='51d41b2c7636c4906151ec67de36e927' order by create_time desc limit 100 ;上面sql,这两个字段,都没加索引的时候,结果如下:添加如下索引:alter table verify_anti_fraud

2017-04-10 16:42:57 383

转载 选择排序和冒泡排序的区别

冒泡排序:   冒泡排序(BubbleSort)的基本概念是:依次比较相邻的两个数,将小数放在前面,大数放在后面。即在第一趟:首先比较第1个和第2个数,将小数放前,大数      放后。然后比较第2个数和第3个数,将小数放前,大数放后,如此继续,直至比较最后两个数,将小数放前,大数放后。至此第一趟结束,将最大的数放到了最后。在第二趟:仍从第一对数开始比较 (因为可能由于第2个数和第3个

2017-04-10 11:08:11 261

转载 MongoDB存储引擎

在2015/3/17以前,MongoDB只有一个存储引擎,叫做MMAP,MongoDB3.0的推出使得MongoDB有了两个引擎:MMAPv1和WiredTiger。MMAPv1:适应于所有MongoDB版本,MongoDB3.0的默认引擎WiredTiger:仅支持64位MongoDBMongoDB两种引擎可以互相切换,我们可以在创建服务的时候指定引擎类型。语句如下: MMA

2017-04-10 10:14:19 549

转载 hashmap 基本结构

哈希冲突  然而万事无完美,如果两个不同的元素,通过哈希函数得出的实际存储地址相同怎么办?也就是说,当我们对某个元素进行哈希运算,得到一个存储地址,然后要进行插入的时候,发现已经被其他元素占用了,其实这就是所谓的哈希冲突,也叫哈希碰撞。前面我们提到过,哈希函数的设计至关重要,好的哈希函数会尽可能地保证 计算简单和散列地址分布均匀,但是,我们需要清楚的是,数组是一块连续的固定长度的内存空间,再好

2017-04-07 11:26:03 290

转载 二阶段无法解决的问题

二阶段无法解决的问题:协调者再发出commit消息之后宕机,而唯一接收到这条消息的参与者同时也宕机了。那么即使协调者通过选举协议产生了新的协调者,这条事务的状态也是不确定的,没人知道事务是否被已经提交。与两阶段提交不同的是,三阶段提交有两个改动点。  1、引入超时机制。同时在协调者和参与者中都引入超时机制。  2、在第一阶段和第二阶段中插入一个准备阶段。保证了在最后提交

2017-04-05 17:12:03 466

转载 分布式两阶段提交和三阶段提交

随着大型网站的各种高并发访问、海量数据处理等场景越来越多,如何实现网站的高可用、易伸缩、可扩展、安全等目标就显得越来越重要。    为了解决这样一系列问题,大型网站的架构也在不断发展。提高大型网站的高可用架构,不得不提的就是分布式。本文主要介绍关于分布式事务,二阶段提交和三阶段提交。    在分布式系统中,为了保证数据的高可用,通常,我们会将数据保留多个副本(replica),

2017-04-05 16:23:24 334

转载 分布式系统的BASE理论

分布式系统的BASE理论一、BASE理论eBay的架构师Dan Pritchett源于对大规模分布式系统的实践总结,在ACM上发表文章提出BASE理论,BASE理论是对CAP理论的延伸,核心思想是即使无法做到强一致性(Strong Consistency,CAP的一致性就是强一致性),但应用可以采用适合的方式达到最终一致性(Eventual Consitency)。   

2017-04-05 14:48:44 736

转载 CAP理论

CAP理论在互联网界有着广泛的知名度,知识稍微宽泛一点的工程师都会把其作为衡量系统设计的准则。大家都非常清楚地理解了CAP:任何分布式系统在可用性、一致性、分区容错性方面,不能兼得,最多只能得其二,因此,任何分布式系统的设计只是在三者中的不同取舍而已。事实上,让人吃惊的是,CAP在国外的响力完全不如所想,相反还伴随着诸多的争论。下面我们系统地阐述一下CAP的来龙去脉。1.CAP的历史1

2017-04-05 14:04:48 291

转载 CAP的分区容错性

一直没有理解CAP 中P的分区容错性是什么意思?系统部分节点出现故障后,连接正常节点还可以使用系统提供的服务

2017-04-05 13:58:25 4605 1

转载 AtomicInteger、Unsafe类、ABA问题

AtomicIntegerJava中的AtomicInteger大家应该很熟悉,它是为了解决多线程访问Integer变量导致结果不正确所设计的一个基于多线程并且支持原子操作的Integer类。AtomicInteger内部有一个变量UnSafe:private static final Unsafe unsafe = Unsafe.getUnsafe();Unsafe类是一

2017-04-02 22:52:50 1846

转载 Kafka文件存储机制那些事

美团技术团队 原文  http://tech.meituan.com/kafka-fs-design-theory.htmlKafka是什么Kafka是最初由Linkedin公司开发,是一个分布式、分区的、多副本的、多订阅者,基于zookeeper协调的分布式日志系统(也可以 当做MQ系统),常见可以用于web/nginx日志、访问日志,消息服务等等,Linkedin于2010年贡

2017-04-02 14:16:17 511

mariadb-5.5.34-winx64.zip

MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可 MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。在存储引擎方面,使用XtraDB(英语:XtraDB)来代替MySQL的InnoDB。 MariaDB由MySQL的创始人Michael Widenius(英语:Michael Widenius)主导开发,他早前曾以10亿美元的价格,将自己创建的公司MySQL AB卖给了SUN,此后,随着SUN被甲骨文收购,MySQL的所有权也落入Oracle的手中。MariaDB名称来自Michael Widenius的女儿Maria的名字。

2018-05-12

canal.deployer-1.0.25.tar.gz

阿里巴巴mysql数据库binlog的增量订阅&消费组件 基于日志增量订阅&消费支持的业务: 数据库镜像 数据库实时备份 多级索引 (卖家和买家各自分库索引) search build 业务cache刷新 价格变化等重要业务消息

2018-05-12

mariadb-10.3.6-winx64.zip

MariaDB is free and open source software The MariaDB database server is published as free and open source software under the General Public License version 2. You can download and use it as much as you want free of charge. All use of the binaries from mariadb.org is at your own risk as stated in the GPLv2. While we do our best to make the world’s best database software, the MariaDB Foundation does not provide any guarantees and cannot be hold liable for any issues you may encounter. The MariaDB Foundation does not provide any help or support services if you run into troubles while using MariaDB. Support and guarantees are available on commercial terms from multiple MariaDB vendors. There are alse many resources you can use to learn MariaDB and support yourself or get peer support online.

2018-05-09

canal--mysql数据库binlog的增量订阅&消费组件

名称:canal [kə'næl] 译意: 水道/管道/沟渠 语言: 纯java开发 定位: 基于数据库增量日志解析,提供增量数据订阅&消费,目前主要支持了mysql 关键词: mysql binlog parser / real-time / queue&topic;

2018-05-08

redis2.8 windows 64

redis2.8 windows 64位版本的,在本地测试使用 Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。从2010年3月15日起,Redis的开发工作由VMware主持。从2013年5月开始,Redis的开发由Pivotal赞助。

2018-04-16

DevCenter--Cassandra

DataStax for Developers Learn and build with your favorite language and a friendly GUI.

2018-01-17

指令集时钟周期

ASM为Assembly的简写,ASM指令的含义为汇编指令(泛指Intel 80X86 CPU中的指令集)。 ASM指令是为编程人员编写程序准备的,编译器将会把ASM指令真正的翻译成机器代码(能控制CPU做出操作的代码)。 ASM至今运用广泛,2015年所有的个人电脑,大型服务器绝大多数使用ASM指令集。 ASM的优点在于指令广泛和丰富,处理大型数据游刃有余,但是缺点也是显而易见的,由于指令的长度不等与指令的复杂,其耗能大,CPU体积也大。

2017-12-21

JAVA面试资料

JAVA面试资料,包含了Java的知识的各个方面的基本概括和原理

2017-11-21

rabbitmq-server-windows-3.6.12.zip

RabbitMQ 3.6.12 is a maintenance release. Upgrades and Compatibility See the "Upgrading clusters" section of the documentation for general documentation on upgrades. This release has no other known incompatibilities with versions 3.6.7 through 3.6.11. See the upgrade and compatibility sections in the 3.6.7 release notes if upgrading from an earlier release. Core Server Bug Fixes Process responsible for running the autoheal partition handling strategy could run into a deadlock with its peers, preventing autoheal from completing. GitHub issue: rabbitmq-server#1346 Garbage collection of mirrored queue metrics on nodes that did not host a master or mirror for a queue affected delivery and acknowledgement rates. This could result in rates being 0 or negative when they should not be. GitHub issue: rabbitmq-server#1340 Stats emission could prevent queue mirrors from performing garbage collection and consume memory even when they were empty. GitHub issue: rabbitmq-common#220 (continuation to rabbitmq-common#196) RABBITMQ_SCHEDULER_BIND_TYPE and RABBITMQ_DISTRIBUTION_BUFFER_SIZE now can be set via rabbitmq-env.conf. GitHub issue: rabbitmq-server#1338 Shovel Management Plugin Bug Fixes Passwords in source and destination URIs are now redacted out. GitHub issue: rabbitmq-federation-management#15 Federation Management Plugin Bug Fixes Passwords in upstream URIs are now redacted out. GitHub issue: rabbitmq-federation-management#15 Upgrading To upgrade a non-clustered RabbitMQ simply install the new version. All configuration and persistent message data are retained. When upgrading using definitions export/import from versions earlier than 3.6.0, see http://rabbitmq.com/passwords.html. To upgrade a RabbitMQ cluster, follow the instructions in RabbitMQ documentation.

2017-10-30

R-3.4.1(R语言sdk)

R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.

2017-08-23

RStudio-1.0.153

RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, and a variety of robust tools for plotting, viewing history, debugging and managing your workspace. Learn More about RStudio features.

2017-08-23

LuaForWindows

Installation of Lua for the Windows operating systems including many lua libraries. NOTICE Development move to GitHub https://github.com/rjpcomputing/luaforwindows Overview Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows. Lua for Windows (LfW) combines Lua binaries, Lua libraries with a Lua-capable editor in a single install package for the Microsoft Windows operating system. LfW contains everything you need to write, run and debug Lua scripts on Windows. A wide variety of libraries and examples are included that are ready to use with Microsoft Windows. LfW runs on Windows 2000 and newer versions of Windows. Lua and its associated libraries are also available for other operating systems, so most scripts will be automatically cross-platform.

2017-06-21

SwitchHosts

SwitchHost! 这是一个用于快速切换 hosts 文件的小程序,基于 Python 和 wxPython 开发。 功能特性: •快速切换 hosts •跨平台(基于 wxPython) •hosts 文件语法高亮 •可为不同的 hosts 方案设置不同的图标 •切换 hosts 方案时浮出窗口提示 更新历史: •2011-12-14 允许输入超长的 hosts 方案。 •2011-10-09 发布 0.1.6 版,修复若干 bug,增加自动检查最新版本的功能。 •2011-09-29 发布 0.1.5 版,新增 hosts 内容语法高亮。 •2011-09-28 发布 0.1.4 版,新增“添加”、“删除”按钮;hosts 内容修改后自动保存;修改若干 bug。 •2011-09-19 发布 0.1.3 版,修复若干 bug。 •2011-09-15 发布 0.1.2 版,添加主面板,可以主面板上对 hosts 进行增加、删除、编辑、重命名等操作。 •2011-09-02 发布 0.1.0 版,完成基本功能。 不起作用的话,请运行管理员权限运行

2017-02-22

erlang19安装包

Erlang/OTP 19.1 is a service release containing mostly bug fixes, as well as a number of new features and characteristics improvements. Some highlights of the release are: erts: Improved dirty scheduler support. A purge of a module will not have to wait for completion of all ongoing dirty NIF calls. erts: Improved accuracy of timeouts on MacOS X. kernel: Add net_kernel:setopts/2 and net_kernel:getopts/2 to control options for distribution sockets in runtime. asn1: Compiling multiple ASN.1 modules in the same directory with parallel make (make -j) should now be safe. httpd: support for PUT and DELETE in mod_esi ~30 contributions since 19.0

2016-12-02

xml 格式化工具

xml 格式化工具,可以进行格式化优雅的显示形式.

2016-11-17

alibaba-otter

项目背景 阿里巴巴B2B公司,因为业务的特性,卖家主要集中在国内,买家主要集中在国外,所以衍生出了杭州和美国异地机房的需求,同时为了提升用户体验,整个机房的架构为双A,两边均可写,由此诞生了otter这样一个产品。 otter第一版本可追溯到04~05年,此次外部开源的版本为第4版,开发时间从2011年7月份一直持续到现在,目前阿里巴巴B2B内部的本地/异地机房的同步需求基本全上了otter。 目前同步规模: 同步数据量6亿 文件同步1.5TB(2000w张图片) 涉及200+个数据库实例之间的同步 80+台机器的集群规模 项目介绍 名称:otter ['ɒtə(r)] 译意: 水獭,数据搬运工 语言: 纯java开发 定位: 基于数据库增量日志解析,准实时同步到本机房或异地机房的mysql/oracle数据库. 一个分布式数据库同步系统

2016-09-30

protobuf3.0-windows

protobuf3.0,在windows下面的安装说明文档,以及proto.exe,以及如何编译成java的jar包得说明

2016-04-21

eclipse-jee-mars-2-win32-x86_64.zip 工具

eclipse-jee-mars-2-win32-x86_64.zip eclipse 火星版本

2016-04-08

svn 命令行安装包

svn 命令行安装包,直接直接通过 svn checkout svn://172.30.11.11/my_dev

2016-04-08

MongoVUE-1.6.9以及破解文件

将破解文件夹下的MongoVUE.exe覆盖安装目录下MongoVUE即可。

2016-04-06

12306订票助手.NET_10.5.1.0

12306订票助手.NET_10.5.1.0,抢票速度很快的,用过大家都知道

2016-02-01

NIO trick and trap

NIO trick and trap, 从io的产生,如何产生,分类,区别,应用。做了区分

2016-01-29

erlang 18-release

Some highlights of the release are: ssl: Add possibility to downgrade an SSL/TLS connection to a tcp connection, and give back the socket control to a user process. ssh: The following new key exchange algorithms are implemented:'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521','diffie-hellman-group14-sha1', 'diffie-hellman-group-exchange-sha1' and 'diffie-hellman-group-exchange-sha256'. This raises the security level considerably. kernel,stdlib,sasl: A mechanism for limiting the amount of text that the built-in error logger events will produce has been introduced. It is useful for limiting both the size of log files and the CPU time used to produce them. This mechanism is experimental in the sense that it may be changed based on feedback. See config parameter error_logger_format_depth in the Kernel application.

2015-11-19

haproxy-1.5.12

haproxy,提供四层,七层负载均衡以及healthcheck心跳监测功能。 详细配置文件,都已经设置好了,里面还有ReadMe.txt里面有启动方式,还有监控页面。然后亲测可用。

2015-08-29

nginx虚拟主机

自己配置好的nginx虚拟主机配置。里面有基本配置和虚拟主机配置

2015-08-29

redis-2.6 windows版本

redis2.6 windows版本,提供redis主从和sentinel的自动无缝切换服务,以及,主从监控,以及failover

2015-08-23

深入理解Java7-技术与最佳实践

深入理解Java7-技术与最佳实践

2014-12-29

Sun JVM原理与内存管理

Sun JVM原理与内存管理

2014-12-29

[深入理解Java虚拟机:JVM高级特性与最佳实践(有书签)

[深入理解Java虚拟机:JVM高级特性与最佳实践(有书签) PDF有书签,可以翻阅

2014-12-20

redis-2.4.5-win32-win64.zip

redis-2.4.5-win32-win64.zip redis_2.6.12-win32-win64.zip 总共两个redis

2014-11-25

java.bug模式详解

java bug模式详解

2014-11-21

eclipse-jee-kepler-SR2-win32.zip

eclipse-jee-kepler-SR2-win32.zip

2014-11-17

Understanding_Java_Garbage_Collection_v3

Understanding_Java_Garbage_Collection_v3

2014-11-16

Java程序性能优化 让你的Java程序更快、更稳定

Java程序性能优化 让你的Java程序更快、更稳定

2014-11-16

设计模式:可复用面向对象软件的基础

设计模式:可复用面向对象软件的基础

2014-11-16

算法导论 第三版 中文

算法导论 第三版 中文 不是影印版本

2014-11-16

Subversion--WINDOW下面的SVN命令行

我们知道,在linux下面的svn客户端采用命令的方式管理与服务器端svn交互。有些朋友想在windows下也具有相同的功能,而不是TortoiseSVN的GUI管理方式。这样可以使用我们熟悉的svn命令。 在不用安装TortoiseSVN客户端的情况,大家可以再http://subversion.apache.org/packages.html#windows 找到windows下的svn客户端工具。选择Win32Svn 进行安装。 安装好后,bin目录下就是相应程序了。通过添加环境变量的方式,把bin目录添加到path。启动cmd,敲入 svn help 以确认是否安装成功。 好了,可以找到你的代码,做checkout了。在commit代码的过程中,经常会出现的一个问题是:svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found 这表示你的系统,没有指定svn客户端通过什么样的文本编辑器来写提交的注释。我们添加环境变量,SVN_EDITOR的值为notepad。再次svn ci 代码。notepad弹出了,写完注释保存。代码提交!

2014-08-08

python2.7.7和对应的Mysql驱动

python-2.7.7.msi MySQL-python-1.2.4b4.win32-py2.7.exe

2014-06-27

mybatis-generator-core-1.3.2-bundle.zip工具

mybatis 自动生成DAO,XML,javaBean工具。 mybatis-generator-core-1.3.2-bundle.zip

2014-06-08

mariadb-10.0.7-winx64.zip

MariaDB is free and open source software The MariaDB database server is published as free and open source software under the General Public License version 2. You can download and use it as much as you want free of charge. All use of the binaries from mariadb.org is at your own risk as stated in the GPLv2. While we do our best to make the world’s best database software, the MariaDB Foundation does not provide any guarantees and cannot be hold liable for any issues you may encounter.

2018-05-09

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除