tohokuaikiのチラシの裏

技術的ネタとか。

Confluenceのメモリ割り当て量を増やす

http://confluence.atlassian.com/display/DOC/Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory

ここから

To increase heap or perm gen space memory in Linux installations,

From /bin (Stand-alone) or /bin (EAR-WAR installation), open setenv.sh (you can create this file in the EAR/WAR version).
Find the section JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m ...
See Diagnosis above and enter the appropriate values. Xmx is maximum, Xms is minimum, and MaxPermSize is PermGen.

ということで、startup.shとかのあるbinディレクトリのsetenv.shをいじる。
最初の1行が

JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m $JAVA_OPTS -Djava.awt.headless=true "

となっているので、-Xmxが最大メモリ、-Xmsが最小メモリということ。


開発環境なら
atlas-run - Atlassian Developersによると、起動時に

atlas-run --jvmargs '-Xmx512m -XX:MaxPermSize=256m'

とかする。

あるいはpom.xml

    <build>
        <plugins>
            <plugin>
                <configuration>
                    <jvmArgs>-Xms512m -Xmx1g -XX:MaxPermSize=512m</jvmArgs>

Ref: Solved: How do you increase Java memory with the Atlassian...