轉載
http://www.hollischuang.com/archives/489
https://linux.cn/article-6739-1.htmlhtml
http://www.jcp.org/en/jsr/detail?id=133
http://ifeve.com/jmm-faq/ html5
jps, jstack, jmap, jconsole, jinfo, jhat, javap, …
http://kenai.com/projects/btrace
http://www.crashub.org/
https://github.com/taobao/TProfiler
https://github.com/CSUG/HouseMD
http://wiki.cyclopsgroup.org/jmxterm
https://github.com/jlusdy/TBJMap java
http://www.eclipse.org/mat/
http://visualvm.java.net/oqlhelp.html node
HeapOutOfMemory
Young OutOfMemory
MethodArea OutOfMemory
ConstantPool OutOfMemory
DirectMemory OutOfMemory
Stack OutOfMemory
Stack OverFlowreact
當一個Java程序響應很慢時如何查找問題
當一個Java程序頻繁FullGC時如何解決問題,如何查看垃圾回收日誌
當一個Java應用發生OutOfMemory時該如何解決,年輕代、年老代、永久代解決辦法不一樣,致使緣由也不一樣linux
http://docs.oracle.com/javase/specs/jvms/se7/html/
http://www.cs.umd.edu/~pugh/java/memoryModel/
http://gee.cs.oswego.edu/dl/jmm/cookbook.html ios
java.lang.String
java.lang.Integer
java.lang.Long
java.lang.Enum
java.math.BigDecimal
java.lang.ThreadLocal
java.lang.ClassLoader & java.net.URLClassLoader
java.util.ArrayList & java.util.LinkedList
java.util.HashMap & java.util.LinkedHashMap & java.util.TreeMap
java.util.HashSet & java.util.LinkedHashSet & java.util.TreeSetnginx
上述數據結構的遍歷
上述數據結構的使用場景
Java實現對Array/List排序
java.uti.Arrays.sort()
java.util.Collections.sort()
Java實現對List去重
Java實現對List去重,而且須要保留數據原始的出現順序
Java實現最近最少使用cache,用LinkedHashMapgit
java.io.*
java.nio.*
nio和reactor設計模式
文件編碼,字符集angularjs
反射與工廠模式
java.lang.reflect.*
java.io. Serializable
什麼是序列化,爲何序列化
序列化與單例模式
google序列化protobuf
java.lang.ref.*
實驗這些引用的回收
java.util.Properties
java.lang.annotation.*
javax.jms.*
java.lang.management.*
javax.management.*
java.lang.instrument
Junit, http://junit.org/
Jmockit, https://code.google.com/p/jmockit/
djUnit, http://works.dgic.co.jp/djunit/
java.lang.util.regex.*
commons.lang, commons.*…
guava-libraries
netty
http://en.wikipedia.org/wiki/Application_programming_interface
http://en.wikipedia.org/wiki/Service_provider_interface
JDK src.zip 源代碼
http://openjdk.java.net/
http://commons.apache.org/
https://code.google.com/p/guava-libraries/
http://netty.io/
http://stackoverflow.com/questions/2954372/difference-between-spi-and-api
http://stackoverflow.com/questions/11404230/how-to-implement-the-api-spi-pattern-in-java
java.lang.Thread
java.lang.Runnable
java.util.concurrent.Callable
java.util.concurrent.locks.ReentrantLock
java.util.concurrent.locks.ReentrantReadWriteLock
java.util.concurrent.atomic.Atomic*
java.util.concurrent.Semaphore
java.util.concurrent.CountDownLatch
java.util.concurrent.CyclicBarrier
java.util.concurrent.ConcurrentHashMap
java.util.concurrent.Executors
什麼是鎖,鎖的種類有哪些,每種鎖有什麼特色,適用場景是什麼
在併發編程中鎖的意義是什麼
C++ volatile關鍵字和Java volatile關鍵字
happens-before語義
編譯器指令重排和CPU指令重排
http://en.wikipedia.org/wiki/Memory_ordering
http://en.wikipedia.org/wiki/Volatile_variable
http://preshing.com/20130702/the-happens-before-relation/
public class Sample{ private static int count =0; public static void increment(){ count++; } }
// 代碼1
public class Sample {
private static int count = 0;
synchronized public static void increment() {
count++;
}
}
// 代碼2
public class Sample {
private static AtomicInteger count = new AtomicInteger(0);
public static void increment() {
count.getAndIncrement();
}
}
http://book.douban.com/subject/10484692/
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
http://en.wikipedia.org/wiki/Java_class_file
http://en.wikipedia.org/wiki/Java_bytecode
http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/
http://asm.ow2.org/
如Java源代碼:
public static void main(String[] args) {
int i = 0;
i += 1;
i *= 1;
System.out.println(i);
}
編譯後讀取class文件輸出如下代碼:
public static void main(java.lang.String[]);
Code:
Stack=2, Locals=2, Args_size=1
0: iconst_0
1: istore_1
2: iinc 1, 1
5: iload_1
6: iconst_1
7: imul
8: istore_1
9: getstatic #2; //Field java/lang/System.out:Ljava/io/PrintStream;
12: iload_1
13: invokevirtual #3; //Method java/io/PrintStream.println:(I)V
16: return
LineNumberTable:
line 4: 0
line 5: 2
line 6: 5
line 7: 9
line 8: 16
http://duartes.org/gustavo/blog/post/intel-cpu-caches/
http://mechanical-sympathy.blogspot.com/2011/07/false-sharing.html
用位運算實現加、減、乘、除、取餘
http://book.douban.com/subject/1138768/
http://book.douban.com/subject/6522893/
http://en.wikipedia.org/wiki/Java_class_file
http://en.wikipedia.org/wiki/Java_bytecode
http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
CGLIB和InvocationHandler的區別,http://cglib.sourceforge.net/
動態代理模式
Javassist實現AOP,http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/
ASM實現AOP,http://asm.ow2.org/
http://asm.ow2.org/
http://cglib.sourceforge.net/
http://www.javassist.org/
實現客戶端緩存功能,支持返回304
實現可併發下載一個文件
使用線程池處理客戶端請求
使用nio處理客戶端請求
支持簡單的rewrite規則
上述功能在實現的時候須要知足「開閉原則」
搭建一個DNS服務器
搭建一個 Squid 或 Apache Traffic Server 服務器
http://www.squid-cache.org/
http://trafficserver.apache.org/
http://en.wikipedia.org/wiki/Domain_Name_System
http://www.ietf.org/rfc/rfc2616.txt
http://tools.ietf.org/rfc/rfc5321.txt
http://en.wikipedia.org/wiki/Open/closed_principle
spring,spring mvc,閱讀主要源碼
ibatis,閱讀主要源碼
用spring和ibatis搭建java server
熟悉使用jboss, https://www.jboss.org/overview/
熟悉使用tomcat, http://tomcat.apache.org/
熟悉使用jetty, http://www.eclipse.org/jetty/
sysdate
sysdate -1
sysdate -1/24
sysdate -1/(12*2)
QList<Map<String, Object>> mapList = new QList<Map<String, Object>>;
mapList.add({"name": "hatter test"});
mapList.add({"id": -1,"name": "hatter test"});
mapList.add({"id": 0, "name": "hatter test"});
mapList.add({"id": 1, "name": "test test"});
mapList.add({"id": 2, "name": "hatter test"});
mapList.add({"id": 3, "name": "test hatter"});
mapList.query("id is not null and id > 0 and name like '%hatter%'");
要求返回列表中匹配的對象,即最後兩個對象;
代碼:
var a = 1;
var b = 2;
var c = function() {
var a = 3;
println(a);
println(b);
};
c();
println(a);
println(b);
輸出:
3212
http://en.wikipedia.org/wiki/Abstract_syntax_tree
https://javacc.java.net/
http://www.antlr.org/
Ubuntu
Centos
使用linux,熟悉shell腳本
MySQL
如何看執行計劃
如何搭建MySQL主備
binlog是什麼
Derby,H2,PostgreSQL
SQLite
Cache
Redis
Memcached
Leveldb
Bigtable
HBase
Cassandra
Mongodb
圖數據庫
neo4j
http://db-engines.com/en/ranking
http://redis.io/
https://code.google.com/p/leveldb/
http://hbase.apache.org/
http://cassandra.apache.org/
http://www.mongodb.org/
http://www.neo4j.org/
在linux上部署solr,solrcloud,新增、刪除、查詢索引
在linux上部署storm,用zookeeper作協調,運行storm hello world,local和remote模式運行調試storm topology。
Hdfs:部署NameNode,SecondaryNameNode,DataNode,上傳文件、打開文件、更改文件、刪除文件
MapReduce:部署JobTracker,TaskTracker,編寫mr job
Hive:部署hive,書寫hive sql,獲得結果
Presto:類hive,不過比hive快,很是值得學習
http://zookeeper.apache.org/
https://lucene.apache.org/solr/
https://github.com/nathanmarz/storm/wiki
http://hadoop.apache.org/
http://prestodb.io/
http://flume.apache.org/
http://logstash.net/
http://kafka.apache.org/
http://mahout.apache.org/
http://www.openauthentication.org/
HOTP http://www.ietf.org/rfc/rfc4226.txt
TOTP http://tools.ietf.org/rfc/rfc6238.txt
OCRA http://tools.ietf.org/rfc/rfc6287.txt
http://en.wikipedia.org/wiki/Salt_(cryptography)
http://en.wikipedia.org/wiki/Cryptographic_hash_function
http://en.wikipedia.org/wiki/Block_cipher
http://en.wikipedia.org/wiki/Public-key_cryptography
http://en.wikipedia.org/wiki/Transport_Layer_Security
http://www.openssl.org/
https://code.google.com/p/google-authenticator/
https://linuxcontainers.org/
http://www.linux-kvm.org/page/Main_Page
http://www.xenproject.org/
https://www.docker.io/
Groovy
Scala
LISP, Common LISP, Schema, Clojure
R
Julia
Lua
Ruby
瞭解如下概念
ASCII, ISO-8859-1
GB2312, GBK, GB18030
Unicode, UTF-8
不使用 String.getBytes() 等其餘工具類/函數完成下面功能
public static void main(String[] args) throws IOException {
String str = "Hello, 咱們是中國人。";
byte[] utf8Bytes = toUTF8Bytes(str);
FileOutputStream fos = new FileOutputStream("f.txt");
fos.write(utf8Bytes);
fos.close();
}
public static byte[] toUTF8Bytes(String str) {
return null; // TODO
}
想一下上面的程序能不能寫一個轉GBK的?
寫個程序自動判斷一個文件是哪一種編碼
時區 & 冬令時、夏令時
http://en.wikipedia.org/wiki/Time_zone
ftp://ftp.iana.org/tz/data/asia
http://zh.wikipedia.org/wiki/%E4%B8%AD%E5%9C%8B%E6%99%82%E5%8D%80
閏年, http://en.wikipedia.org/wiki/Leap_year
閏秒, ftp://ftp.iana.org/tz/data/leapseconds
System.currentTimeMillis() 返回的時間是什麼
http://git-scm.com/
http://en.wikipedia.org/wiki/UTF-8
http://www.iana.org/time-zones
修改代碼,使程序輸出「1 3 5」: http://jsfiddle.net/Ts7Fk/
看一下這段代碼,並解釋一下爲何按Button1時沒有alert出「This is button: 1」,如何修改:
http://jsfiddle.net/FDPj3/1/
jQuery
ExtJS
ArgularJS
ArgularJS, https://docs.angularjs.org/api
http://www.ecmascript.org/
http://jsfiddle.net/
http://jsbin.com/
http://runjs.cn/
http://userscripts.org/
《深刻Java虛擬機》《深刻理解Java虛擬機》《Effective Java》《七週七語言》《七週七數據》《Hadoop技術內幕》《Hbase In Action》《Mahout In Action》《這就是搜索引擎》《Solr In Action》《深刻分析Java Web技術內幕》《大型網站技術架構》《高性能MySQL》《算法導論》《計算機程序設計藝術》《代碼大全》《JavaScript權威指南》