[root@jira_confluence ~]# cd /opt/atlassian/jira/bin/
[root@jira_confluence bin]# cp setenv.sh setenv.sh.bak
[root@jira_confluence bin]# vim setenv.sh
.......
JVM_MINIMUM_MEMORY="4096m" #默认是384m
JVM_MAXIMUM_MEMORY="8192m" #默认是768m
重启jira服务
[root@jira_confluence bin]# /etc/init.d/jira stop
[root@jira_confluence bin]# /etc/init.d/jira start
[root@jira_confluence bin]# lsof -i:8080 #确认8080端口起来。重启服务后,过一会儿端口才会起来
,
[root@jira_confluence ~]# cd /opt/atlassian/confluence/bin/
[root@jira_confluence bin]# cp setenv.sh setenv.sh.bak20180803
[root@jira_confluence bin]# vim setenv.sh
......
CATALINA_OPTS="-Xms4096m -Xmx8192m -XX:+UseG1GC ${CATALINA_OPTS}"
重启confluence服务
[root@jira_confluence bin]# /etc/init.d/confluence restart
[root@jira_confluence bin]# lsof -i:8090 #确认8090端口起来
----------------------------------------------------------------------------
还可以修改文件/var/atlassian/application-data/confluence/confluence.cfg.xml文件中的数值,如下:
[root@file-server ~]# cat /var/atlassian/application-data/confluence/confluence.cfg.xml
.......
<property name="hibernate.c3p0.acquire_increment">10</property> #默认为1
<property name="hibernate.c3p0.idle_test_period">100</property>
<property name="hibernate.c3p0.max_size">60</property>
<property name="hibernate.c3p0.max_statements">60</property> #默认为0
<property name="hibernate.c3p0.min_size">20</property>
<property name="hibernate.c3p0.timeout">120</property> #默认为30
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.