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

Reduce LauncherContextListener memory usage ?

MATTHIEU Dec 28, 2016

Hello all,

 

I only have 2Gb RAM available on my server

requierements says :

 Memory 500MB – 1GB of Java heap size is enough for most evaluation purposes.

 

I tried many solution to reduce JIRA memory even if it get slower :

 

export CATALINA_OPTS="-Xms256m -Xmx512m"

JVM_MINIMUM_MEMORY="384m"

JVM_MAXIMUM_MEMORY="512m"

JVM_EXTRA_ARGS="-XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m"

Also desperate I tried :

MaxPermGen where JIRA 7.2.6 is java and this parameter is deprecated. (not working smile)



my ps -ef gives :

atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/home/jira/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms384m -Xmx512m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -Datlassian.plugins.enable.wait=300 -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Xms256m -Xmx512m -Djava.endorsed.dirs=/home/jira/atlassian/jira/endorsed -classpath /home/jira/atlassian/jira/bin/bootstrap.jar:/home/jira/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/home/jira/atlassian/jira -Dcatalina.home=/home/jira/atlassian/jira -Djava.io.tmpdir=/home/jira/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start

 

but the Memory of 1520 is never going down :

 

2016-12-29 02:46:42,627 JIRA-Bootstrap INFO      [c.a.jira.startup.LauncherContextListener] Memory Usage:

    ---------------------------------------------------------------------------------

      Heap memory     :  Used:  342 MiB.  Committed:  495 MiB.  Max:  495 MiB

      Non-heap memory :  Used:  218 MiB.  Committed:  238 MiB.  Max: 1520 MiB

    ---------------------------------------------------------------------------------

      TOTAL           :  Used:  561 MiB.  Committed:  733 MiB.  Max: 2015 MiB

    ---------------------------------------------------------------------------------



Any idea ? What is the 1520MB used for ?


Regards,


2 answers

0 votes
MATTHIEU Dec 28, 2016

seems this could be a good answer ?

https://answers.atlassian.com/questions/10356

 

0 votes
Volodymyr Krupach Dec 28, 2016

Hi MATTHIEU,

1520 MiB is maximum allowed for non-heap memory and used is 218 MiB. As far as I know you can not limit non-heap memory. Citing from stackoverflow:

Non-heap memory is all the memory the JVM allocated for purposes other than the heap. This includes:

  • the call stacks;
  • memory allocated by native code (e.g. for off-heap caching);
  • in HotSpot 8, the Metaspace (replacement for the Permanent Generation);
  • memory used by the JIT compiler (compiled native code).

 

 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

740 views 7 0
Join discussion

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