Reduce LauncherContextListener memory usage ?

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 vote
Volodymyr Krupach Community Champion 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 Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,138 views 6 19
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot