1. ã¯ã©ã¹ãã¼ã ãªã¼ã¯ãã¿ã¼ã³ ãªã«ããããããã®ï¼ Takayoshi Kimura Senior Software Maintenance Engineer, JBoss Global Support Service Red Hat
1. ã¯ã©ã¹ãã¼ã ãªã¼ã¯ãã¿ã¼ã³ ãªã«ããããããã®ï¼ Takayoshi Kimura Senior Software Maintenance Engineer, JBoss Global Support Service Red Hat
ãé¡ã¯ãããããã»ã¹ãã©ã®ç¨åº¦ã®ç©çã¡ã¢ãªãå©ç¨ããããç¥ããããã§ãã æã£ã¨ãã°ããç¥ãããã¨ã㯠top ã ps ãªã©ã§èª¿ã¹ãã¨è¯ãã§ãããããä¾ãã°æå ã® coLinux 㧠top ã㦠M ãã¼ã§ã½ã¼ããã㨠emacs ã®ããã»ã¹ãæãã¡ã¢ãªã使ã£ã¦ããããã§ãã PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1923 naoya 18 0 23120 19m 3096 S 0.0 2.0 0:55.40 emacsã¡ã¢ãªãµã¤ãºã¯ VIRT 㨠RES ãããã¾ãããVIRT 㯠Virtual ã®ç¥ã§ä»®æ³ã¡ã¢ãªé åã®ãµã¤ãºãRES ã Resident ã®ç¥ã§ãå®éã«ä½¿ç¨ãã¦ããç©çã¡ã¢ãªé åã®ãµã¤ãºã19MB ã»ã©ä½¿ã£ã¦ããããã§ãããã® emacs ã®ããã»ã¹ãå©ç¨ããã¡ã¢ãªé åã¯ãã£ãã 20MB ç¨åº¦ã¨
ãã¼ãã¦ã§ã¢ã®ã¨ã©ã¼ã§ã¡ã¢ãªã®å 容ãåãã¦ãã¾ããã¨ãç¨ã«ããã大æµã®DRAMã¨ã©ã¼ã¯ããããããã°ã©ã ãã¯ã©ãã·ã¥ããçµæã«ãªãã ãã ãããã¼ã¿ç ´å£ã«ãªããã¨ãããããããæªæã®ãã使ãæ¹ãããã°ã»ãã¥ãªãã£ç ´ãã«ä½¿ããã¨ãã§ãã¦ãã¾ããããã§ã¯ã¡ã¢ãªã¨ã©ã¼ã¨ã»ãã¥ãªãã£ã®è©±ããããã¨æãã ã¡ã¢ãªã®ã¨ã©ã¼çã¯æå¤ãªã»ã©é«ãããã¼ã¿ã»ã³ã¿ã¼ã§å¤§è¦æ¨¡ãªãã·ã³ç¾¤ã対象ã«å®éã«è¦³æ¸¬ããã¨ããã1å¹´éã«1å以ä¸ã®ã¨ã©ã¼ãçºçããDIMMã¢ã¸ã¥ã¼ã«ã¯å ¨ä½ã®8%ã«ã®ã¼ã£ãããã ãDIMM 1æã«æ°ç¾ååã®ã¡ã¢ãªã»ã«ãå®è£ ããã¦ããã¨ãã£ã¦ãããã®ã¨ã©ã¼çã¯ã¡ãã£ã¨ã³ã£ããããããã大ããªæ°åã§ã¯ãªãã ãããï¼ ãµã¼ãã§ã¯æ®éã¯ã¨ã©ã¼è¨æ£ä»ãã®DIMMã使ãã®ã§1ãããã®ã¨ã©ã¼ã¯åé¡ã«ãªããªãããã¨ã©ã¼è¨æ£ã®ãªãã³ã³ã·ã¥ã¼ãæ©å¨ã§ã¯ããã¯å®éçãªåé¡ã«ãªãããã ã¡ã¢ãªã¨ã©ã¼ãå©ç¨ããã»ãã¥ãªãã£ç ´ã
æ´èµ°ãã¦ã©ãã©ãã¡ã¢ãªãé£ãã¹ã¯ãªããã OSå ¨ä½ã®ã¡ã¢ãªä½¿ç¨é(CentOS5 ... ã«ã¼ãã«ã¯2.6ç³»ã«ãªã)ã®åä½ã«ã©ããªå½±é¿ãä¸ããã®ããã£ã¦ã®ãè¦ãããã«ä»¥ä¸ã®ãããªãã¹ãããã¦ã¿ã¾ãããä»çµã¿ã¯ã ãããç解ãã¦ããã©ãç´°ããæ°å¤ã追ã£ããã¨ã¯ãªãã£ãã®ã§ãã£ã¦ã¿ã¾ããã sshã§ãã°ã¤ã³ãã¦ãtopãç«ã¡ä¸ãããããã»ã¹ãè¦å¼µãç¨æããã¦ãã å¥ã®sshããã¡ããã¦ã Perlã¯ã³ã©ã¤ãã¼ã§ä»¥ä¸ã®ãããªããã»ã¹ãèµ°ããã(ãã®ããã»ã¹ãtopã§è¦å¼µã) # 1ç§ãã¨ã«5MBåä½ã§ã¡ã¢ãªãé£ãããã»ã¹ # æ°å¤ã¯ã好ã¿ã§ perl -e "while(1){ sleep 1; push @h , 1 x 1024 x 1024 x 5 } " ã¡ãªã¿ã«topã§è¦å¼µãã¨ã㯠ã¡ã¢ãªä½¿ç¨éã§ã½ã¼ããããããã«ã㦠topèµ·åä¸ã« shift + o ãæ¼ã㦠n ãæ¼ã㨠å®ã¡ã¢ãª
ããã«ã¡ã¯ãæè¤ã§ãã æè¿ãæ°ããã¹ãã¼æ¿ã欲ãããªã¨æã£ã¦ãã¾ããç¾å¨ä½¿ã£ã¦ããOGASAKAã®æ¿ã¯5å¹´ç®ã«å ¥ããã¡ã¼ã«ã¼ãããã以ä¸ã¯ãã¥ã¼ã³ããã(ã¡ã³ããã³ã¹)ã¯ã§ããªãããã¨è¨ããã¦ãã¾ãã¾ãããããã次ã«è²·ããªããã¹ãã¼ãã¼ãã¼ã®äººã¨ä¸ç·ã«ãã¦ãã¼ã«é£ã³è¾¼ã¿ãããã»ããã¡ããã¿ã¤ããè¯ãã®ããªã¨èãã¦ãã¾ããçããã®ãªã¹ã¹ã¡ããã²æãã¦ãã ããã ãã¦ãä»æ¥ã¯Linux Kernelä¸ã§ã®ã¡ã¢ãªç®¡çãç¹ã«ãã¼ã¸åå(Page Reclaim)ã¨ã¹ã¯ããã«çµãããã¹ã¯ããã®çç±ãããã¼ã¸ãååããä»çµã¿ãããã¦ãã¹ã¯ããã®æ§åã観å¯ãããã®3ç¹ã«åãã¦ã話ããã¾ãããã¹ã¯ããããã®ãæ°æã¡æªããã¨èãã¦ããæ¹ã¯å°ãªããªãã¨æãã¾ãããç§ãããèãã¦ããææãããã¾ãããããããããã¯æ¬å½ã«æªãäºãªã®ããä»åæãä¸ãã¦è¡ãã¾ãã â»ä¸»ãªå¯¾è±¡Kernelã¯2.6.32(Red Ha
ãã®è¨äºã¯æ¤è¨¼å¯è½ãªåèæç®ãåºå ¸ãå ¨ã示ããã¦ããªãããä¸ååã§ãã åºå ¸ã追å ãã¦è¨äºã®ä¿¡é ¼æ§åä¸ã«ãååãã ãããï¼ãã®ãã³ãã¬ã¼ãã®ä½¿ãæ¹ï¼ åºå ¸æ¤ç´¢?: "ã³ã¢ãã³ã" â ãã¥ã¼ã¹Â · æ¸ç±Â · ã¹ã«ã©ã¼Â · CiNii · J-STAGE · NDL · dlib.jp · ã¸ã£ãã³ãµã¼ã · TWL (2017å¹´7æ) ã³ã¢ãã³ãï¼è±èªï¼core dumpï¼ã¯ãããæç¹ã®ä½¿ç¨ä¸ã®ã¡ã¢ãªã®å 容ããã®ã¾ã¾è¨é²ãããã®ã§ãããä¸è¬ã«ç°å¸¸çµäºããããã°ã©ã ã®ãããã°ã«ä½¿ããããæè¿ã§ã¯ãç¹å®ã®ããã»ã¹ã®ã¡ã¢ãªã¤ã¡ã¼ã¸ï¼ãããã¯ãã®ä¸é¨ï¼ã¨ã¬ã¸ã¹ã¿ã®å 容ãªã©ã®æ å ±ãæ ¼ç´ãããã¡ã¤ã«ãæãã®ãä¸è¬çã§ãããããããæ¬æ¥ã¯ä½¿ç¨ä¸ã¡ã¢ãªã®å 容ãå ¨ã¦ããªã³ãã¢ã¦ããããã®ãæããã ãã®ååã¯ããã¤ã¦ä¸»è¨æ¶ç¨ã«å©ç¨ãããç£æ°ã³ã¢ã¡ã¢ãªã®å 容ãããã³ããã©ãã¯ãç å©ãå°éº¦ãªã©ã大éã«ãã³ãï¼ã©
Java ã®ãã¼ãé ååã³ éãã¼ãé åãã¡ã¢ãªç®¡çã«ã¤ãã¦ç°¡åã«èª¬æãããã¾ãã ãã¼ãããã¼ããµã¤ãºã¯ã¬ã¼ãã¸ã»ã³ã¬ã¯ã·ã§ã³ï¼GC ( Garbage Collection ) ã¨å¯æ¥ãªé¢é£ãããã¾ãã以ä¸ã®ãã¼ã¸ãåããã¦åç §ãã ããã ã¬ã¼ãã¸ã»ã³ã¬ã¯ã·ã§ã³ï¼GC ( Garbage Collection ) ã«ã¤ãã¦ã®ç°¡åãªèª¬æã¨èª¿æ»æ¹æ³ Java ã®ãªãã¸ã§ã¯ãã¯ã大ããåãã¦ãNewãOld ãPermanent ã¨ããã¡ã¢ãªé åã§ç®¡çããã¾ãã æ°ãããªãã¸ã§ã¯ããæ ¼ç´ããã®ã New é åã¨å¼ã°ããå¤ããªãã¸ã§ã¯ããæ ¼ç´ããã®ã Old é åã¨å¼ã°ãã¾ãã Permanent é åã«ã¯ã¯ã©ã¹ãã¡ã½ãããªã©ã®æ å ±ãæ ¼ç´ããã¾ãã ( ããã㯠Permanent Generation, Tenured Generation, Young Generation ã¨ã
Tweet Cult of Macã§ãMacã®ã¡ã¢ãªã解æ¾ããã·ã³ãã«ãªæ¹æ³ãç´¹ä»ããã¦ããã ã³ãã³ãã¯ãpurgeãã ã¿ã¼ããã«ã§ãpurgeãã¨å ¥åãã¦enterãæ¼ãã¨ãMacãæ°ç§éæä½ã§ããªããªãããã®å¾ã¢ã¯ãã£ããã£ã¢ãã¿ã確èªããã¨ã¡ã¢ãªã®ç©ºããå¢ãã¦ããã purgeå purgeå¾ ä»åº¦Macã®åä½ãé ããªã£ãããpurgeãã試ãã¦ã¿ããã¨æãã ã©ãã¥ã¿ã®å´©å£ããã«ã¹ãªããMacã®è§£æ¾ã¯ãã¼ã¸ã§ã ⤠ãã®è¨äºãGoogle+ã§ã·ã§ã¢ é¢é£è¨äº Mac OS Xã®å¤è¦³ãã·ã«ãã¼ã¨ã°ã¬ã¼ã¹ã±ã¼ã«ã«å¤æ´ããæ¹æ³ - #RyoAnnaBlog Macã®èµ·åé³ãæ¶ãã¢ããªãStartNinjaã - #RyoAnnaBlog Macã®ã¹ã¯ãªã¼ã³ã·ã§ããã®ãã¡ã¤ã«åã¨ç¨®é¡ãããã©ã«ãã§å¤æ´ããæ¹æ³ - #RyoAnnaBlog Macã®é³éã¨è¼åº¦ã64段éã§èª¿æ´ããæ¹æ³ -
ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³[注é 1]ï¼è±: garbage collectionãGCï¼ã¨ã¯ãã³ã³ãã¥ã¼ã¿ããã°ã©ã ãåçã«ç¢ºä¿ããã¡ã¢ãªé åã®ãã¡ãä¸è¦ã«ãªã£ãé åãèªåçã«è§£æ¾ããæ©è½ã§ããã1959å¹´ãããLISPã«ãããåé¡ã解決ããããã¸ã§ã³ã»ããã«ã¼ã·ã¼ã«ãã£ã¦çºæããã[1][2]ã ã¡ã¢ãªã®æçåã解æ¶ããæ©è½ã¯ã³ã³ãã¯ã·ã§ã³ï¼è±: memory compactionï¼ã¨å¼ã°ããå®ç¾æ¹æ³ã«ãã£ã¦ã¯ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã¨å ±ã«ã³ã³ãã¯ã·ã§ã³ãè¡ãä»çµã¿ã«ãªã£ã¦ããããã®ããã³ã³ãã¯ã·ã§ã³ãå«ãã¦ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã¨å¼ã¶å ´åãããããå³å¯ã«ã¯åºå¥ãããã ã¾ããã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ãè¡ã主ä½ã¯ã¬ãã¼ã¸ã³ã¬ã¯ã¿ï¼è±: garbage collectorï¼ã¨å¼ã°ãããã¬ãã¼ã¸ã³ã¬ã¯ã¿ã¯ã¿ã¹ã¯ãã¹ã¬ããã¨ãã¦å®è£ ãããå ´åãå¤ãã ãã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ããç´è¨³ããã°ãã´ãéããããã¿æ¾
æ¬è¨äºã¯ãHP-UX Developer Edgeã«æ²è¼ãããè¨äºãæ ªå¼ä¼ç¤¾ã¢ãããã¼ã¯ã»ã¢ã¤ãã£ããã³æ¬è¨äºã®çè ãç¬èªã®å¤æã®ãã¨ã«å çã»ä¿®æ£ãããã®ã§ãã ä»åã¯ãJavaã«ããããã¼ãã»ã¡ã¢ãªç®¡çã®è©³ç´°ã説æãã¾ããJVMã®ãã¼ãã»ã¡ã¢ãªã®ä¸ã§ãæ°ãããªãã¸ã§ã¯ãã¨å¤ããªãã¸ã§ã¯ããã©ã®ããã«é ç½®ãããããç解ãããã¨ã§ããã¼ãã»ã¡ã¢ãªãæå¹ã«å©ç¨ããã¦ãããå¦ããå¤æãããã¨ãã§ãã¾ããã¾ããJVMãåºåããã¬ãã¼ã¸ã»ã³ã¬ã¯ã·ã§ã³ã®ãã°ã解æãããªãã·ã§ã³ã®æå®ã«ãã£ã¦ãã¼ãã»ã¡ã¢ãªã®ãµã¤ãºãé©åã«ãã¥ã¼ãã³ã°ããæ¹æ³ãç´¹ä»ãã¾ãã Java ãã¼ãã»ã¡ã¢ãªã®æ§é Javaã«ãããã¬ãã¼ã¸ã»ã³ã¬ã¯ã·ã§ã³ã®ã¡ã«ããºã ãç解ããã«ã¯ãã¾ããã¼ãã»ã¡ã¢ãªã®æ§é ãç¥ã£ã¦ããå¿ è¦ãããã¾ãã å³1ã¯ãJVM ã«ããããã¼ãã»ã¡ã¢ãªã®æ§é ã示ãããã®ã§ãããã®å³ã示ãããã«ããã¼ãã»ã¡ã¢ãªã®
ååã®è¨äºãããã°ã©ã åå¿è ã«Cè¨èªã®ãã¤ã³ã¿ãä¸æ¬æãªããæããç¾½ç®ã«ãªã£ããªããããæããã¨è¯ãããã§ãã¤ã³ã¿ã®æãæ¹ãæ¸ãã¾ãããã½ã¬ã«å¯¾ãã¦ãããããã©ããã¦ãã¤ã³ã¿ã£ã¦ããä»çµã¿ãããã®ï¼ãã¨ãã質åãããã£ãã®ã§ãã¤ãã¤ãã¨æ¸ããã¨æãã¾ããæ¬ç¨¿ã¯ããã¤ã³ã¿ãããçç±ã®æãæ¹ãã§ã¯ãªãããã¤ã³ã¿ãããçç±ãã§ããåãã£ã¦ãã人ã«ã¯ç¸å½ã«éå±ãªæç« ã§ãã®ã§ãããã人ã¯èªã¾ãã«ã帰ããã ããã ã§ããã¼ã¨ãçµè«ã ãå ã«è¨ãã¨çã¡ã¢ãªåã®ããã次ã«é度ã¢ããã®ãããããã¦çç£æ§ã¢ããã®ããã§ãã 1. ã¡ã¢ãªã¯æéã§ããã ãã·ã³ã«æè¼ããã¦ããã¡ã¢ãªã«ã¯éããããã¾ããã¡ã¢ãªç©ºéã¯åºå¤§ã§ãããç¡éã§ã¯ãªãã®ã§ãã 好ãæ¾é¡ã«ã©ãã©ãã¡ã¢ãªã使ã£ã¦ãã¼ã¿ãæ ¼ç´ããããã«ã¯ãããªãã¨ããããã§ãããããããã°ã©ã ã¯è¨ç®ã®ããã«ã¡ã¢ãªç©ºéãå æãã¾ããä»®ã«âãããªæãã«ãããããªæéã¡ã¢
iOS 4ã«ãªããã«ãã¿ã¹ã¯æ©è½ãæè¼ããã¦ããæ ¼æ®µã«ä½¿ããã¢ãã«ãªã£ãiPhoneã§ãããiOS 4ã®ãã«ãã¿ã¹ã¯æ©è½ã¯Androidã®ããã«OSå´ã§ä¸å®ã®ã¿ã¤ãã³ã°ã§ã¡ã¢ãªã解æ¾ããªãããããã¼ã ãã¿ã³ãããã«ã¯ãªãã¯ããã¨ãã«è¡¨ç¤ºãããã¿ã¹ã¯ãã¼ã®ãããªãã®ã«ã©ãã©ãã¢ããªãæºã¾ã£ã¦ãããã¡ã¢ãªãé£ãã¤ã¶ãã¦ããã¾ãã ããã§ãä»åã¯iPhone 4ã«ã¦ãã«ãã¿ã¹ã¯æã®ã¡ã¢ãªã解æ¾ããæ¹æ³ãç´¹ä»ã ãã«ãã¿ã¹ã¯æã®ã¡ã¢ãªã解æ¾ããã«ã¯ã¾ããã¼ã ãã¿ã³ãããã«ã¯ãªãã¯ãã¦èµ·åãã¦ããã¢ããªã±ã¼ã·ã§ã³ã表示ããã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã表示ããããã¢ã¤ã³ã³ãé·ã¿ããããã¨ãã¢ããªã±ã¼ã·ã§ã³ã®ã¢ã¤ã³ã³ã®å·¦ä¸ã«ã-ãã表示ããããããã¿ãããããã¨ã§ã¢ããªã±ã¼ã·ã§ã³ã®ä¸è¦§ããã¢ã¤ã³ã³ãæ¶ããã¡ã¢ãªã解æ¾ãããã¨ãã§ãã¾ãã ãã®ç¶æ ããæãåºãã«ã¯ãã¼ã ãã¿ã³ãã·ã³ã°ã«ã¯ãªãã¯ããã°æãåºã
OSX 10.6 Snow Leopardã¯ã極ãã¦å®å®ãããä¿¡é ¼æ§ã®é«ããå¿«é©ãªOSã¨ãªã£ããä½ãããã¼ããã£ã¹ã¯ããèµ·åããç°å¢ã«ããã¦ããã®å¿«é©ããä¿ã¤ãããã£ãä¸ã¤æ°ãä»ãã¦ããã¹ããã¨ããããããã¯ãã¹ã¯ãã使ç¨é åã®å¢å ã極åæãããã¨ã ã¹ã¯ããã¸ã®ã¢ã¯ã»ã¹ãé »ç¹ã«çºçãã¦ããæã¯ããã®ã¬ã¤ã³ãã¼ã«ã¼ã½ã«ãããããåã£ã¦ããæã§ãããã©ããããããªãæä½ã¬ã¹ãã³ã¹ã®ä½ä¸ã«æ©ã¾ãããããããªç¶æ ã«æ¥µåé¥ããªãããã«ã使ã£ã¦ããªãã¡ã¢ãªãç´ æ©ã解æ¾ããæ¹æ³ã模索ãã¦ã¿ãã ãã®1 ãã©ã«ã容éãè¨ç®ãã ãã©ã«ã容éãè¨ç®ããéç¨ã§ã¡ã¢ãªã解æ¾ããããã¨ãããããããå©ç¨ããæ¹æ³ã¯ã3ã¤ãããã©ããä»çµã¿ã¯åããªã®ã§ãã©ããä¸ã¤ã®æ¹æ³ãå®è¡ããã ãã§ååã Finderãå©ç¨ããæ¹æ³ Finderã§èµ·åãã£ã¹ã¯ã®ã«ã¼ããéãã¦ããªã¹ã表示ã«ãããï¼command-2ï¼ è¡¨ç¤ºãªãã·
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}