Error loading a class

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just noticed that red5 is having problems loading one of my classes:

[INFO] [Launcher:/installer_OLD] org.red5.server.service.Installer -
Installer service created
[ERROR] [NioProcessor-1] org.red5.io.amf.Input - Error loading class:
org.red5.webapps.visioconference.VisioConference

Any idea why such a runtime error?

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

Re: Error loading a class

by Lara Giovannozzi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi i'm not an expert of java but i put my class under the myapp pakage...
for you
pakage visioconference
class visioconference.VisioConference
because i think java can't find your class under the red5 package.......
try in this way...
Hi
--
Lara

2009/10/19 Thomas <iamkenzo@...>
I just noticed that red5 is having problems loading one of my classes:

[INFO] [Launcher:/installer_OLD] org.red5.server.service.Installer -
Installer service created
[ERROR] [NioProcessor-1] org.red5.io.amf.Input - Error loading class:
org.red5.webapps.visioconference.VisioConference

Any idea why such a runtime error?

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


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

Re: Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 4:20 PM, Lara Giovannozzi
<lara.giovannozzi@...> wrote:
> Hi i'm not an expert of java but i put my class under the myapp pakage...
> for you
> pakage visioconference
> class visioconference.VisioConference
> because i think java can't find your class under the red5 package.......
> try in this way...
The strange thing is that the application "seems" to work "perfectly"
even with this error message, or should I say "I don't see any problem
beside this error message", but I'd like to see it go away.

If I write: class visioconference.VisioConference {...} it won't
compile. I don't think it's the problem, because I've never seen such
class declaration.

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

Re: Error loading a class

by Lara Giovannozzi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
like i said i'm not a java expert.....
in eclipse i create a package with the name of my application and inside the class that i use......
i hope someone more expert help you..
bye
--
Lara

2009/10/19 Thomas <iamkenzo@...>
On Mon, Oct 19, 2009 at 4:20 PM, Lara Giovannozzi
<lara.giovannozzi@...> wrote:
> Hi i'm not an expert of java but i put my class under the myapp pakage...
> for you
> pakage visioconference
> class visioconference.VisioConference
> because i think java can't find your class under the red5 package.......
> try in this way...
The strange thing is that the application "seems" to work "perfectly"
even with this error message, or should I say "I don't see any problem
beside this error message", but I'd like to see it go away.

If I write: class visioconference.VisioConference {...} it won't
compile. I don't think it's the problem, because I've never seen such
class declaration.

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


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

Re: Error loading a class

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Probably something to do with your confusion over class packages.

If you look into the java language package conventions, you can avoid such
problems.

The red5 project space contains to classes named 'Bootstrap'. One is the
red5 boostrap, the other is Catalina.

Some body could loose their mind trying to start red5 in eclipse without
knowing the difference.

----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Monday, October 19, 2009 7:07 AM
Subject: [Red5] Error loading a class


>I just noticed that red5 is having problems loading one of my classes:
>
> [INFO] [Launcher:/installer_OLD] org.red5.server.service.Installer -
> Installer service created
> [ERROR] [NioProcessor-1] org.red5.io.amf.Input - Error loading class:
> org.red5.webapps.visioconference.VisioConference
>
> Any idea why such a runtime error?
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


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

Re: Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmm I'm nailing it down:

My application is called visioconference, and it sits in
red5/webapps/visioconference/

I renamed my bothering class to VideoConference in order to avoid any
possible confusion. All my classes are defined as part of package:
org.red5.webapps.visioconference

Now look at what I've got in my log when a connection is made the
first time to the app:

[ERROR] [NioProcessor-1] org.red5.io.amf.Input - Error loading class:
org.red5.webapps.visioconference.VisioConference

That's impossible, this class doesn't exist anymore. I grepped my
whole application folder! It's gone, vanished, disappeared. I even
removed all my previously generated class files and recompiled them.
How can Red5 know about VisioConference!?

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

Re: Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok so by removing the folders in work/ red5 finally understood that I
had renamed VisioConference to VideoConference, but the problem is
still here.

So this is what happens:

