« Return to Thread: Red5 on multicore os

Re: Red5 on multicore os

by Walter Tak :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
When I execute ps -eLf I see a lot of threads. Since I run multiple Red5 servers (listening on different IPs) my count is 631 threads (using the command ps -eLf | grep java | grep -v "grep" | wc )
 
I never really looked after it since most are idle so I should tune it down a bit but 631 looks fine to be distributed over my 4 cores.
 
Do you use the MultiThreadedApplicationAdapter in your application ?
 
 
 
----- Original Message -----
From: nabble_alex@...
To: red5@...
Sent: Wednesday, 08 July 2009 23:34
Subject: Re: [Red5] Red5 on multicore os

Now I can provide actual top data as well to make it more clear. Below is the top output.
I would not expect the java process at 71 percent while the overall cpu utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the remaining 3 cores remain unused.
 
top - 23:25:46 up 1 day,  2:23,  1 user,  load average: 0.41, 0.53, 0.45
Tasks:  76 total,   1 running,  75 sleeping,   0 stopped,   0 zombie
Cpu(s):  9.1%us,  2.5%sy,  0.0%ni, 86.3%id,  0.2%wa,  0.7%hi,  1.3%si,  0.0%st
Mem:   4050392k total,  3899516k used,   150876k free,    17932k buffers
Swap:  3903752k total,       64k used,  3903688k free,  2672916k cached
 
  PID   USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  3886   root        20   0   1181m 1.0g  8536 S    71        26.8 736:01.41 java

Can anybody confirm my assumption? And how can I get the java process to utilize all 4 cpu cores? Or is there another way to check how many cores are in use?

Von: Alex Weiher <nabble_alex@...>
An: Red5@...
Gesendet: Mittwoch, den 8. Juli 2009, 11:56:49 Uhr
Betreff: [Red5] Red5 on multicore os

 
My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.
Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and utilizing each core?
 
I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: Red5 on multicore os