?
Solved

Heapsize for Wowza!

Posted on 2014-02-20
7
Medium Priority
?
1,224 Views
Last Modified: 2014-03-03
Hi All,

I have the Wowza streaming server with spec (using VPS):
- 04 CPUs
- RAM 16GB
- HDD: 500GB, 7.2 rpm
- NIC: 01Gbps
- Internet (NIX): 512Mbps

The only parameter that I configured:
- Heapsize: 5000M

After I checked this server on the system with tools: htop, top, free & others, I got the information:
- CPU: ~5%
- RAM: ~12-13GB used; ~2-3GB free
- Each connection connects to this server, it occupied RAM ~600M
- Connection concurrent users (CU): ~200
(Sometimes, I must clear cahce/ram with "sync; echo 3 > /proc/sys/vm/drop_caches")

So, I have questions for this isuse:
1. How to adjust the Heapsize with 16GBRAM? If I up to 32GBRAM, what's the Heapsize or other parameters?
2. Can I decrease the memory that each connection occupy RAM? (Currently, it occupied ~600M)
3. The system needs:
 - 500 CU at the same time, what about RAM for the streaming server?
 - 1000 CU at the same time, what about RAM for the streaming server?
4. What parameters that I can tune for the streaming server?
5. CPU is OK for this server if the system have more than 1000 CU at the same time?

Please give me your advices about issues above.

Thanks in advances.
0
Comment
Question by:ldvhai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 39880467
Somebody been there done that:
http://www.wowza.com/forums/content.php?46-General-Performance-Tuning
Basically if "vendor recommendations" seem insufficient you get into black art of tuning.
5GB of java heap seems a lot for streaming. I'd start with 1G and rise if catching OOM
0
 
LVL 2

Author Comment

by:ldvhai
ID: 39880473
Thanks for your anwser, I also have read this link before.

LDVHAI.
0
 
LVL 62

Accepted Solution

by:
gheist earned 1500 total points
ID: 39880481
Normally you dont clean the cache on Linux.
Normally you can tune how cache is released using sysctl vm.???? and watching result with slabinfo.

As first tip to stop swapping vm.swappiness=0 vm.vfs_cache_pressure=1000
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 2

Author Comment

by:ldvhai
ID: 39880527
Hi Gheist,

Thanks for your information.

Please give your explain below, if you can.

swapping vm.swappiness=0
vm.vfs_cache_pressure=1000

Many Thanks for your help.

LDVHAI.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 1500 total points
ID: 39880576
Your system has this document too:
https://www.kernel.org/doc/Documentation/sysctl/vm.txt

Based on icecast server ram usage - you need about nothing per connection (like 100KB or so)
0
 
LVL 2

Author Comment

by:ldvhai
ID: 39880621
Thanks so much for your help.
0
 
LVL 2

Author Closing Comment

by:ldvhai
ID: 39900533
Thanks for your anwser.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question