Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
aalansehaiyang committed Jun 11, 2016
1 parent 932f180 commit 3845992
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 9 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
* [java](basic-knowledge/java.md)
* spring
* ibatis
* Quartz
* HttpClient
* 常用的设计模式


### 数据库
目前使用最多还是mysql,虽然单机性能比不上oracle,但免费开源,单机成本低且借助于分布式集群,依然可以有强大的输出能力
目前使用最多还是mysql,虽然单机性能比不上oracle,但免费开源,单机成本低且借助于分布式集群,可以有强大的输出能力

* 数据库连接池
* 锁机制
* 分库分表

Expand All @@ -26,9 +30,9 @@
* zookeeper
* cobar

## 开源框架
### 开源框架

* [Goole Guava](open-source-framework/Goole-Guava.md)
* [Google Guava](open-source-framework/Goole-Guava.md)
* redis
* memcache
* fastJson
Expand All @@ -38,8 +42,19 @@

### 系统架构

* 负载均衡
* CDN
* Nginx



### 运维
* 快速排查线上问题
*

* 快速排查线上问题
* 常用的linux命令
* 域名劫持


### 其它

* 抓包软件(charles)
Empty file.
14 changes: 12 additions & 2 deletions basic-knowledge/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

====

### 一、常用并发类
### 基础:
* [jdk并发包里常用的类](concurrent-class.md)
* java的线程状态
* ThreadLocal原理机制
* HashMap的扩容机制
* NIO
* ClassLoader

* Concurrent

### 进阶
* jvm 内存结构
* jvm 性能调优
* 常用的jdk命令
23 changes: 21 additions & 2 deletions open-source-framework/Goole-Guava.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
## Goole Guava
## Google Guava

===
### pom依赖

```
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>13.0.1</version>
</dependency>
```

### 一、缓存相关
如果服务上要使用本地缓存,可以考虑使用guava框架。Guava Cache与ConcurrentMap很相似,但也不完全一样。最基本的区别是ConcurrentMap会一直保存所有添加的元素,直到显式地移除。相对地,Guava Cache为了限制内存占用,通常都设定为自动回收元素。在某些场景下,尽管LoadingCache 不回收元素,它也是很有用的,因为它会自动加载缓存。
Expand Down Expand Up @@ -31,11 +41,20 @@

* #####基于引用的回收

### 二、常用的工具类

##### 1.创建一个集合
com.google.common.collect.Lists.newArrayList(E... elements)

##### 2.创建指定容量大小的集合

com.google.common.collect.Lists.newArrayListWithCapacity(int)

注:避免使用过程中,容量不足引发的扩容带来的性能损耗。

参考资料:

<br><br>
#### 参考资料:

[http://ifeve.com/google-guava-cachesexplained/](http://ifeve.com/google-guava-cachesexplained)

0 comments on commit 3845992

Please sign in to comment.