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

seems this could be a good answer ?

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

 

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
Community showcase
Posted Oct 09, 2018 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 ...

375 views 6 0
Join discussion

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