Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As written in sip servlet specification, for reasons of performance, it is recommended that applications explicitly invalidate SIP application session and SIP session objects as soon as possible.

TCP and UDP received buffer size

If there is some retransmissions and CPU is not at 100% usage, this could be the sign that buffer size is too small: some packets are destroyed by the OS before its can be handled by JVM.

More details on buffer sizing are available on http://www.29west.com/docs/THPM/udp-buffer-sizing.html

Detection

To detect packets lost due to small received buffer size, use the command:

OS

Command

Linux

netstat -su | grep "packet receive errors"

Solaris

netstat -s | grep udpInOverflows

Windows

Impossible to detect

AIX

netstat -s | grep "fragments dropped"

FreeBSD

netstat -s | grep dropped

Setting buffer size

OS

Command

Linux

sysctl -w net.core.rmem_max=8388608

Solaris

ndd -set /dev/udp udp_max_buf 8388608

FreeBSD, Darwin

sysctl -w kern.ipc.maxsockbuf=8388608

AIX

no -o sb_max=8388608 (note: AIX only permits sizes of 1048576, 4194304 or 8388608)