mohamed_taman$ java HelloUniverse Hello InfoQ Universe ããã«ãããJVMãèµ·åããã¯ã©ã¹ããã¼ããããã³ã¼ããå®è¡ããã¾ãã ããããã³ã¼ãã®ä¸é¨ããã°ãããã¹ããããå ´åããJavaã®å¦ç¿ãå§ããã°ããã®å ´åï¼ãããéµã§ãï¼ãè¨èªã試ãã¦ã¿ããå ´åã¯ã©ãã§ãããããã®ããã»ã¹ã«ãããããã2ã¤ã®ã¹ãããã¯ãå°ãæéããããããã«æããããããã¾ããã Java SE 11ã§ã¯ãä¸éã³ã³ãã¤ã«ãªãã§ãåä¸ã®ã½ã¼ã¹ã³ã¼ããã¡ã¤ã«ãç´æ¥èµ·åãããªãã·ã§ã³ãããã¾ãã ãã®æ©è½ã¯ãç°¡åãªããã°ã©ã ã試ãã¦ã¿ããè¨èªãåãã¦ä½¿ç¨ãã人ã«ã¨ã£ã¦ç¹ã«ä¾¿å©ã§ãããã®æ©è½ãjshellã¨çµã¿åãããã¨ãåªããåå¿è åãã®å¦ç¿ãã¼ã«ã»ãããå¾ããã¾ãã æ°ããJshell 10+ã®è©³ç´°ã«ã¤ãã¦ã¯ããããªã³ã¼ã¹ã Hands-on Java 10 Pro
æè¿ JVM ã®ãã¼ãé åã¨ãã©ã¡ã¼ã¿ãããã¦ã³ã³ããã®é¢ä¿ã«ã¤ãã¦èª¿ã¹ã¦ã¾ããã æ¡å¤ã¾ã¨ã¾ã£ãæ å ±ãå°ãªãã£ãã®ã§ç°¡åã«ã¾ã¨ãã¾ããã Java ã®ãã¼ããµã¤ãºãè¨å® ã¾ã㯠Java ã®ãã¼ããµã¤ãºã«ã¤ãã¦ç°¡åãªããããã§ãã æ¬çªç°å¢ã§ Java ã¢ããªã±ã¼ã·ã§ã³ãéç¨ããä¸ã§ãJVM ã®ãã¼ããµã¤ãºã決å®ããã®ã¯é常ã«å¤§äºãªãã¤ã³ãã§ãã ãã¼ãé åã®æ大ãµã¤ãºã大ããããã°ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ (GC) ã®åæ°ã¯æ¸ãããã¨ãã§ãã¾ããã å¿ è¦ä»¥ä¸ã«å¤§ããããããã¨ç¡é§ã«ãªã½ã¼ã¹ãæ¶è²»ããããOOM killer 㧠OS ã«ããã»ã¹ãçµäºããããã¾ãã JVM ã使ç¨ã§ãããã¼ããµã¤ãºã¯ãJava API ã® Runtime.getRuntime().maxMemory() ã§ç¢ºèªã§ãã¾ãã ã¾ã java ã®èµ·åãªãã·ã§ã³ã« -XX:+PrintFlagsFinal ãªãã·ã§
â»ãã®å 容ã¯å人çãªèå¯ãªã®ã§ãééã£ã¦ããç®æãããã¨æãã¾ããããããé¨åãè¦ã¤ããéã¯ãã²æãã¦ä¸ããã RDBMSã®æ¤ç´¢ãæ©ãããããã«Indexã£ã¦ä½¿ãã¾ããããä¾ãã°ãããªãã¼ãã« CREATE TABLE user ( id INT UNSIGNED NOT NULL, name VARCHAR(255) NOT NULL, UNIQUE INDEX (id) ); idã«ã©ã ã«Indexãå¼µã£ã¦ãã¾ããããã¯idã§ã®æ¤ç´¢ãé«éã«ããããã§ããããã§idã«ã©ã ã«Indexãè²¼ã£ã¦ããªãå ´åã¨æ¯ã¹ãã¨æ¤ç´¢æéãå¤§å¹ ã«å¤ãã£ã¦ãã¦ãã¾ãã¾ãï¼ç¹ã«ã¬ã³ã¼ããå¤ããªã£ãæ) ã§ã¯ãªãIndexãè²¼ãã¨æ¤ç´¢ãæ©ããªããã§ãããï¼ï¼ Indexã¨ã¯ãã®åã®éãç´¢å¼ãæå³ãã¾ããç¹å®ã®ã«ã©ã ã®ç´¢å¼ãä½æãã¦ãããã¨ã§æ¤ç´¢ãé«éåãã¾ãã (æ¬ã®æå¾ã«ãã¿ããªé ã§åèªã並ã¹ãããããã¦ãã¾ã
translate-shellã使ã£ã¦Google翻訳ã§è±èªãåå¼·ä¸ã github.com å·¦ã®ã³ãã³ã: rlwrap trans -brief è±æ¥ç¿»è¨³ã§ãèããè±æãæã£ã¦ãæ¥æ¬èªã«ç¿»è¨³ãããã確èªããã®ã«ä½¿ã -briefãªãã·ã§ã³ãã¤ãã¦ã·ã³ãã«ãªåºåã« å³ã®ã³ãã³ã: rlwrap trans :en æ¥è±ç¿»è¨³ã§ãåèªã調ã¹ãã®ã«ä½¿ã£ã¦ãã ãªãã·ã§ã³ãã¤ããã«é¢é£æ å ±ãåºåãã¦ãã 2ã¤ã®ã¦ã£ã³ãã¦ã«åå²ãã¦ããããã³ãã³ããå©ãã®ãã¨ã¤ãªã¢ã¹ã§ç°¡æ½ã«ããã alias tl="tmux new-window -n translation \"echo 'en -> ja'; rlwrap trans -brief\" \\; split-window -h \"echo 'ja -> en'; rlwrap trans :en\""
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}