Solved

Heapsize for Wowza!

Posted on 2014-02-20
7
1,012 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 61

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 61

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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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 61

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now