Solved

Heapsize for Wowza!

Posted on 2014-02-20
7
1,141 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
  • 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 500 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

828 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