Solved

Heapsize for Wowza!

Posted on 2014-02-20
7
1,174 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 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.
Suggested Courses

732 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