Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence ignores startup parameters in setenv.sh and startup.sh

Nikita October 24, 2020

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?

1 answer

1 accepted

0 votes
Answer accepted
repi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2020

@Nikita 

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?

Nikita October 25, 2020

@repi 

That's my setenv and startup.sh: 

I start confluence from ./startup.sh

setenv.png.pngstartup.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2020

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

Like Nikita likes this
Nikita October 25, 2020

@Nic Brough -Adaptavist- 

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?

repi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2020

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

Nikita October 25, 2020

@repi  so if i shutdown confluence correctly and start it as a as a service confluence will begin to see the memory?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events