Thanks,
Sean
package alien8;
import org.red5.server.adapter.ApplicationAdapter ;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.stream.IPlayItem;
import org.red5.server.api.stream.IServerStream;
import org.red5.server.api.stream.IStreamCapableConnection ;
import org.red5.server.api.stream.support.SimpleBandwidthConfigure;
import org.red5.server.api.stream.support.SimplePlayItem;
import org.red5.server.api.stream.support.StreamUtils;
public class Application extends ApplicationAdapter {
private IScope appScope;
private IServerStream serverStream;
@Override
public boolean appStart(IScope app) {
appScope = app;
return true;
}
@Override
public boolean appConnect(IConnection conn, Object[] params) {
// Trigger calling of "onBWDone", required for some FLV players
measureBandwidth(conn);
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure();
sbc.setMaxBurst(200*1024*1024);
sbc.setBurst(100*1024*1024);
sbc.setOverallBandwidth(200*1024*1024);
streamConn.setBandwidthConfigure (sbc);
}
return super.appConnect(conn, params);
}
@Override
public void appDisconnect(IConnection conn) {
if (appScope == conn.getScope () && serverStream != null) {
serverStream.close();
}
super.appDisconnect(conn);
}
}
The first link is an article from 2004 for jdk1.4 and tomcat 5.0; Red5 requires jdk1.5 and comes with tomcat 5.5.20 (latest stable). I have not see this 100% during any of my work with the server on two different PC's and an Apple. If this is an issue with Red5 then I would assume its in the MP3 handling code or your own application.
PaulOn 10/23/06, Harris, Mike < [EMAIL PROTECTED]> wrote:Isn't this a problem with Tomcat?
This Message (including attachments) is intended only for the identified Recipient(s) and may contain information that is confidential or subject to copyright, trade secret or other restrictions. It may also include attorney client, attorney work product, or other privileged communications. The information and opinions presented in this Message do not necessarily represent those of the Jones Companies. If you are not the intended Recipient, you are hereby notified that any use, copying or distribution of this Message (including attachments) is unauthorized and prohibited. If you have received this Message in error, please notify the Sender ([EMAIL PROTECTED]) immediately by replying to and then completely deleting the Message (including all attachments) from your computer. Additionally, the integrity and security of this Message and its attachments cannot be assured on the Internet; Recipients assume all risk of loss by accepting this message, including from their failure to use effective anti-virus software.-----Original Message-----
sorry Sean, I haven't seen this happen with the Red5/Java.exe.
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of John Grden
Sent: Sunday, October 22, 2006 9:25 PM
To: [email protected]
Subject: Re: [Red5] red5 uses 100% cpu
However, based on you description, Chris Allen might have had a similar experience with the wedding Kiosk application
Chris, is this what was happening to you?
On 10/22/06, Sean O'Hara <[EMAIL PROTECTED]> wrote:Does anyone have any ideas on what could cause red5 to spike to 100%
cpu usage? Has anyone else encountered this problem?
On 10/21/06, Sean O'Hara <[EMAIL PROTECTED] > wrote:
> Hi All,
>
> Has anyone experienced this problem? I've been using red5 for about 2
> months now for simple mp3 streaming and I have to restart it about
> once a day because it always ends up using all availbale cycles. It
> starts off just fine, using anywhere from 0% to around 5% but then it
> always spikes and stays there. Any ideas what coudl cause this or if
> there is any way to correct it?
>
> Thanks,
> Sean
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
[ JPG ]
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
The early bird may get the worm, but the second mouse gets the cheese.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
