Out of memmory exception

You are here

Out of memmory exception

6 posts / 0 new
Last post
louis08
louis08's picture
Out of memmory exception

Hi All,

When i run mec as2 on one of my linux box's i get this error.

AgentServer#0 start failed: ERROR
java.lang.Exception: java.lang.OutOfMemoryError: unable to create new native threadEND

it is running Redhat, Kernal version is 2.4.21-52.ELsmp

I am running it with the mec_as2_start.sh script.

Memmory as default
-Xmx192M
-Xms92M

Thanks.

heller
heller's picture

louis08,

please reserve more memory.

Regards
Heller

louis08
louis08's picture

Hi Heller,

I am not sure If I did this right but i changed the -Xmx192M to -Xmx1024M and i am still getting the same error when i start mec, and surely mec can't use this much memory just in idle state.

Regards,
Louis08

crownedgrouse
crownedgrouse's picture

Be careful that your linux account is not limited :
(quotas or limits ).

$> apropos limit

Ask to your BOFH ...

crownedgrouse
crownedgrouse's picture

look in particular to 'max memory size ' entry...

$> ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4091
virtual memory (kbytes, -v) unlimited

crownedgrouse
crownedgrouse's picture