Server 5.2.16 shut down unexpected (out of memory)

Hi,
I have running a Servoy 5.2.16 Application Server on a Debian Virtual Server.

Operating System Information
os.name=Linux
os.version=2.6.32-042stab078.27
os.arch=i386
java.version=1.6.0_26

From time to time (two, three times a month) the Servoy App Server shut down unexpected.
This is what I get in the error log file:

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate
# 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:211), pid=662, tid=581401456
#
# 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 (0x09311c00):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=670, stack(0x229f8000,0x22a78000)]

Stack: [0x229f8000,0x22a78000],  sp=0x22a75050,  free space=500k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

The Servoy Server settings are:

java -Djava.awt.headless=true -Xmx1024m -Xms96m -XX:MaxPermSize=1280m -classpath .:lib/ohj-je

The Debian Server memory output is:

MemTotal:        6291456 kB
MemFree:         5429256 kB
Cached:            63188 kB
Active:           671828 kB
Inactive:         183920 kB
Active(anon):     630860 kB
Inactive(anon):   161700 kB
Active(file):      40968 kB
Inactive(file):    22220 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                16 kB
Writeback:             0 kB
AnonPages:        792560 kB
Shmem:              2560 kB
Slab:               6408 kB
SReclaimable:       1872 kB
SUnreclaim:         4536 kB

total       used       free     shared    buffers     cached
Mem:       6291456     862752    5428704          0          0      63268
-/+ buffers/cache:     799484    5491972
Swap:            0          0          0

For me the Debian Server has enough RAM and free memory, or?
Does anybody have an idea?

Regards
Thomas

tgs:

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

Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate

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




The Debian Server memory output is:



SwapTotal: 0 kB
SwapFree: 0 kB

Swap: 0 0 0




Does anybody have an idea?

Maybe you need a swap partition.

You are hitting the 32bit memory limit of the OS

Thank you for the reply!

@deezzub
The Hosting company don’t offers Swap partitions for Virtual Server.

@Harjo
You’re right!

I change now to a Dedicated Root Server with a 64 bit OS (Debian) and Swap partition.

Regards
Thomas