Client connects to my app, so the roomStart method is triggered.
Inside roomStart, there is a call to VideoConference that fetches some
info from the DB about the current VideoConference.

If no videoconference exist, then reject client, if not, let the room
get created and move on.

Now if I remove the call to VideoConference, the error goes away (I
must delete the folders in work/ though).

When I have the error, only the first call to my app is bugged and
rejects the client, subsequent calls will work as expected.

Could there be a problem with red5 and/or java initialy loading the
database or some stuff like that?

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

Re: Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tomcat was driving me nuts because of this work/ folder. It seems it's
used for some caching mechanism?

Is there a way to disable that?

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

Re: Error loading a class

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The VideoConference class load problem only happens in roomStart. Once
the room is started, if other people enter the room, roomStart is
obviously not called, and the error does not show up.

Now room1 is created and the error message was displayed the very
first time access was made to the application.

Keeping room1 with people in it, room2 gets opened: sometimes the same
error message shows up, sometimes not. But if a room is started, when
other people come in, the error won't show up again, until a new room
gets created.

Is there a problem accessing database from within roomStart? I use
postgresql. Would it be a thread problem?

Is that a real problem? Because my app behaves 99.9% the way I expect
it: only the absolute first connection to a freshly started red5
server requires a second connection.

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

2,000 connections

by Rafael Franco Carvalho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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

Re: 2,000 connections

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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

RES: 2,000 connections

by Rafael Franco Carvalho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake
2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny
Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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

Re: RES: 2,000 connections

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How do you test the 2000 connections, from the server itself to itself ,
from multiple clients in a LAN to a single server or from multiple remote
clients (like xDSL/cable) to a production server in a remote datacentre ?

Do keep in mind if you test on a local server that depending on the OS you
might run out of available tcp/ip sockets.

For example Windows OS has a security policy for the maximum concurrent
connections allowed from a single IP. To prevent flooding etc.

The ultimate stress test is with two servers , one 'client' , one target,
both wired together over 1 Gbit. That way the network and tcp/ip stack can't
be a bottleneck when testing the max of servers like Red5.

W.

----- Original Message -----
From: "Rafael Franco Carvalho" <rafael.carvalho@...>
To: <red5@...>
Sent: Tuesday, 20 October 2009 13:52
Subject: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake
2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny
Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

Re: RES: 2,000 connections

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe

-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections

Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

Re: RES: 2,000 connections

by Dan Daemon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try to optimize your Application.java file.

I have 3 clusters with 5 edges in each + 1 master.
And I can connect up to 1650 concurrent connection per one cluster
after I did some optimizations in my Application.java class.

Anyway, if you wish to transfer live streams I'm not sure that
red5 can handle more.

At least we still did not get any results like guys told that
5 edges + 1 origin can handle 20000 concurrent connections.

Seems it's possible only for FLV streaming but not for live
streams.

I need help too, but still did not get any solution...

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:
I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe

-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections

Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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


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

Re: RES: 2,000 connections

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Doing my test I saw that when the pending messages number grows up, the ram usage grows up till the max so the server slows down

 

Could be that, cause I make 150 connection from the same lan (with limited bandwith), the server can’t send all the messages to all the connections and cause growing up of connections and more ram usage?

 

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dan Daemon
Inviato: martedì 20 ottobre 2009 18.20
A: red5@...
Oggetto: Re: [Red5] RES: 2,000 connections

 

Try to optimize your Application.java file.

 

I have 3 clusters with 5 edges in each + 1 master.

And I can connect up to 1650 concurrent connection per one cluster

after I did some optimizations in my Application.java class.

 

Anyway, if you wish to transfer live streams I'm not sure that

red5 can handle more.

 

At least we still did not get any results like guys told that

5 edges + 1 origin can handle 20000 concurrent connections.

 

Seems it's possible only for FLV streaming but not for live

streams.

 

I need help too, but still did not get any solution...

 

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho

Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

 


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

Re: RES: 2,000 connections

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's great that everyone wants to get some attention here.  Can someone spearhead this issue by documenting up on trac?  There currently isn't that much up on trac for performance:

