JIRA and Memory Usage

Mohammed Khadir February 16, 2012

Hello,

I have JIRA currently consuming about 700-1gig of memory. JIRA still crashed evey couple of days.

How should I change these so that JIRA will up all the time.

When I change parameters from

JvmMs = 1024

JvmMx=1024

Other combination:

JvmMs = 256

JvmMx=1024

-Dcatalina.base=C:\Program Files (x86)\Atlassian\JIRA

-Dcatalina.home=C:\Program Files (x86)\Atlassian\JIRA

-Djava.endorsed.dirs=C:\Program Files (x86)\Atlassian\JIRA\endorsed

-Dmail.mime.decodeparameters=true

-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true

-Djava.io.tmpdir=C:\Program Files (x86)\Atlassian\JIRA\temp

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

-Djava.util.logging.config.file=C:\Program Files (x86)\Atlassian\JIRA\conf\logging.properties

-XX:MaxPermSize=512m (I have tried changing this too but it doesn't work)

4 answers

1 vote
Radu Dumitriu
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.
February 16, 2012

Seems that your problem is on the JVM native side.

Please check the version of the Java runtime. There are a couple of bugs you might hit on the JVM side. Specifically, please run your JVM with:

-XX:-DoEscapeAnalysis

since starting from version 6.u24 ORCL has done some "improvements"

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7013538

This one has been fixed on u27.

Radu Dumitriu
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.
February 16, 2012

... and please lower your MaxPermSize to 256mb

0 votes
Mohammed Khadir February 16, 2012
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 131080 bytes for Chunk::new
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (allocation.cpp:317), pid=5104, tid=3352
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode windows-x86 )

---------------  T H R E A D  ---------------

0 votes
Mohammed Khadir February 16, 2012

This is from morning time. I have about 8-9 log files that are similar. This is on Win Server 2008 R2.

0 votes
Colin Goudie
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.
February 16, 2012

Can you provide us with a log of the crash so we can determine what the actual cause is? Do you know for sure it's memory related?

In any case, you haven't set the maximum memory to anything more than 1Gig. Try and Mx of 2048 for example

But really, we would rather a little more science, so we need more info to help fully

Suggest an answer

Log in or Sign up to answer