ヒト・オト・カタチ

思ったこと、やったことを書き連ねてく場所

AWS micro instance に JIRAをのせてみた

きっかけ

  • JIRAが好き
  • JIRAをプライベートのタスク管理でもつかいたい
    • 依存関係とか管理できて樂
  • スマホアプリもあるので、実用性ありそう
  • 契約中の、さくらインターネットスタンダードは、Java使えない

結論

  • 実用に耐えない
$ free
             total       used       free     shared    buffers     cached
Mem:       1020140     955752      64388          0       1796      13000
-/+ buffers/cache:     940956      79184
Swap:            0          0          0
top - 09:41:36 up  2:52,  4 users,  load average: 0.01, 0.02, 0.05
Tasks:  75 total,   1 running,  74 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1020140k total,   948276k used,    71864k free,      552k buffers
Swap:        0k total,        0k used,        0k free,     9764k cached
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2214 jira1     20   0 3097m 854m    0 S  0.3 85.8   4:48.10 java
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 512m

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/jira
Using CATALINA_HOME:   /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME:        /opt/atlassian/jira/jre/
Using CLASSPATH:       /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/jira/work/catalina.pid
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d0000000, 134217728, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 134217728 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid3313.log
The stop command failed. Attempt

示唆

ぶつかったこと

  • ダウンロードしたjiraのbinが展開できず
    • さくらスタンダードにjavaがないー!
    • aws
  • ポート指定でアクセスするも、jiraのトップページ出ず。
    • そういえばポートあけてない!
    • iptablesじゃなくて、awsのセキュリティグループが役割を代替
  • jiraの初期セットアップ、こける
  • 続きやろうとするにも、jira locked
  • 遅い・・・タスクのページ開くのに、30sかかる・・・