http://trac.red5.org/search?q=performance

On Tue, Oct 20, 2009 at 12:51 PM, Giusanny <giusanny@...> wrote:

Doing my test I saw that when the pending messages number grows up, the ram usage grows up till the max so the server slows down

 

Could be that, cause I make 150 connection from the same lan (with limited bandwith), the server can’t send all the messages to all the connections and cause growing up of connections and more ram usage?

 

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dan Daemon
Inviato: martedì 20 ottobre 2009 18.20
A: red5@...
Oggetto: Re: [Red5] RES: 2,000 connections

 

Try to optimize your Application.java file.

 

I have 3 clusters with 5 edges in each + 1 master.

And I can connect up to 1650 concurrent connection per one cluster

after I did some optimizations in my Application.java class.

 

Anyway, if you wish to transfer live streams I'm not sure that

red5 can handle more.

 

At least we still did not get any results like guys told that

5 edges + 1 origin can handle 20000 concurrent connections.

 

Seems it's possible only for FLV streaming but not for live

streams.

 

I need help too, but still did not get any solution...

 

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho

Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

 


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



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

Re: RES: 2,000 connections

by Dan Daemon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, same here. It can.
By this reason I optimized the Application.java file.

Also, try to do not use that your server sends something, Red5 does not like it.
Use Shared Object instead it. At least for me... Shared Objects looks like works
much faster than any "invoke" methods... And uses less memory... IMHO

On Tue, Oct 20, 2009 at 7:51 PM, Giusanny <giusanny@...> wrote:

Doing my test I saw that when the pending messages number grows up, the ram usage grows up till the max so the server slows down

 

Could be that, cause I make 150 connection from the same lan (with limited bandwith), the server can’t send all the messages to all the connections and cause growing up of connections and more ram usage?

 

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dan Daemon
Inviato: martedì 20 ottobre 2009 18.20
A: red5@...
Oggetto: Re: [Red5] RES: 2,000 connections

 

Try to optimize your Application.java file.

 

I have 3 clusters with 5 edges in each + 1 master.

And I can connect up to 1650 concurrent connection per one cluster

after I did some optimizations in my Application.java class.

 

Anyway, if you wish to transfer live streams I'm not sure that

red5 can handle more.

 

At least we still did not get any results like guys told that

5 edges + 1 origin can handle 20000 concurrent connections.

 

Seems it's possible only for FLV streaming but not for live

streams.

 

I need help too, but still did not get any solution...

 

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho

Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

 


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



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

RES: RES: 2,000 connections

by Rafael Franco Carvalho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello guys,
 
Thank you for responses.
 
How can I optmize my Application.java? What I have to modify?
I'm using Red5Phone, trying to improve its performance.
 
Thanks,
Rafael Franco.


De: red5-bounces@... [mailto:red5-bounces@...] Em nome de Dan Daemon
Enviada em: terça-feira, 20 de outubro de 2009 16:06
Para: red5@...
Assunto: Re: [Red5] RES: 2,000 connections

Yes, same here. It can.
By this reason I optimized the Application.java file.

Also, try to do not use that your server sends something, Red5 does not like it.
Use Shared Object instead it. At least for me... Shared Objects looks like works
much faster than any "invoke" methods... And uses less memory... IMHO

On Tue, Oct 20, 2009 at 7:51 PM, Giusanny <giusanny@...> wrote:

Doing my test I saw that when the pending messages number grows up, the ram usage grows up till the max so the server slows down

 

Could be that, cause I make 150 connection from the same lan (with limited bandwith), the server can’t send all the messages to all the connections and cause growing up of connections and more ram usage?

 

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dan Daemon
Inviato: martedì 20 ottobre 2009 18.20
A: red5@...
Oggetto: Re: [Red5] RES: 2,000 connections

 

Try to optimize your Application.java file.

 

I have 3 clusters with 5 edges in each + 1 master.

And I can connect up to 1650 concurrent connection per one cluster

after I did some optimizations in my Application.java class.

 

Anyway, if you wish to transfer live streams I'm not sure that

