Reduce LauncherContextListener memory usage ?

MATTHIEU December 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
Volodymyr Krupach
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.
December 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).

 

 

0 votes
MATTHIEU December 28, 2016

seems this could be a good answer ?

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

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events