{"id":1864,"date":"2017-11-06T11:00:17","date_gmt":"2017-11-06T02:00:17","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=1864"},"modified":"2017-11-06T01:40:37","modified_gmt":"2017-11-05T16:40:37","slug":"raspberry-pi-rundeck-jvm-performance","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2017\/11\/raspberry-pi-rundeck-jvm-performance\/","title":{"rendered":"Raspberry Pi \u3068 Rundeck \u3068 JVM \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9"},"content":{"rendered":"
\u30b8\u30e7\u30d6\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306e Rundeck \u3092 Raspberry Pi \u3067\u52d5\u304b\u305b\u308b\u304b\u3069\u3046\u304b\u3092\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u307e\u305f\uff0cOpenJDK \u3068 Oracle \u306e Java SE \u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u9855\u8457\u306a\u9055\u3044\u304c\u898b\u3089\u308c\u305f\u306e\u3067\uff0c\u7c21\u5358\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u8a55\u4fa1\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n
<\/p>\n
\u4eca\u56de\u306e\u691c\u8a3c\u306b\u4f7f\u7528\u3057\u305f\u74b0\u5883\u3092\u7c21\u5358\u306b\u307e\u3068\u3081\u307e\u3059\uff0e<\/p>\n
Rundeck \u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u5229\u7528\u3059\u308b JVM \u306e\u8a2d\u5b9a\u306f \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\uff0cRaspberry Pi 3 \u306f\u30e1\u30e2\u30ea\u304c1GB\u3057\u304b\u642d\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067 OpenJDK \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f:<\/p>\n \u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059:<\/p>\n Oracle \u306e Java SE \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f:<\/p>\n \u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059:<\/p>\n OpenJDK \u3068 Java SE \u306f\u3000 OpenJDK \u3068 Java SE \u3067\u3069\u308c\u304f\u3089\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u9055\u3044\u304c\u3042\u308b\u306e\u304b\u3092\u7c21\u5358\u306b\u6e2c\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n Rundeck \u306e\u8d77\u52d5\u306b\u306f\u305d\u308c\u306a\u308a\u306e\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\uff0c\u8d77\u52d5\u6642\u9593\u3092\u6e2c\u5b9a\u3057\u307e\u3057\u305f\uff0e\u3053\u3053\u3067\u306e\u8d77\u52d5\u6642\u9593\u3068\u306f\uff0c Rundeck \u306e\u8d77\u52d5\u304c\u5b8c\u4e86\u3057\u305f\u5f8c\uff0c\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u969b\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u3092\u6e2c\u5b9a\u3057\u307e\u3057\u305f\uff0e\u3053\u3053\u3067\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u3068\u306f\u00a0 Raspberry Pi \u306b\u304a\u3044\u3066\u306f OpenJDK \u3092\u5229\u7528\u3059\u308b\u3088\u308a\uff0cOracle \u306e Java SE \u3092\u5229\u7528\u3059\u308b\u65b9\u304c\u5927\u5e45\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u826f\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\uff0eARM \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067 Oracle \u306e\u5b9f\u88c5\u306f OpenJDK \u306b\u6bd4\u3079\u3066\u304b\u306a\u308a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u826f\u3044\u3088\u3046\u3067\u3059\uff0e(\u53c2\u8003: Oracle Java on Raspberry Pi<\/a>\u30fbComparing JVMs on ARM\/Linux<\/a>) x86\u7cfb\u3067\u306f\u3053\u308c\u307b\u3069\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5dee\u304c\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u304c (\u672a\u691c\u8a3c) \u3053\u308c\u306f Oracle \u304c ARM \u5411\u3051\u306e\u6700\u9069\u5316\u3092\u9811\u5f35\u3063\u3066\u3044\u308b\u306e\u304b\uff0cOpenJDK \u304c ARM \u306b\u95a2\u5fc3\u304c\u306a\u3044\u306e\u304b\u3069\u3061\u3089\u306a\u306e\u3067\u3057\u3087\u3046\u304b…? \u3068\u306b\u304b\u304f\uff0cRaspberry Pi \u3067\u306f Oracle \u304c\u5acc\u3044\u3068\u304b\u30e9\u30a4\u30bb\u30f3\u30b9\u7684\u306a\u90e8\u5206\u304c\u6c17\u306b\u306a\u3089\u306a\u3044\u9650\u308a\uff0cOracle \u306e Java SE \u3092\u4f7f\u3046\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\uff0e<\/p>\n Raspberry Pi \u3067 Rundeck \u3092\u4f7f\u3048\u308b\u304b\u3068\u3044\u3046\u304b\u3068\u3044\u3046\u70b9\u306b\u3064\u3044\u3066\u306f\uff0cJava SE \u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u3055\u305b\u308c\u3070\uff0c\u591a\u5c11\u306e\u3082\u305f\u3064\u304d\u306f\u611f\u3058\u308b\u3082\u306e\u306e\u5229\u7528\u3067\u304d\u305d\u3046\u3067\u3057\u305f\uff0e\u3069\u308c\u304f\u3089\u3044\u306e\u6570\u306e\u30b8\u30e7\u30d6\u3092\u8ffd\u52a0\u3067\u304d\u308b\u304b\u306f\uff0c\u5b9f\u969b\u306b\u3082\u3046\u5c11\u3057\u904b\u7528\u3057\u3066\u307f\u306a\u3044\u3068\u5206\u304b\u308a\u307e\u305b\u3093.<\/p>\n","protected":false},"excerpt":{"rendered":" \u30b8\u30e7\u30d6\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306e Rundeck \u3092 Raspberry Pi \u3067\u52d5\u304b\u305b\u308b\u304b\u3069\u3046\u304b\u3092\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u307e\u305f\uff0cOpenJDK \u3068 Oracle \u306e Java SE \u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u9855\u8457\u306a\u9055\u3044\u304c\u898b\u3089 […]<\/p>\n","protected":false},"author":2,"featured_media":1881,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[112,114,113,35,115],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1864"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=1864"}],"version-history":[{"count":10,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1864\/revisions"}],"predecessor-version":[{"id":1880,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1864\/revisions\/1880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media\/1881"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=1864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=1864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\/etc\/rundeck\/profile<\/code> \u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u306f<\/p>\n
-Xmx1024m -Xms256m -XX:MaxMetaspaceSize=256m -server<\/code><\/pre>\n
Xmx<\/code> \u3092 512MB \u306b\u6e1b\u3089\u3057\u307e\u3057\u305f\uff0e<\/p>\n
-Xmx512m -Xms256m -XX:MaxMetaspaceSize=256m -server<\/code><\/pre>\n
OpenJDK<\/h2>\n
$ sudo apt install openjdk-8-jre-headless<\/code><\/pre>\n
$ \/usr\/lib\/jvm\/java-8-openjdk-armhf\/jre\/bin\/java -version\r\nopenjdk version \"1.8.0_141\"\r\nOpenJDK Runtime Environment (build 1.8.0_141-8u141-b15-1~deb9u1-b15)\r\nOpenJDK Zero VM (build 25.141-b15, interpreted mode)<\/code><\/pre>\n
Java SE<\/h2>\n
$ sudo apt install oracle-java8-jdk<\/code><\/pre>\n
$ \/usr\/lib\/jvm\/jdk-8-oracle-arm32-vfp-hflt\/jre\/bin\/java -version\r\njava version \"1.8.0_65\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_65-b17)\r\nJava HotSpot(TM) Client VM (build 25.65-b01, mixed mode)<\/code><\/pre>\n
sudo update-alternatives --config java<\/code> \u3092\u5b9f\u884c\u3057\u3066\u5207\u308a\u66ff\u3048\u3089\u308c\u307e\u3059\uff0e<\/p>\n
\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a<\/h2>\n
\u8d77\u52d5\u6642\u9593<\/h3>\n
sudo systemctl start rundeckd.service<\/code> \u3067 Rundeck \u306e\u8d77\u52d5\u3092\u958b\u59cb\u3057\u3066\u304b\u3089\uff0cRundeck \u304c\u30dd\u30fc\u30c8 4440 \u3067 listen \u3059\u308b\u307e\u3067\u306e\u6642\u9593\u3068\u3057\u307e\u3059\uff0e\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059:<\/p>\n
\n
\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593<\/h3>\n
time curl -s -o \/dev\/null -L http:\/\/localhost:4440<\/code> \u3092\u5b9f\u884c\u3057\u3066\u5f97\u3089\u308c\u308b real \u306e\u6642\u9593\u3068\u3057\u307e\u3059\uff0e2\u56de\u76ee\u4ee5\u964d\u306e\u30a2\u30af\u30bb\u30b9\u3067\u306f\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u65e9\u304f\u306a\u308b\u50be\u5411\u304c\u3042\u308b\u305f\u3081\uff0c\u9023\u7d9a\u3057\u30663\u56de\u6e2c\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\uff0e\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059:<\/p>\n
\n
\n
\n
\u6ce8\u610f<\/h3>\n
\n
\u307e\u3068\u3081<\/h2>\n