• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • Performance and Tuning /
avatar image
Question by Ferdinand Hernandez · Sep 05, 2013 at 10:29 AM · performance and tuning

Performance Tuning Maximum Number Of Threads

Hi Guys,

My server has 4 CPU with 8 Cores (16 threads each core) each (Intel(R) Xeon(R) CPU E5-2470 0 @ 2.30GHz). In the performance tuning article it states that the formula for calculating the number of threads in VHost.xm is

2 (processor) x 4 (cores) x 2 (threads per core) = 16

But it also states in the example the maximum value of 24.

http://www.wowza.com/forums/content.php?46

HostPort/ProcessorCount: 2x[total-core-count] (maximum of 24) Note: The HostPort/ProcessorCount field in the Admin HostPort (/Port "8086") should not be modified.
IdleWorkers/WorkerCount: 2x[total-core-count] (maximum of 24)
NetConnections/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/UnicastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/UnicastOutgoing/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/MulticastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/MulticastOutgoing/ProcessorCount: [total-core-count]  (maximum of 12)
HandlerThreadPool/PoolSize: (60x[total-core-count]) (maximum of 480)
TransportThreadPool/PoolSize: (40x[total-core-count]) (maximum of 320)


Is this some sort of a CAP in the settings, meaning I should NOT set them beyond the maximum? If I will disregards the maximum settings then my optimal should be

HostPort/ProcessorCount: 1024
IdleWorkers/WorkerCount: 1024
NetConnections/ProcessorCount: 1024
RTP/UnicastIncoming/ProcessorCount: 512
RTP/UnicastOutgoing/ProcessorCount: 1024
RTP/MulticastIncoming/ProcessorCount: 512
RTP/MulticastOutgoing/ProcessorCount: 512
HandlerThreadPool/PoolSize: 30720
TransportThreadPool/PoolSize: 20480


What will happen if I set them to this values, will I be able to transcode more streams or more profile per streams?

Regards
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Richard Lanham · Sep 05, 2013 at 09:43 AM

Yes, that's right. Don't exceed the maximum.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ferdinand Hernandez · Sep 05, 2013 at 10:47 AM 0
Share
ok thanks, rrlanham

Then i guess this server is overkill for Wowza since It's not being used to it's full potential?
avatar image

Answer by Jason Hilton · Sep 16, 2013 at 11:05 AM

Hi Guys,

My server has 4 CPU with 8 Cores (16 threads each core) each (Intel(R) Xeon(R) CPU E5-2470 0 @ 2.30GHz). In the performance tuning article it states that the formula for calculating the number of threads in VHost.xm is

2 (processor) x 4 (cores) x 2 (threads per core) = 16

But it also states in the example the maximum value of 24.

http://www.wowza.com/forums/content.php?46

HostPort/ProcessorCount: 2x[total-core-count] (maximum of 24) Note: The HostPort/ProcessorCount field in the Admin HostPort (/Port "8086") should not be modified.
IdleWorkers/WorkerCount: 2x[total-core-count] (maximum of 24)
NetConnections/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/UnicastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/UnicastOutgoing/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/MulticastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/MulticastOutgoing/ProcessorCount: [total-core-count]  (maximum of 12)
HandlerThreadPool/PoolSize: (60x[total-core-count]) (maximum of 480)
TransportThreadPool/PoolSize: (40x[total-core-count]) (maximum of 320)


Is this some sort of a CAP in the settings, meaning I should NOT set them beyond the maximum? If I will disregards the maximum settings then my optimal should be

HostPort/ProcessorCount: 1024
IdleWorkers/WorkerCount: 1024
NetConnections/ProcessorCount: 1024
RTP/UnicastIncoming/ProcessorCount: 512
RTP/UnicastOutgoing/ProcessorCount: 1024
RTP/MulticastIncoming/ProcessorCount: 512
RTP/MulticastOutgoing/ProcessorCount: 512
HandlerThreadPool/PoolSize: 30720
TransportThreadPool/PoolSize: 20480


What will happen if I set them to this values, will I be able to transcode more streams or more profile per streams?

Regards


Hi,

Just to be clear, the calculation you have above is incorrect.

You have:

4 (processor) x 8 (cores) x 2 (threads per core) = 64

The maximum as stated is still relevant and if you have not exceeded these numbers then the server will be tuned correctly but for others following this thread I've added the correct calculation to avoid confusion.

Wowza also prints the processor count in the log file when Wowza starts which can be used to calculate the [total-core-count].

For example

Hardware Available Processors: 8

Regards,

Jason
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Workaround for closing Flash NetConnection in IE popups 2 Answers

Streaming video from DVcam 0 Answers

Live streaming over UDP 4 Answers

RTMP server not found, no video streaming 1 Answer

Wowza Java Process eating up whole server memory 1 Answer

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges