12. AntifragileãªJVMã³ã³ãã https://github.com/kawasima/falchion Falchion Container JVM real process WebApplication JVM pool JVM virtual process JVM virtual process JVM real process WebApplication Listen the same port
ãµã¼ãã¹ä¸è¦§ãåå¾ããç®ç 稼åãã¦ããUbuntuãµã¼ãã®ãµã¼ãã¹ä¸è¦§ãåå¾ãã¦ãä¸è¦ãªãã®ãåæ¢ã»åé¤ãããã¨ã§ãµã¼ãã®è² è·ãåæ¸ããã¨å ±ã«ç¡é§ãªã»ãã¥ãªãã£ãã¼ã«ãçºçãããªãããã«ãããã¨æãã¾ãã RedHatç³»ã ã¨ãchkconfigãã¨ããã³ãã³ãããã£ã¦ãè»éã¬ãã«ãã¨ã«èªåã§ã®ãµã¼ãã¹èµ·åãèµ·åä¸ã®ãµã¼ãã¹ã®åæ¢ãä¸è¦§ã®è¡¨ç¤ºãç°¡åã«è¡ããã¨ãã§ãã¾ãã以åVineãLinuxã使ç¨ãã¦ããã¨ãã¯ã¨ã¦ããä¸è©±ã«ãªã£ãã³ãã³ããªãã§ãããUbuntuã«ã¯ãããããã¾ããã ã¨ãããã¨ã§ä»£ããã«ãªããããªã³ãã³ããæ¢ãã¦ã¿ã¾ããã sysv-rc-confã³ãã³ã ã¤ã³ã¹ãã¼ã« ã©ãããchkconfigã¨ä¼¼ããããªã³ãã³ãããããããªã®ã§æ©éã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãã sudo apt-get update sudo apt-get install sysv-rc-conf â»
æ¦è¦ scala.sys.processããã±ã¼ã¸ã«ã¯å¤é¨ã³ãã³ããæ°æ¥½ã«å®è¡ã§ãããããããæ©è½ãå ¥ã£ã¦ãããScala2.9以éã§æè¼ãããã ä»åã¯ã¨ããããlsãcatãªã©ã®ã³ãã³ãã®å®è¡ããtail -fã®çµæåå¾ãªã©ããã¦ã¿ãã lsãã¦ã¿ã scala.sys.process.Processã使ã£ã¦çµæãæ¨æºåºåã«åºãã¦ã¿ãã scala> import scala.sys.process.Process scala> val process = Process("ls").run bin doc lib src ãããªæãã§lsã®çµæãæ¨æºåºåããããexitValueã§çµäºã³ã¼ããåããã scala> process.exitValue Int = 0 å®è¡ããéã¯ãrunã!ã!!ãªã©ã使ãããlsãåºåãããã¡ã¤ã«ã®ä¸è¦§ãåãããå ´åã¯ã!!ã使ãã scala>
ãã°ããLinuxãã¿ãç¶ãã»ã»ã è¿ããã¡ã«æè¿åºãJava8ãã¿ãæ¸ãã¦ã¿ããã¨æãã¾ããããããå°ãLinuxãã¿ã«ãä»ãåããã ããã ååã¯sshdã対象ã«è¦ªããã»ã¹ãkillããå ´åã®åä½ã確èªããã killãããããã»ã¹ã®åããã»ã¹ã¯å¤å ããã»ã¹ã¨ãªããã«ã¼ãã«ã«ãã£ã¦èªåçã«initããã»ã¹ã®åã¨ãã¦æ±ãããäºã説æãããï¼ãã®åä½ãããªãã¢ã¬ã³ãã£ã³ã°ãã¨å¼ã¶ï¼ ä»åã¯ãã®ç¶ãã Linuxã§ä½æ¥ãã¦ãã¦Ctrl+Cãã¦ããã»ã¹ãçµäºããå ´åããã©ã¢ã°ã©ã¦ã³ãã®ããã»ã¹ããã®åããã»ã¹ãä¸ç·ã«çµäºããã ã¨ãããã¨ã¯ãåããã»ã¹ã¯å¤å ã¨ãã¦æ±ãããããªãã¢ã¬ã³ãã£ã³ã°ããã¦ããªããã¨ã«ãªãã ä»åã®è¨äºã§ã¯ãã®æ¯ãèãã®éãï¼ãªãã¢ã¬ã³ãã£ã³ã°ããããå¦ãï¼ã«çç®ããkill -SIGINTã³ãã³ãã¨Ctrl+Cã®éãã«ã¤ãã¦èãã¦ããã ããããkillã³ãã³ããCt
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}