Service is getting stop in linux 32 bit machine

Sreenivasaraju P
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.
November 6, 2011

hi,

we have migrated to JIRA 4.4.1. We are running it on Linux 32 bit machine and the RAM is 4 G.B.

Our memory statistics.

Memory Graph

70 % Free (Total: 1820 MB) (Force garbage collection)

PermGen Memory Graph

65 % Free (Total: 256 MB)

Non-Heap Memory Graph (includes PermGen)

67 % Free (Total: 304 MB)

The problem is the services is getting stop frequently saying the following error.

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (malloc) failed to allocate 726888 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=32153, tid=586152848

#

# JRE version: 6.0_26-b03

# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )

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

Current thread (0x0a13e800): JavaThread C2 CompilerThread0 daemon _thread_in_native, id=32167, stack(0x22e7f000,0x22f00000)

Stack: 0x22e7f000,0x22f00000 , sp=0x22efcdb0, free space=503k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V libjvm.so+0x7248b0

1 answer

0 votes
Sander Brienen [Avisi]
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.
November 6, 2011

Hi,

On a 32-bit system only 3 GB of memory can be allocated of your 4 GB available. This is due to the 32-bit address space.

Your memory stats from Jira show enough free memory. But that is the memory assigned to the JVM. The problem here is that the underlying OS (linux) does not have enough resources available to give to the JVM. Check the actual available memory in Linux with the command "free".

Jira can run on a 32-bit system, but make sure both the Jira installation and the JVM are also 32-bit.

Good luck.

Sreenivasaraju P
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.
November 9, 2011

Thanks for your reply

Please find out put free -m

total used free shared buffers cached

Mem: 4051 3938 113 0 185 953

-/+ buffers/cache: 2798 1252

Swap: 1983 189 1794

On a 32-bit system only 3 GB of memory can be allocated of your 4 GB available. This is due to the 32-bit address space

do you mean the 32 bit machine allows 3 G.B RAM only,even though the RAM is 4 G.B.

Please clarify.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events