Solved

Heapsize for Wowza!

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Gift cards are not a new concept - it's been around for a very long time.  Undoubtedly, over the past you have received such a card or purchased one for a friend or relative.  Are you aware that you've been feeding the machine?  If not, read on :)
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

728 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