Server 5.2.16 shut down unexpected (out of memory)

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Server 5.2.16 shut down unexpected (out of memory)

Postby tgs » Fri Nov 22, 2013 12:21 pm

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

Code: Select all
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:

Code: Select all
# 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:

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


The Debian Server memory output is:

Code: Select all
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
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Server 5.2.16 shut down unexpected (out of memory)

Postby deezzub » Fri Nov 22, 2013 12:39 pm

tgs wrote:
Code: Select all
# 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:

Code: Select all
SwapTotal:             0 kB
SwapFree:              0 kB

Swap:            0          0          0


Does anybody have an idea?


Maybe you need a swap partition.
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Server 5.2.16 shut down unexpected (out of memory)

Postby Harjo » Fri Nov 22, 2013 6:05 pm

You are hitting the 32bit memory limit of the OS
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Server 5.2.16 shut down unexpected (out of memory)

Postby tgs » Mon Nov 25, 2013 9:34 am

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
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 8 guests