Hey everyone!
Why Confluence ignores startup parameters in setenv.sh and startup.sh
setenv.sh:
CATALINA_OPTS="-Xms=2048m -Xmx4096m -XX:MaxPermSize=256m -XX:+UseG1GC ${CATALINA_OPTS}"
startup.sh:
CATALINA_OPTS="-Xms=2048m -Xmx4096m -XX:MaxPermSize=256m -XX:+UseG1GC ${CATALINA_OPTS}"
But myorg.confluence.com/systeminfo.action tells me that the maximum heap space is 1291mb.
Am I missing something?
In the startup.sh this entry does not only belong in the setenv.sh!
How do you start your confluence. With systemctl as a service or manually via start-confluence.sh
Is the entry $ {CATALINA_OPTS} set at the end of each line in every line of setenv.sh when defining the catalina opts?
It looks to me like someone has destroyed your startup.sh script by copying parts or all of setenv.sh into it.
There should be no Catalina_opts in the startup.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know who could have done it XD
do you know to restore startup.sh to default?
and what is the difference between start confluence with systemctl as a service and ./start-confluence.sh?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The start file for confluence is start-confluence.sh. this also reads in setenv.sh.
https://confluence.atlassian.com/doc/start-and-stop-confluence-838416264.html
As a service, confluence is started by the system when the system is started and stopped properly when it is shut down
[Unit]
Description=Atlassian Confluence mit Postgresql (Wiki)
After=syslog.target network.target
[Service]
Type=forking
User=confluence
#Environment="JAVA_HOME=/usr/lib/jvm/jdk1.8.0_191"
#Environment="JRE=/usr/lib/jvm/jdk1.8.0_191/jre"
ExecStart=/data/atlassian_ps/confluence/bin/start-confluence.sh
ExecStop=/data/atlassian_ps/confluence/bin/stop-confluence.sh
[Install]
WantedBy=multi-user.target
The environment options are commented out. For possible use of an additional Java engine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.