red5 can handle more.

 

At least we still did not get any results like guys told that

5 edges + 1 origin can handle 20000 concurrent connections.

 

Seems it's possible only for FLV streaming but not for live

streams.

 

I need help too, but still did not get any solution...

 

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho

Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

 


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



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

Re: RES: 2,000 connections

by David Hogan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you've run out of bandwidth, then latency will increase and you'll start to see long handshake disconnections on new connections at the very least (I think the default handshake timeout is 5 seconds). If you're using red5 on a server that you can install an snmp daemon on (linux, for example), or even better use a switch with snmp support, then you could use something like cacti to graph your throughput over time. Cacti is a bit painful to learn, though.

2009/10/21 Giusanny <giusanny@...>

Doing my test I saw that when the pending messages number grows up, the ram usage grows up till the max so the server slows down

 

Could be that, cause I make 150 connection from the same lan (with limited bandwith), the server can’t send all the messages to all the connections and cause growing up of connections and more ram usage?

 

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dan Daemon
Inviato: martedì 20 ottobre 2009 18.20
A: red5@...
Oggetto: Re: [Red5] RES: 2,000 connections

 

Try to optimize your Application.java file.

 

I have 3 clusters with 5 edges in each + 1 master.

And I can connect up to 1650 concurrent connection per one cluster

after I did some optimizations in my Application.java class.

 

Anyway, if you wish to transfer live streams I'm not sure that

red5 can handle more.

 

At least we still did not get any results like guys told that

5 edges + 1 origin can handle 20000 concurrent connections.

 

Seems it's possible only for FLV streaming but not for live

streams.

 

I need help too, but still did not get any solution...

 

On Tue, Oct 20, 2009 at 4:23 PM, Giusanny <giusanny@...> wrote:

I have the same problem testing it with about 170 true connections at
256kbps.

After these connection the server starts to disconnect all old and new
connections writing in the log the same thing you have posted in your mail.

I have a 2GM Ram Server so I use

export JAVA_OPTS="-Xrs -Xms768M -Xmx1536M -Xss256K -XX:NewSize=512m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"

then I run "re5.sh" so almost 80% of RAM (1536MB) is used with 170
connections, means that the JVM use all the RAM that I set in the parameter
-Xmx1536M

My Idea? We need more RAM or we need to set some parameters somewhere!
Please help us :D

Giuseppe


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho

Inviato: martedì 20 ottobre 2009 13.52
A: red5@...
Oggetto: [Red5] RES: 2,000 connections


Hello,

Thank you for your attention.

After 500 connections Red5 show these lines:
2009-10-20 08:54:51,838 [Red5_Scheduler_Worker-5] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49787 to null (in: 0 out 0 ), with id 782357 due to long
handshake 2009-10-20 08:55:37,483 [Red5_Scheduler_Worker-11] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
200.221.10.69 : 49709 to 200.221.10.69:443 (in: 3709 out 3393 ), with id
2377175, due to too much inactivity (60002ms), last ping sent 10001ms ago

Do you have any idea?

Thanks,

Rafael Franco

-----Mensagem original-----
De: red5-bounces@... [mailto:red5-bounces@...] Em nome de
Giusanny Enviada em: terça-feira, 20 de outubro de 2009 06:28
Para: red5@...
Assunto: Re: [Red5] 2,000 connections

Hi,
after 500 connections what appends?


-----Messaggio originale-----
Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di
Rafael Franco Carvalho
Inviato: lunedì 19 ottobre 2009 22.31
A: red5@...
Oggetto: [Red5] 2,000 connections

Hello,

I'm trying to connect plus 2,000 users to Red5 using BenchmarkProfiler, but
I couldn't reach this number of connections. The maximum clients that I have
connected were 500. I'm using standard Red5 configurations.

There is a special configuration for this? Where can find information about
red.properties configurations? Increasing rtmp.event_threads_core and
rtmp.event_threads_max should help?


Please help me.
Thanks in advance.

Rafael Franco



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


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



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


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

 


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



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
< Prev | 1 - 2 | Next >