# High java load average

**URL:** https://community.wowza.com/t/high-java-load-average/33998
**Category:** Wowza Streaming Engine
**Created:** [November 16, 2009, 9:37am UTC](https://community.wowza.com/t/high-java-load-average/33998 "2009-11-16T09:37:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Hero\_guo](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@Hero\_guo](https://community.wowza.com/u/Hero_guo)
#### Post date: [November 16, 2009, 9:37am UTC](https://community.wowza.com/t/high-java-load-average/33998/1 "2009-11-16T09:37:25Z")

</div>

My java load is over 400!

I setup according to this

[https://www.wowza.com/forums/showthread.php?t=179](https://www.wowza.com/forums/showthread.php?t=179) 1. Editing [install-dir]/conf/VHost.xml and change ThreadPool/PoolSize to 100.

1. Edit [install-dir]/bin/wms.sh and add the line ulimit -n 20000 just above the line that starts with $\_EXECJAVA.

2. Edit [install-dir]/bin/startup.sh and add the line ulimit -n 20000 just above the line that starts with $\_EXECJAVA.

3. Reboot and restart the Wowza Pro server.

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [November 16, 2009, 9:54am UTC](https://community.wowza.com/t/high-java-load-average/33998/2 "2009-11-16T09:54:32Z")

</div>

You need to be sure to do the other suggestions as well. Be sure you are using the -server flag and the correct garbage collection parameters. Also, the thread pool tuning doesn’t sound right. What are the specs of your machine (number of cores, memory, 32-bit or 64-bit, …).

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [November 16, 2009, 11:13am UTC](https://community.wowza.com/t/high-java-load-average/33998/3 "2009-11-16T11:13:19Z")

</div>

Wowza is just going to use a lot more CPU then lighttpd. We are not going to be able to push nearly that amount of traffic with that much CPU. There is a lot more work that needs to be done to deliver the video using RTMP.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [November 16, 2009, 11:01am UTC](https://community.wowza.com/t/high-java-load-average/33998/4 "2009-11-16T11:01:06Z")

</div>

That is not a lot of CPU. How many concurrent connects are you trying to handle with this server? What is the outgoing total bitrate?

Charlie

---

<div class="post-metadata">

### Author: ![Hero\_guo](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@Hero\_guo](https://community.wowza.com/u/Hero_guo)
#### Post date: [November 16, 2009, 10:42am UTC](https://community.wowza.com/t/high-java-load-average/33998/5 "2009-11-16T10:42:10Z")

</div>

Well, the server is cheap though, but It works well with lighttpd

AMD SEMPRON

2GB RAM

> [root@new ~]# cat /proc/cpuinfo
> 
> processor : 0
> 
> vendor\_id : AuthenticAMD
> 
> cpu family : 15
> 
> model : 44
> 
> model name : AMD Sempron™ Processor 3100+
> 
> stepping : 2
> 
> cpu MHz : 1804.151
> 
> cache size : 256 KB
> 
> fdiv\_bug : no
> 
> hlt\_bug : no
> 
> f00f\_bug : no
> 
> coma\_bug : no
> 
> fpu : yes
> 
> fpu\_exception : yes
> 
> cpuid level : 1
> 
> wp : yes
> 
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr\_opt lm 3dnowext 3dnow up pni lahf\_lm ts fid vid ttp tm stc
> 
> bogomips : 3610.97
> 
> btw, what is
> 
> > -server flag and the correct garbage collection parameters

---

<div class="post-metadata">

### Author: ![Hero\_guo](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@Hero\_guo](https://community.wowza.com/u/Hero_guo)
#### Post date: [November 16, 2009, 11:06am UTC](https://community.wowza.com/t/high-java-load-average/33998/6 "2009-11-16T11:06:54Z")

</div>

If I use lighttpd, I can push 300M/s of traffic.

concurrent connects, I guess it’s over 1500
