{"id":3612,"date":"2018-12-23T20:12:59","date_gmt":"2018-12-23T12:12:59","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3612"},"modified":"2018-12-23T20:12:59","modified_gmt":"2018-12-23T12:12:59","slug":"%e7%a8%8b%e5%ba%8f%e5%91%98%e4%bb%8e%e5%88%9d%e7%ba%a7%e5%88%b0%e4%b8%ad%e7%ba%a7%e3%80%81%e9%ab%98%e7%ba%a7%e3%80%81%e6%9e%b6%e6%9e%84%e5%b8%88%e3%80%81%e4%b8%93%e5%ae%b6%e7%bb%88%e8%ba%ab%e5%ad%a6","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3612","title":{"rendered":"\u7a0b\u5e8f\u5458\u4ece\u521d\u7ea7\u5230\u4e2d\u7ea7\u3001\u9ad8\u7ea7\u3001\u67b6\u6784\u5e08\u3001\u4e13\u5bb6\u7ec8\u8eab\u5b66\u4e60\u7ebf\u8def\u56fe\uff01"},"content":{"rendered":"<p>\n\tJava \u7a0b\u5e8f\u5458\u7ec8\u8eab\u5b66\u4e60\u7ebf\u8def\u56fe\uff0c\u770b\u5b8c\u6211\u54ed\u4e86\uff01\n<\/p>\n<p>\n\tJava \u7a0b\u5e8f\u5458\u771f\u662f\u82e6\u903c\uff0c\u8fd9\u4e48\u591a\u6280\u672f\uff0c\u6bcf\u6708\u62ff\u90a3\u4e48\u4e00\u70b9\u5de5\u8d44\uff0c\u4f60\u4ee5\u4e3a\u591a\u5417\uff1f\u4f60\u4ee5\u4e3a\u7a0b\u5e8f\u5458\u5f88\u5bb9\u6613\u5417\uff1f\u8bf4\u597d\u7684\u767d\u5934\u5230\u8001\uff0c\u6211\u5374\u5148\u79c3\u4e86\uff01\u770b\u5b8c\u8fd9\u7bc7\u6280\u672f\u7ebf\u8def\u56fe\uff0c\u6211\u54ed\u4e86\uff01\n<\/p>\n<p>\n\t\u5148\u6765\u4e00\u4e2a\u57fa\u7840\u7bc7\u7684\u5185\u5bb9\u3002JVM \u76f8\u5173\u7684\u3002\n<\/p>\n<h2>\n\tJVM\u5185\u5b58\u7ed3\u6784<br \/>\n<\/h2>\n<p>\n\t\u5806\u3001\u6808 \u3001\u65b9\u6cd5\u533a\u3001\u76f4\u63a5\u5185\u5b58\u3001\u5806\u548c\u6808\u7684\u533a\u522b\n<\/p>\n<h2>\n\tJava \u5185\u5b58\u6a21\u578b<br \/>\n<\/h2>\n<p>\n\t\u5185\u5b58\u53ef\u89c1\u6027\u3001\u91cd\u6392\u5e8f\u3001\u987a\u5e8f\u4e00\u81f4\u6027\u3001volatle\u3001\u9501\u3001final\n<\/p>\n<h2>\n\t\u5783\u573e\u56de\u6536<br \/>\n<\/h2>\n<p>\n\t\u5185\u5b58\u5206\u914d\u7b56\u7565\u3001\u5783\u573e\u6536\u96c6\u5668\uff08G1\uff09\u3001GC\u7b97\u6cd5\u3001GC\u53c2\u6570\u3001\u5bf9\u8c61\u5b58\u6d3b\u7684\u5224\u5b9a\n<\/p>\n<p>\n\tJVM\u53c2\u6570\u53ca\u8c03\u4f18\u7684\u76f8\u5173\u77e5\u8bc6\u70b9\u3002\n<\/p>\n<h2>\n\tJava\u5bf9\u8c61\u6a21\u578b<br \/>\n<\/h2>\n<p>\n\toop-klass\u3001\u5bf9\u8c61\u5934\n<\/p>\n<p>\n\tHotSpot\n<\/p>\n<p>\n\t\u5373\u65f6\u7f16\u8bd1\u5668\u3001\u7f16\u8bd1\u4f18\u5316\n<\/p>\n<p>\n\t\u7c7b\u52a0\u8f7d\u673a\u5236\n<\/p>\n<p>\n\tclassLoader\u3001\u7c7b\u52a0\u8f7d\u8fc7\u7a0b\u3001\u53cc\u4eb2\u59d4\u6d3e\uff08\u7834\u574f\u53cc\u4eb2\u59d4\u6d3e\uff09\u3001\u6a21\u5757\u5316\uff08jboss modules\u3001osgl\u3001jigsaw\uff09\n<\/p>\n<h2>\n\t\u865a\u62df\u673a\u6027\u80fd\u76d1\u63a7\u4e0e\u6545\u969c\u5904\u7406\u5de5\u5177<br \/>\n<\/h2>\n<p>\n\tjps\u3001jstack\u3001jmap\u3001jstat\u3001jconsole\u3001jinfo\u3001jhat\u3001javap\u3001btrace\u3001TProfiler\n<\/p>\n<p>\n\t\u7f16\u8bd1\u4e0e\u53cd\u7f16\u8bd1\n<\/p>\n<p>\n\tjavac\u3001javap\u3001jad\u3001CRF\n<\/p>\n<p>\n\tJava\u57fa\u7840\u77e5\u8bc6\u589e\u5f3a\u90e8\u5206\u3002\u9700\u8981\u9605\u8bfb\u6e90\u4ee3\u7801\u7684\u90e8\u5206\u3002\n<\/p>\n<p>\n\tString\u3001Integer\u3001Long\u3001Enum\u3001BigDecimal\u3001ThreadLocal\u3001ClassLoader\u3001URLClassLoader\u3001ArrayList\u3001LinkedList\u3001HashMap\u3001LinkedHashMap\u3001TreeMap\u3001CouncurrentHashMap\u3001HashSet\u3001LinkedHashSet\u3001TreeSet\n<\/p>\n<h2>\n\tJava\u4e2d\u5404\u79cd\u53d8\u91cf\u7c7b\u578b<br \/>\n<\/h2>\n<p>\n\t\u719f\u6089Java String\u7684\u4f7f\u7528\uff0c\u719f\u6089String\u7684\u5404\u4e2a\u51fd\u6570\u3002\n<\/p>\n<p>\n\tJDK 6 \u548c JDK 7 \u4e2d\u7684 substring\u7684\u539f\u7406\u4ee5\u53ca\u533a\u522b\u3001replaceFirst\u3001replaceAll\u3001replace\u4e09\u8005\u4e4b\u95f4\u7684\u533a\u522b\u3001String\u5bf9&ldquo;+&rdquo;\u7684\u91cd\u8f7d\u3001String.valueOf\u548cInteger.toString\u7684\u533a\u522b\u3001\u5b57\u7b26\u4e32\u7684\u4e0d\u53ef\u53d8\u6027\n<\/p>\n<p>\n\t\u81ea\u52a8\u62c6\u88c5\u7bb1\n<\/p>\n<p>\n\tInteger \u7684\u7f13\u5b58\u673a\u5236\n<\/p>\n<h2>\n\t\u719f\u6089Java\u4e2d\u5404\u79cd\u5173\u952e\u5b57<br \/>\n<\/h2>\n<h2>\n\ttransient\u3001instanceof\u3001volatile\u3001synchronized\u3001final\u3001static\u3001const\u539f\u7406\u4ee5\u53ca\u7528\u6cd5\u3002<br \/>\n<\/h2>\n<p>\n\t\u96c6\u5408\u7c7b\n<\/p>\n<p>\n\t\u5e38\u7528\u96c6\u5408\u7c7b\u7684\u4f7f\u7528\u3002<br \/>\n\tArrayList\u548cLinkedList\u548cVector\u7684\u533a\u522b\u3001SynchronizedList\u548cVector\u7684\u533a\u522b\u3001HashMap\u3001HashTable\u3001ConcurrentHashMap\u533a\u522b\u3001Java 8\u4e2d\u7684stream\u76f8\u5173\u7528\u6cd5\u3001Apache\u96c6\u5408\u5904\u7406\u5de5\u5177\u7c7b\u7684\u4f7f\u7528\u3002\n<\/p>\n<p>\n\t\u679a\u4e3e\n<\/p>\n<p>\n\t\u679a\u4e3e\u7684\u7528\u6cd5\u3001\u679a\u4e3e\u4e0e\u5355\u5229\u3001Enum\u7c7b\n<\/p>\n<p>\n\tJava IO&amp;Java NIO\u8981\u6c42\u5b66\u4f1a\u5e76\u4f1a\u4f7f\u7528\u3002Bio\u3001nio\u3001aio\u7684\u533a\u522b\u3001\u4e09\u79cdio\u7684\u7528\u6cd5\u4e0e\u539f\u7406\u3001netty\n<\/p>\n<h2>\n\tJava\u53cd\u5c04\u4e0ejavassist<br \/>\n<\/h2>\n<p>\n\t\u53cd\u5c04\u4e0e\u5de5\u5382\u6a21\u5f0f\u3001java.lang.reflect.*\n<\/p>\n<p>\n\tJava\u5e8f\u5217\u5316\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662f\u5e8f\u5217\u5316\u4e0e\u53cd\u5e8f\u5217\u5316\u3001\u4e3a\u4ec0\u4e48\u5e8f\u5217\u5316\u3001\u5e8f\u5217\u5316\u5e95\u5c42\u539f\u7406\u3001\u5e8f\u5217\u5316\u4e0e\u5355\u4f8b\u6a21\u5f0f\u3001protobuf\u3001\u4e3a\u4ec0\u4e48\u8bf4\u5e8f\u5217\u5316\u4e0d\u5b89\u5168\n<\/p>\n<p>\n\t\u6ce8\u89e3\n<\/p>\n<p>\n\t\u5143\u6ce8\u89e3\u3001\u81ea\u5b9a\u4e49\u6ce8\u89e3\u3001Java\u4e2d\u5e38\u7528\u6ce8\u89e3\u4f7f\u7528\u3001\u6ce8\u89e3\u4e0e\u53cd\u5c04\u7684\u7ed3\u5408\n<\/p>\n<p>\n\tJMS\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662fJava\u6d88\u606f\u670d\u52a1\u3001JMS\u6d88\u606f\u4f20\u9012\u6a21\u578b\n<\/p>\n<p>\n\tJMX\n<\/p>\n<p>\n\tjava.lang.management.*\u3001javax.management.*\n<\/p>\n<p>\n\t\u6cdb\u578b\n<\/p>\n<p>\n\t\u6cdb\u578b\u4e0e\u7ee7\u627f\u3001\u7c7b\u578b\u64e6\u9664\u3001\u6cdb\u578b\u4e2dKTVE\u3001object\u7b49\u7684\u542b\u4e49\u3001\u6cdb\u578b\u5404\u79cd\u7528\u6cd5\n<\/p>\n<p>\n\t\u5355\u5143\u6d4b\u8bd5\n<\/p>\n<p>\n\tjunit\u3001mock\u3001mockito\u3001\u5185\u5b58\u6570\u636e\u5e93\uff08h2\uff09\n<\/p>\n<p>\n\t\u6b63\u5219\u8868\u8fbe\u5f0f\n<\/p>\n<p>\n\tjava.lang.util.regex.*\n<\/p>\n<p>\n\t\u5e38\u7528\u7684Java\u5de5\u5177\u7c7b\n<\/p>\n<p>\n\tcommons.lang.*\u3001commons.*&#8230;\u3001guava\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662fAPI\u3001SPI\n<\/p>\n<p>\n\t\u5f02\u5e38\n<\/p>\n<p>\n\t\u5f02\u5e38\u7c7b\u578b\u3001\u6b63\u786e\u5904\u7406\u5f02\u5e38\u3001\u81ea\u5b9a\u4e49\u5f02\u5e38\n<\/p>\n<p>\n\t\u65f6\u95f4\u5904\u7406\n<\/p>\n<p>\n\t\u65f6\u533a\u3001\u65f6\u4ee4\u3001Java\u4e2d\u65f6\u95f4API\n<\/p>\n<p>\n\t\u7f16\u7801\u65b9\u5f0f\n<\/p>\n<p>\n\t\u89e3\u51b3\u4e71\u7801\u95ee\u9898\u3001\u5e38\u7528\u7f16\u7801\u65b9\u5f0f\n<\/p>\n<p>\n\t\u8bed\u6cd5\u7cd6\n<\/p>\n<p>\n\tJava \u4e2d\u8bed\u6cd5\u7cd6\u539f\u7406\u3001\u89e3\u8bed\u6cd5\u7cd6\n<\/p>\n<h2>\n\tJava\u5e76\u53d1\u7f16\u7a0b<br \/>\n<\/h2>\n<p>\n\t\u4ec0\u4e48\u662f\u7ebf\u7a0b\u3001\u4ec0\u4e48\u662f\u8fdb\u7a0b\u3001\u4e24\u8005\u533a\u522b\n<\/p>\n<p>\n\t\u9700\u8981\u9605\u8bfb\u7684\u6e90\u7801\uff0c\u5e76\u5b66\u4f1a\u4f7f\u7528\u3002\n<\/p>\n<p>\n\tThread\u3001Runable\u3001Callable\u3001ReentrantLock\u3001RentrantReadWriteLock\u3001Atomic*\u3001Semaphore\u3001CountDownLatch\u3001ConcurrentHashMap\u3001Executors\n<\/p>\n<p>\n\t\u7ebf\u7a0b\u6c60\n<\/p>\n<p>\n\t\u81ea\u5df1\u8bbe\u8ba1\u7ebf\u7a0b\u6c60\u3001submit()\u548cexecute()\n<\/p>\n<h2>\n\t\u7ebf\u7a0b\u5b89\u5168<br \/>\n<\/h2>\n<p>\n\t\u6b7b\u9501\u3001\u6b7b\u9501\u5982\u4f55\u6392\u67e5\u3001Java\u7ebf\u7a0b\u8c03\u5ea6\u3001\u7ebf\u7a0b\u5b89\u5168\u548c\u5185\u5b58\u6a21\u578b\u7684\u5173\u7cfb\n<\/p>\n<h2>\n\t\u9501<br \/>\n<\/h2>\n<p>\n\tCAS\u3001\u4e50\u89c2\u9501\u4e0e\u60b2\u89c2\u9501\u3001\u6570\u636e\u5e93\u76f8\u5173\u9501\u673a\u5236\u3001\u5206\u5e03\u5f0f\u9501\u3001\u504f\u5411\u9501\u3001\u8f7b\u91cf\u7ea7\u9501\u3001monitor\u3001\u9501\u4f18\u5316\u3001\u9501\u6d88\u9664\u3001\u81ea\u65cb\u9501\u3001\u53ef\u91cd\u5165\u9501\u3001\u963b\u585e\u9501\u3001\u6b7b\u9501\n<\/p>\n<p>\n\tvolatile\n<\/p>\n<p>\n\thappens-before\u3001\u7f16\u8bd1\u5668\u6307\u4ee4\u91cd\u6392\u5e8f\u3001CPU\u6307\u4ee4\u91cd\u6392\u5e8f\n<\/p>\n<p>\n\tsynchronized\n<\/p>\n<p>\n\tsynchronized\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff1f\u3001synchronized\u548clock\u4e4b\u95f4\u5173\u7cfb\u3001\u4e0d\u4f7f\u7528synchronized\u5982\u4f55\u5b9e\u73b0\u4e00\u4e2a\u7ebf\u7a0b\u5b89\u5168\u7684\u5355\u4f8b\n<\/p>\n<p>\n\tsleep\u548cwait\n<\/p>\n<p>\n\twait\u548cnotify\n<\/p>\n<p>\n\tnotify\u548cnotifyAll\n<\/p>\n<p>\n\tThreadLocal\n<\/p>\n<p>\n\t\u5199\u4e00\u4e2a\u6b7b\u9501\u7684\u7a0b\u5e8f\n<\/p>\n<p>\n\t\u5199\u4ee3\u7801\u6765\u89e3\u51b3\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u95ee\u9898\n<\/p>\n<p>\n\t\u5b88\u62a4\u7ebf\u7a0b\n<\/p>\n<p>\n\t\u5b88\u62a4\u7ebf\u7a0b\u548c\u975e\u5b88\u62a4\u7ebf\u7a0b\u7684\u533a\u522b\u4ee5\u53ca\u7528\u6cd5\n<\/p>\n<h2>\n\t\u4e2d\u7ea7\u7a0b\u5e8f\u5458\u7bc7<br \/>\n<\/h2>\n<p>\n\t\u5b57\u8282\u7801\u3001class\u6587\u4ef6\u683c\u5f0f\n<\/p>\n<p>\n\tCPU\u7f13\u5b58\u3001L1\uff0cL2\uff0cL3\u548c\u4f2a\u5171\u4eab\n<\/p>\n<p>\n\t\u5c3e\u9012\u5f52\n<\/p>\n<p>\n\t\u4f4d\u8fd0\u7b97\n<\/p>\n<p>\n\t\u7528\u4f4d\u8fd0\u7b97\u5b9e\u73b0\u52a0\u3001\u51cf\u3001\u4e58\u3001\u9664\u3001\u53d6\u4f59\n<\/p>\n<h2>\n\t\u8bbe\u8ba1\u6a21\u5f0f<br \/>\n<\/h2>\n<p>\n\t\u4e86\u89e323\u4e2d\u8bbe\u8ba1\u6a21\u5f0f\u3001\u4f1a\u4f7f\u7528\u5e38\u7528\u8bbe\u8ba1\u6a21\u5f0f\u3002<br \/>\n\t\u5355\u4f8b\u3001\u7b56\u7565\u3001\u5de5\u5382\u3001\u9002\u914d\u5668\u3001\u8d23\u4efb\u94fe\u3002\n<\/p>\n<p>\n\t\u5b9e\u73b0AOP\n<\/p>\n<p>\n\t\u5b9e\u73b0IOC\n<\/p>\n<p>\n\t\u4e0d\u7528synchronized\u548clock\u5b9e\u73b0\u7ebf\u7a0b\u5b89\u5168\u7684\u5355\u4f8b\u6a21\u5f0f\n<\/p>\n<p>\n\tnio\u548creactor\u8bbe\u8ba1\u6a21\u5f0f\n<\/p>\n<h2>\n\t\u7f51\u7edc\u7f16\u7a0b<br \/>\n<\/h2>\n<p>\n\ttcp\u3001udp\u3001http\u3001https\u7b49\u5e38\u7528\u534f\u8bae\n<\/p>\n<p>\n\t\u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u5173\u95ed\u3001\u6d41\u91cf\u63a7\u5236\u548c\u62e5\u585e\u63a7\u5236\u3001OSI\u4e03\u5c42\u6a21\u578b\u3001tcp\u7c98\u5305\u548c\u62c6\u5305\n<\/p>\n<p>\n\thttp\/1.0\u3001http\/1.1\u3001http\/2\u4e4b\u95f4\u7684\u533a\u522b\n<\/p>\n<p>\n\tJava RMI\u3001Socket\u3001HttpClient\n<\/p>\n<p>\n\tcookie\u4e0esession\n<\/p>\n<p>\n\tCookie\u88ab\u7981\u7528\uff0c\u5982\u4f55\u5b9e\u73b0session\n<\/p>\n<p>\n\t\u7528Java\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u9759\u6001\u6587\u4ef6\u7684HTTP\u670d\u52a1\u5668\uff0c\u8981\u6c42\uff1a\u5b9e\u73b0\u5ba2\u6237\u7aef\u7f13\u5b58\u529f\u80fd\uff0c\u81f3\u6b64\u8fd4\u56de304\u5b9e\u73b0\u53ef\u5e76\u53d1\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\uff0c\u4f7f\u7528\u7ebf\u7a0b\u6c60\u5904\u7406\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u4f7f\u7528nio\u5904\u7406\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u81f3\u6b64\u7b80\u5355\u7684rewrite\u89c4\u5219\uff0c\u4e0a\u8ff0\u529f\u80fd\u5728\u5b9e\u73b0\u7684\u65f6\u5019\u9700\u8981\u6ee1\u8db3&ldquo;\u5f00\u95ed\u539f\u5219&rdquo;\n<\/p>\n<p>\n\t\u4e86\u89e3nginx\u548capache\u670d\u52a1\u5668\u7684\u7279\u6027\u5e76\u5927\u5bb6\u4e00\u4e2a\u5bf9\u5e94\u7684\u670d\u52a1\u5668\n<\/p>\n<p>\n\t\u7528Java\u5b9e\u73b0FTP\u3001SMTP\u534f\u8bae\n<\/p>\n<p>\n\t\u8fdb\u7a0b\u95f4\u901a\u8baf\u7684\u65b9\u5f0f\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662fCDN\uff1f\u5982\u4f55\u5b9e\u73b0\uff1f\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662fDNS\uff1f\n<\/p>\n<p>\n\t\u53cd\u54cd\u4ee3\u7406\n<\/p>\n<h2>\n\t\u6846\u67b6\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\tServlet\u7ebf\u7a0b\u5b89\u5168\u95ee\u9898\u3001Servlet\u4e2d\u7684filter\u548clistener\u3001Hibernate\u7684\u7f13\u5b58\u673a\u5236\u3001Spring Bean\u7684\u521d\u59cb\u5316\u3001\u81ea\u5df1\u5b9e\u73b0 Spring\u7684IOC\u3001Spring\u7684AOP\u539f\u7406\u3001SpringMVC\u3001Spring Boot2.0\u3001Spring Boot\u7684starter\u539f\u7406\uff0c\u81ea\u5df1\u5b9e\u73b0\u4e00\u4e2astarter\u3001Spring Security\n<\/p>\n<h2>\n\t\u5e94\u7528\u670d\u52a1\u5668<br \/>\n<\/h2>\n<p>\n\tJBoss\u3001tomcat\u3001jetty\u3001Weblogic\u7b49\n<\/p>\n<h2>\n\t\u5de5\u5177<br \/>\n<\/h2>\n<h2>\n\tidea\u3001eclipse\u3001git\u3001svn\u3001maven\u3001gradle<br \/>\n<\/h2>\n<h2>\n\t\u9ad8\u7ea7\u7a0b\u5e8f\u5458\u7bc7<br \/>\n<\/h2>\n<h2>\n\t\u65b0\u6280\u672f<br \/>\n<\/h2>\n<p>\n\tJava 8\u3001lambda\u8868\u8fbe\u5f0f\u3001Stream API\n<\/p>\n<p>\n\tJava 9\u3001Jigsaw\u3001Jshell\u3001Reactive Streams\n<\/p>\n<p>\n\tJava 10\u3001\u5c40\u90e8\u53d8\u91cf\u7c7b\u578b\u63a8\u65ad\u3001G1\u7684\u5e76\u884c Full GC\u3001ThreadLocal\u63e1\u624b\u673a\u5236\n<\/p>\n<p>\n\tSpring 5\u3001\u54cd\u5e94\u5f0f\u7f16\u7a0b\n<\/p>\n<p>\n\tSpring Boot 2.0\n<\/p>\n<h2>\n\t\u6027\u80fd\u4f18\u5316<br \/>\n<\/h2>\n<h2>\n\t\u4f7f\u7528\u5355\u4f8b\u3001\u4f7f\u7528Future\u6a21\u5f0f\u3001\u4f7f\u7528\u7ebf\u7a0b\u6c60\u3001\u9009\u62e9\u5c31\u7eea\u3001\u51cf\u5c11\u4e0a\u4e0b\u6587\u5207\u6362\u3001\u51cf\u5c11\u9501\u7c92\u5ea6\u3001\u6570\u636e\u538b\u7f29\u3001\u7ed3\u679c\u7f13\u5b58<br \/>\n<\/h2>\n<h2>\n\t\u7ebf\u4e0a\u95ee\u9898\u5206\u6790<br \/>\n<\/h2>\n<p>\n\tDump\u83b7\u53d6\u3001\u7ebf\u7a0bDump\u3001\u5185\u5b58Dump\u3001gc\u60c5\u51b5\n<\/p>\n<p>\n\t\u81ea\u5df1\u7f16\u5199\u5404\u79cd outofmenmory\u3001stackoverflow\u7a0b\u5e8f\n<\/p>\n<p>\n\tHeapOutOfMemory\u3001Young OutOfMemory\u3001MethodArea OutOfMemory\u3001ConstantPool OutOfMemory\u3001DirectMemory OutOfMemory\u3001Stack OutOfMemory Stack OverFlow\n<\/p>\n<h2>\n\t\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u601d\u8def<br \/>\n<\/h2>\n<p>\n\t\u5185\u5b58\u6ea2\u51fa\u3001\u7ebf\u7a0b\u6b7b\u9501\u3001\u7c7b\u52a0\u8f7d\u51b2\u7a81\n<\/p>\n<p>\n\t\u4f7f\u7528\u5de5\u5177\u5c1d\u8bd5\u89e3\u51b3\u4e00\u4e0b\u95ee\u9898\uff0c\u5e76\u5199\u51fa\u603b\u7ed3\n<\/p>\n<p>\n\t\u5f53\u4e00\u4e2aJava\u7a0b\u5e8f\u54cd\u5e94\u5f88\u6162\u65f6\u5982\u4f55\u67e5\u627e\u95ee\u9898\u3001\u5f53\u4e00\u4e2aJava\u7a0b\u5e8f\u9891\u7e41FullGc\u65f6\u5982\u4f55\u89e3\u51b3\u95ee\u9898\u3001\u5982\u4f55\u67e5\u770b\u5783\u573e\u56de\u6536\u65e5\u5fd7\u3001\u5f53\u4e00\u4e2aJava\u5e94\u7528\u53d1\u751fOutOfMemory\u65f6\u8be5\u5982\u4f55\u89e3\u51b3\u3001\u5982\u4f55\u5224\u65ad\u662f\u5426\u51fa\u73b0\u6b7b\u9501\u3001\u5982\u4f55\u5224\u65ad\u662f\u5426\u5b58\u5728\u5185\u5b58\u6cc4\u9732\n<\/p>\n<p>\n\t\u7f16\u8bd1\u539f\u7406\u77e5\u8bc6\n<\/p>\n<p>\n\t\u7f16\u8bd1\u4e0e\u53cd\u7f16\u8bd1\n<\/p>\n<p>\n\tJava\u4ee3\u7801\u7684\u7f16\u8bd1\u4e0e\u53cd\u7f16\u8bd1\n<\/p>\n<h2>\n\tJava\u7684\u53cd\u7f16\u8bd1\u5de5\u5177<br \/>\n<\/h2>\n<p>\n\t\u8bcd\u6cd5\u5206\u6790\uff0c\u8bed\u6cd5\u5206\u6790\uff08LL\u7b97\u6cd5\uff0c\u9012\u5f52\u4e0b\u964d\u7b97\u6cd5\uff0cLR\u7b97\u6cd5\uff09\uff0c\u8bed\u4e49\u5206\u6790\uff0c\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u4e2d\u95f4\u4ee3\u7801\uff0c\u4ee3\u7801\u751f\u6210\uff0c\u4ee3\u7801\u4f18\u5316\n<\/p>\n<h2>\n\t\u64cd\u4f5c\u7cfb\u7edf\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\tLinux\u7684\u5e38\u7528\u547d\u4ee4\n<\/p>\n<p>\n\t\u8fdb\u7a0b\u540c\u6b65\n<\/p>\n<p>\n\t\u7f13\u51b2\u533a\u6ea2\u51fa\n<\/p>\n<p>\n\t\u5206\u6bb5\u548c\u5206\u9875\n<\/p>\n<p>\n\t\u865a\u62df\u5185\u5b58\u4e0e\u4e3b\u5b58\n<\/p>\n<h2>\n\t\u6570\u636e\u5e93\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\tMySQL \u6267\u884c\u5f15\u64ce\n<\/p>\n<p>\n\tMySQL \u6267\u884c\u8ba1\u5212\n<\/p>\n<p>\n\t\u5982\u4f55\u67e5\u770b\u6267\u884c\u8ba1\u5212\uff0c\u5982\u4f55\u6839\u636e\u6267\u884c\u8ba1\u5212\u8fdb\u884cSQL\u4f18\u5316\n<\/p>\n<h2>\n\tSQL\u4f18\u5316<br \/>\n<\/h2>\n<p>\n\t\u4e8b\u52a1\n<\/p>\n<p>\n\t\u4e8b\u52a1\u7684\u9694\u79bb\u7ea7\u522b\u3001\u4e8b\u52a1\u80fd\u4e0d\u80fd\u5b9e\u73b0\u9501\u7684\u529f\u80fd\n<\/p>\n<p>\n\t\u6570\u636e\u5e93\u9501\n<\/p>\n<p>\n\t\u884c\u9501\u3001\u8868\u9501\u3001\u4f7f\u7528\u6570\u636e\u5e93\u9501\u5b9e\u73b0\u4e50\u89c2\u9501\n<\/p>\n<p>\n\t\u6570\u636e\u5e93\u4e3b\u5907\u642d\u5efa\n<\/p>\n<p>\n\tbinlog\n<\/p>\n<p>\n\t\u5185\u5b58\u6570\u636e\u5e93\n<\/p>\n<p>\n\tH2\n<\/p>\n<p>\n\t\u5e38\u7528\u7684NoSQL\u6570\u636e\u5e93\n<\/p>\n<p>\n\tredis\u3001memcached\n<\/p>\n<p>\n\t\u5206\u522b\u4f7f\u7528\u6570\u636e\u5e93\u9501\u3001NoSQL\u5b9e\u73b0\u5206\u5e03\u5f0f\u9501\n<\/p>\n<p>\n\t\u6027\u80fd\u8c03\u4f18\n<\/p>\n<h2>\n\t\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\t\u6808\u3001\u961f\u5217\u3001\u94fe\u8868\u3001\u6570\u7ec4\u3001\u54c8\u5e0c\u8868\n<\/p>\n<h2>\n\t\u6811<br \/>\n<\/h2>\n<p>\n\t\u4e8c\u53c9\u6811\u3001\u5b57\u5178\u6811\u3001\u5e73\u8861\u6811\u3001\u6392\u5e8f\u6811\u3001B\u6811\u3001B+\u6811\u3001R\u6811\u3001\u5bf9\u8def\u6811\u3001\u7ea2\u9ed1\u6811\n<\/p>\n<h2>\n\t\u6392\u5e8f\u7b97\u6cd5<br \/>\n<\/h2>\n<p>\n\t\u5404\u79cd\u6392\u5e8f\u7b97\u6cd5\u548c\u65f6\u95f4\u590d\u6742\u5ea6\u3001\u6df1\u5ea6\u4f18\u5148\u548c\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\u3001\u5168\u6392\u5e8f\u3001\u8d2a\u5fc3\u7b97\u6cd5\u3001KMP\u7b97\u6cd5\u3001hash\u7b97\u6cd5\u3001\u6d77\u91cf\u6570\u636e\u5904\u7406\n<\/p>\n<h2>\n\t\u5927\u6570\u636e\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\tZookeeper\u3001\u57fa\u672c\u6982\u5ff5\uff0c\u5e38\u89c1\u7528\u6cd5\n<\/p>\n<p>\n\tSolr\u3001Lucene\u3001ElasticSearch\n<\/p>\n<p>\n\t\u5728linux\u4e0a\u90e8\u7f72solr\uff0csolrcloud\uff0c\u65b0\u589e\uff0c\u5220\u9664\uff0c\u67e5\u8be2\u7d22\u5f15\n<\/p>\n<p>\n\tStorm\uff0c\u6d41\u5f0f\u8ba1\u7b97\uff0c\u4e86\u89e3Spark\uff0cS4\n<\/p>\n<p>\n\t\u5728linux\u4e0a\u90e8\u7f72storm\uff0c\u7528zookeeper\u505a\u534f\u8c03\uff0c\u8fd0\u884cstorm hello world\uff0clocal\u548cremote\u6a21\u5f0f\u8fd0\u884c\u8c03\u8bd5storm topology\u3002\n<\/p>\n<p>\n\tHadoop\uff0c\u79bb\u7ebf\u8ba1\u7b97\n<\/p>\n<p>\n\tHDFS\u3001MapReduce\n<\/p>\n<p>\n\t\u5206\u5e03\u5f0f\u65e5\u5fd7\u6536\u96c6flume\uff0ckafka\uff0clogstash\n<\/p>\n<p>\n\t\u6570\u636e\u6316\u6398\uff0cmahout\n<\/p>\n<h2>\n\t\u7f51\u7edc\u5b89\u5168\u77e5\u8bc6<br \/>\n<\/h2>\n<p>\n\t\u4ec0\u4e48\u662fXSS\u3001XSS\u7684\u9632\u5fa1\u3001\u4ec0\u4e48\u662fCSRF\u3001\u4ec0\u4e48\u662f\u6ce8\u5165\u653b\u51fb\u3001SQL\u6ce8\u5165\u3001XML\u6ce8\u5165\u3001CRLF\u6ce8\u5165\u3001\u4ec0\u4e48\u662f\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e\n<\/p>\n<h2>\n\t\u52a0\u5bc6\u4e0e\u89e3\u5bc6<br \/>\n<\/h2>\n<p>\n\tMD5\u3001SHA1\u3001DES\u3001AES\u3001RSA\u3001DSA\n<\/p>\n<p>\n\t\u4ec0\u4e48\u662fDOS\u653b\u51fb\u548cDDOS\u653b\u51fb\u3001Memcached\u4e3a\u4ec0\u4e48\u53ef\u4ee5\u5bfc\u81f4DDOS\u653b\u51fb\u3001\u4ec0\u4e48\u662f\u53cd\u5c04\u578bDDOS\n<\/p>\n<p>\n\tSSL\u3001TLS\u3001HTTPS\n<\/p>\n<p>\n\t\u5982\u4f55\u901a\u8fc7Hash\u78b0\u649e\u8fdb\u884cDOS\u653b\u51fb\n<\/p>\n<p>\n\t\u7528openssl\u7b7e\u4e00\u4e2a\u8bc1\u4e66\u90e8\u7f72\u5230apache\u6216nginx\n<\/p>\n<h2>\n\t\u67b6\u6784\u5e08\u7bc7<br \/>\n<\/h2>\n<p>\n\t\u5206\u5e03\u5f0f\n<\/p>\n<p>\n\t\u6570\u636e\u4e00\u81f4\u6027\u3001\u670d\u52a1\u6cbb\u7406\u3001\u670d\u52a1\u964d\u7ea7\n<\/p>\n<h2>\n\t\u5206\u5e03\u5f0f\u4e8b\u52a1<br \/>\n<\/h2>\n<p>\n\t2PC\u30013PC\u3001CAP\u3001BASE\u3001\u53ef\u9760\u6d88\u606f\u6700\u7ec8\u4e00\u81f4\u6027\u3001\u6700\u5927\u52aa\u529b\u901a\u77e5\u3001TCC\n<\/p>\n<h2>\n\t\u5206\u5e03\u5f0f\u6570\u636e\u5e93<br \/>\n<\/h2>\n<p>\n\t\u600e\u6837\u6253\u9020\u4e00\u4e2a\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u3001\u4ec0\u4e48\u65f6\u5019\u9700\u8981\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u3001mycat\u3001otter\u3001HBase\n<\/p>\n<h2>\n\t\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf<br \/>\n<\/h2>\n<p>\n\tmfs\u3001fastdfs\n<\/p>\n<h2>\n\t\u5206\u5e03\u5f0f\u7f13\u5b58<br \/>\n<\/h2>\n<p>\n\t\u7f13\u5b58\u4e00\u81f4\u6027\u3001\u7f13\u5b58\u547d\u4e2d\u7387\u3001\u7f13\u5b58\u5197\u4f59\n<\/p>\n<h2>\n\t\u5fae\u670d\u52a1<br \/>\n<\/h2>\n<p>\n\tSOA\u3001\u5eb7\u5a01\u5b9a\u5f8b\n<\/p>\n<p>\n\tServiceMesh\n<\/p>\n<p>\n\tDocker &amp; Kubernets\n<\/p>\n<p>\n\tSpring Boot\n<\/p>\n<p>\n\tSpring Cloud\n<\/p>\n<h2>\n\t\u9ad8\u5e76\u53d1<br \/>\n<\/h2>\n<p>\n\t\u5206\u5e93\u5206\u8868\n<\/p>\n<p>\n\tCDN\u6280\u672f\n<\/p>\n<h2>\n\t\u6d88\u606f\u961f\u5217<br \/>\n<\/h2>\n<p>\n\tActiveMQ\u3001RabbitMQ\u3001ZeroMQ\u3001Kafka\u3001RocketMQ\u7b49\n<\/p>\n<h2>\n\t\u76d1\u63a7<br \/>\n<\/h2>\n<p>\n\t\u76d1\u63a7\u4ec0\u4e48\u3001CPU\u3001\u5185\u5b58\u3001\u78c1\u76d8I\/O\u3001\u7f51\u7edcI\/O\u7b49\n<\/p>\n<p>\n\t\u76d1\u63a7\u624b\u6bb5\n<\/p>\n<p>\n\t\u8fdb\u7a0b\u76d1\u63a7\u3001\u8bed\u4e49\u76d1\u63a7\u3001\u673a\u5668\u8d44\u6e90\u76d1\u63a7\u3001\u6570\u636e\u6ce2\u52a8\n<\/p>\n<h2>\n\t\u65e5\u5fd7\u6536\u96c6\u91c7\u96c6<br \/>\n<\/h2>\n<p>\n\t\u65e5\u5fd7\u3001\u57cb\u70b9\n<\/p>\n<p>\n\tDapper\n<\/p>\n<h2>\n\t\u8d1f\u8f7d\u5747\u8861<br \/>\n<\/h2>\n<p>\n\tTocmat\u8d1f\u8f7d\u5747\u8861\u3001Nginx\u8d1f\u8f7d\u5747\u8861\n<\/p>\n<h2>\n\tDNS<br \/>\n<\/h2>\n<p>\n\tDNS\u539f\u7406\u3001DNS\u7684\u8bbe\u8ba1\n<\/p>\n<h2>\n\tCDN<br \/>\n<\/h2>\n<p>\n\t\u6570\u636e\u4e00\u81f4\u6027\n<\/p>\n<h2>\n\t\u4e13\u5bb6\u7bc7<br \/>\n<\/h2>\n<p>\n\t\u4e91\u8ba1\u7b97\n<\/p>\n<p>\n\tIaaS\u3001SaaS\u3001PaaS\u3001\u865a\u62df\u5316\u6280\u672f\u3001openstack\u3001Serverlsess\n<\/p>\n<h2>\n\t\u641c\u7d22\u5f15\u64ce<br \/>\n<\/h2>\n<p>\n\tSolr\u3001Lucene\u3001Nutch\u3001Elasticsearch\n<\/p>\n<h2>\n\t\u6743\u9650\u7ba1\u7406<br \/>\n<\/h2>\n<p>\n\tShiro\n<\/p>\n<h2>\n\t\u533a\u5757\u94fe<br \/>\n<\/h2>\n<p>\n\t\u54c8\u5e0c\u7b97\u6cd5\u3001Merkle\u6811\u3001\u516c\u94a5\u5bc6\u7801\u7b97\u6cd5\u3001\u5171\u8bc6\u7b97\u6cd5\u3001Raft\u534f\u8bae\u3001Paxos\u7b97\u6cd5\u3001Raft\u7b97\u6cd5\u3001\u62dc\u5360\u5ead\u95ee\u9898\u4e0e\u7b97\u6cd5\u3001\u6d88\u606f\u8ba4\u8bc1\u7801\u4e0e\u6570\u5b57\u7b7e\u540d\u3002\n<\/p>\n<p>\n\t\u4ee5\u4e0a\u8fd9\u4e9b\u4f60\u77e5\u9053\u591a\u5c11\uff1f\u4e86\u89e3\u591a\u5c11\uff1f\u4f1a\u4e86\u591a\u5c11\uff1f\u542c\u8fc7 50% \u4ee5\u4e0a\u6280\u672f\u7684\u4e3e\u624b\uff0c\u4f1a 50% \u4ee5\u4e0a\u6280\u672f\u7684\u4e3e\u624b\uff01\u4e0a\u9762\u7b49\u7ea7\u7684\u5212\u5206\u5e76\u4e0d\u662f\u7279\u522b\u7684\u51c6\u786e\uff0c\u6709\u4e9b\u8fd8\u6709\u4e00\u4e9b\u4e89\u8bae\uff0c\u4ec5\u4f9b\u53c2\u8003\uff01\n<\/p>\n<p>\n\t\u4ee5\u4e0a\u8fd9\u4e9b\u5185\u5bb9\uff0c\u4e00\u5c11\u90e8\u5206\u6211\u7684\u516c\u4f17\u53f7\u548c\u535a\u5ba2\u5df2\u7ecf\u53d1\u8868\u8fc7\u5e76\u7ed9\u5927\u5bb6\u63a8\u8350\u8fc7\u3002\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7&ldquo;\u4e1a\u4f59\u8349&rdquo;\u5e0c\u671b 2 \u5e74\u4e4b\u5185\u4f60\u80fd\u5b66\u5230\u5e76\u5b66\u4f1a\u8fd9\u4e9b\u77e5\u8bc6\u70b9\u3002\u6210\u5c31\u4e13\u5bb6\uff0c\u4e3a\u4e2d\u56fd\u68a6\u8d21\u732e\u81ea\u5df1\u7684\u529b\u91cf\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3612\">\u7a0b\u5e8f\u5458\u4ece\u521d\u7ea7\u5230\u4e2d\u7ea7\u3001\u9ad8\u7ea7\u3001\u67b6\u6784\u5e08\u3001\u4e13\u5bb6\u7ec8\u8eab\u5b66\u4e60\u7ebf\u8def\u56fe\uff01<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>Java \u7a0b\u5e8f\u5458\u7ec8\u8eab\u5b66\u4e60\u7ebf\u8def\u56fe\uff0c\u770b\u5b8c\u6211\u54ed\u4e86\uff01 Java \u7a0b\u5e8f\u5458\u771f\u662f\u82e6\u903c\uff0c\u8fd9\u4e48\u591a\u6280\u672f\uff0c\u6bcf\u6708\u62ff\u90a3\u4e48\u4e00\u70b9\u5de5\u8d44\uff0c\u4f60\u4ee5\u4e3a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[799,1825,61,2,578],"class_list":["post-3612","post","type-post","status-publish","format-standard","hentry","category-java","category-yyzt","tag-799","tag-1825","tag-61","tag-2","tag-578"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3612"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3612\/revisions"}],"predecessor-version":[{"id":3613,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3612\/revisions\/3613"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}