Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

@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?

@repi 

That's my setenv and startup.sh: 

I start confluence from ./startup.sh

setenv.png.pngstartup.png

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

@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?

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

@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
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

59 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you