Author |
Message |
bsotet Brekeke Junior Member
Joined: 17 Mar 2014 Posts: 8
|
Posted: Thu Jun 26, 2014 4:19 pm Post subject: java.lang.OutOfMemoryError |
|
|
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. |
|
Back to top |
|
bsotet Brekeke Junior Member
Joined: 17 Mar 2014 Posts: 8
|
Posted: Thu Jun 26, 2014 4:30 pm Post subject: |
|
|
/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 |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Fri Jun 27, 2014 9:34 am Post subject: |
|
|
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. |
|
Back to top |
|
bsotet Brekeke Junior Member
Joined: 17 Mar 2014 Posts: 8
|
Posted: Fri Jun 27, 2014 9:49 am Post subject: |
|
|
Harold, thank you for the answer!
Both Java and the Centos are 64bit.
Our Java VM arguments:
-Xmx8192m -Xss256k |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Fri Jun 27, 2014 12:19 pm Post subject: |
|
|
Let you remove these java arguments.
They will affect OS's native thread creations. |
|
Back to top |
|
|