Java cpu 300 - 400%

I use Wowza 2.2.4

Core i5

8 GB Ram

CentOS

Wowza is using JAVA CPU 300 - 400%

VHost.xml

8

*

1935

true

16000

16000

false

100

cupertinostreaming,smoothstreaming,sanjosestreaming

com.wowza.wms.http.HTTPCrossdomain

*crossdomain.xml

none

com.wowza.wms.http.HTTPClientAccessPolicy

*clientaccesspolicy.xml

none

com.wowza.wms.http.HTTPServerVersion

*

none

1

*

8086

true

16000

16000

true

100

com.wowza.wms.http.streammanager.HTTPStreamManager

streammanager*

admin-digest

com.wowza.wms.http.HTTPServerInfoXML

serverinfo*

admin-digest

com.wowza.wms.http.HTTPConnectionInfo

connectioninfo*

admin-digest

com.wowza.wms.http.HTTPConnectionCountsXML

connectioncounts*

admin-digest

com.wowza.wms.http.HTTPServerVersion

*

none

smoothstreaming

smoothstreaming

cupertinostreaming

cupertinostreaming

sanjosestreaming

sanjosestreaming

240

160

8

100

5

8

250

true

65000

24000

true

100

2000

90000

500

75

true

256000

65000

50

4096

true

65000

65000

50

4096

4

8

4

4

60000

12000

20000

0

60000

true

setenv.sh

#!/bin/sh

_EXECJAVA=java

JAVA_OPTS=“-Xmx5000M”

Uncomment to run server environment (faster), Note: will only work if server VM install, comes with JDL

JAVA_OPTS=“$JAVA_OPTS -server”

Can be a better GC setting to avoid long pauses

#JAVA_OPTS=“$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC”

JAVA_OPTS=“$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=512m”

Uncomment to fix multicast crosstalk problem when streams share multicast port

JAVA_OPTS=“$JAVA_OPTS -Djava.net.preferIPv4Stack=true”

WMSAPP_HOME=/usr/local/WowzaMediaServer

WMSCONFIG_HOME=/usr/local/WowzaMediaServer

WMSCONFIG_URL=

export WMSAPP_HOME WMSCONFIG_HOME JAVA_OPTS _EXECJAVA

Hi,

It is impossible from the information provide to determine why the CPU usage is high, ie. the server could just be busy.

I would double check your configuration, so tuning, based on information found here

https://www.wowza.com/docs/how-to-do-performance-tuning#tune_xml

Quickly looking over the VHost you have posted the pool sizes are not correct for 8 cores.

Andrew.

[total-core-count] = 1 (processor) x 4 (cores) = 4

HandlerThreadPool/PoolSize: (60x[total-core-count]) = 60x4 =240

TransportThreadPool/PoolSize: (40x[total-core-count]) = 40x4 =160

Why pool sizes are not correct?