java.lang.OutOfMemoryError

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
bsotet
Posts: 8
Joined: Mon Mar 17, 2014 5:36 am

java.lang.OutOfMemoryError

Post by bsotet »

1. Brekeke Product Name and Version: SIP server 3.3.4.4 Advanced

2. Java version: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)

3. OS type and the version: Centos 6 | kernel 3.10

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
We have 1500+ UA registration. After we started the proxy, we got the following message:
svlistener: send response=500: exception: java.lang.OutOfMemoryError: unable to create new native thread

All the clients want to register together, but with the old (2.8.x) BSS we doesn't have this problem (with same client number).

Our server has 12GB RAM.
bsotet
Posts: 8
Joined: Mon Mar 17, 2014 5:36 am

Post by bsotet »

/etc/security/limits.d/90-nproc.conf
* soft nproc unlimited
* hard nproc unlimited

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 95838
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Are you using 64bit edition of CentOS?
Are you using 64bit edition of Java?

Brekeke SIP Server ver3 supports 64bit environments.
Using it under 32bit environment is not recommended.

Also, did you set any memory parameters at the [Java VM arguments] in the [Configuration]->[System] page?
If so, paste it there.
bsotet
Posts: 8
Joined: Mon Mar 17, 2014 5:36 am

Post by bsotet »

Harold, thank you for the answer!
Both Java and the Centos are 64bit.

Our Java VM arguments:
-Xmx8192m -Xss256k
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Let you remove these java arguments.
They will affect OS's native thread creations.
Post Reply