Hi all,

I have a very interesting problem. I am trying to start red5 at my
customer`s server, but start-uping time is about 390 seconds. It`s too
much, because on my home computer the same action takes about 10
seconds. Most of the time is spent by initialization of JMX. Does
anybody have the similiar problem? 

 

Server configuration:

IBM xSeries 335, Xeon 2GHz

1gb ram

U320 SCSI 36GB disk

 

Ubuntu feisty

2.6.20-16-server #2 SMP Thu Jun 7 20:26:23 UTC 2007 i686 GNU/Linux

 

java version "1.6.0_01"

Java(TM) SE Runtime Environment (build 1.6.0_01-b06)

Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

 

Log:

 

[EMAIL PROTECTED]:~/tv$ ./red5.sh

./red5.sh: line 18: /bin/rmiregistry: No such file or directory

[INFO] 0 main:( org.red5.server.Standalone.main ) RED5 Server
(http://www.osflash.org/red5)

[INFO] 5 main:( org.red5.server.Standalone.main ) Loading red5 global
context from: red5.xml

[INFO] 8 main:( org.red5.server.Standalone.main ) Setting configuation
root to /home/Administrator/tv/conf

[INFO] 11 main:( org.red5.server.Standalone.main ) Setting Red5 root to
//home/Administrator/tv

[INFO] 12 main:( org.red5.server.Standalone.main ) Setting webapp root
to //home/Administrator/tv

[INFO] 109 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.prepa
reRefresh ) Refreshing
[EMAIL PROTECTED]
5: display name
[EMAIL PROTECTED]
55]; startup date [Mon Jun 11 16:51:47 CEST 2007]; root of context
hierarchy

[INFO] 1427 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.obtai
nFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
55]:
[EMAIL PROTECTED]
2fb

[INFO] 1464 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
2fb: defining beans
[red5.common,red5.core,context.loader,jetty6.server]; root of factory
hierarchy

[INFO] 1557 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.prep
areRefresh ) Refreshing
[EMAIL PROTECTED]
78: display name
[EMAIL PROTECTED]
b78]; startup date [Mon Jun 11 16:51:48 CEST 2007]; root of context
hierarchy

[INFO] 1674 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.obta
inFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
b78]:
[EMAIL PROTECTED]
25c4

[INFO] 1791 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
25c4: defining beans
[placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializ
er,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCodecF
actory,streamableFileFactory,sharedObjectService,streamService,providerS
ervice,consumerService,BWControlService,schedulingService,threadFactory,
remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,flvread
er.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodIn
vokingFactoryBean,org.springframework.beans.factory.config.MethodInvokin
gFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastSt
ream]; root of factory hierarchy

[INFO] 1931 main:( org.red5.server.jmx.JMXAgent.init ) JMX HTML adapter
was not enabled

[INFO] 190976 main:( org.red5.server.jmx.JMXAgent.init ) RMI Registry
server was not found on port 9999

[INFO] 190977 main:( org.red5.server.jmx.JMXAgent.init ) Starting an
internal RMI registry

[ERROR] 380155 main:( org.red5.server.jmx.JMXAgent.init )
java.io.IOException: Cannot bind to URL [rmi://:9999/red5]:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: 194.213.201.83;
nested exception is:

        java.net.ConnectException: Connection timed out]

[INFO] 380798 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.prep
areRefresh ) Refreshing
[EMAIL PROTECTED]
1c3: display name
[EMAIL PROTECTED]
91c3]; startup date [Mon Jun 11 16:58:08 CEST 2007]; parent:
[EMAIL PROTECTED]
78

[INFO] 380876 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.obta
inFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
91c3]:
[EMAIL PROTECTED]
29d

[INFO] 380922 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from class path resource
[red5.properties]

[INFO] 380927 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
29d: defining beans
[customEditorConfigurer,placeholderConfig,rtmpHandler,rtmpMinaIoHandler,
rtmpTransport,rtmpMinaConnection,rtmptHandler,rtmptConnection,rtmpt.serv
er]; parent:
[EMAIL PROTECTED]
25c4

[INFO] 380971 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
RTMP Mina Transport Settings

[INFO] 380976 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
IO Threads: 2+1

[INFO] 380977 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
Event Threads: core: 16+1 max: 32+1 queue: -1 keepalive: 60

[INFO] 381049 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
TCP No Delay: false

[INFO] 381054 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
Receive Buffer Size: 65536

[INFO] 381055 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
Send Buffer Size: 271360

[INFO] 381078 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start )
RTMP Mina Transport bound to /81.0.212.131:1935

[INFO] 381104 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.prepa
reRefresh ) Refreshing
[EMAIL PROTECTED]
dd: display name
[EMAIL PROTECTED]
8dd]; startup date [Mon Jun 11 16:58:08 CEST 2007]; root of context
hierarchy

[INFO] 381208 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.obtai
nFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
8dd]:
[EMAIL PROTECTED]
6d4

[INFO] 381228 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
6d4: defining beans
[placeholderConfig,sysProps,webappRoot,rtmptHost,rtmptPort,Server]; root
of factory hierarchy

[INFO] 381476 main:( org.mortbay.log.invoke0 ) Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog

[INFO] 381537 main:( org.mortbay.log.invoke0 ) jetty-6.1.0

[INFO] 381631 main:( org.mortbay.log.invoke0 ) Started
SelectChannelConnector @ 81.0.212.131:8088

[INFO] 381643 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.prep
areRefresh ) Refreshing
[EMAIL PROTECTED]
87: display name
[EMAIL PROTECTED]
787]; startup date [Mon Jun 11 16:58:08 CEST 2007]; parent:
[EMAIL PROTECTED]
78

[INFO] 381682 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.obta
inFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
787]:
[EMAIL PROTECTED]
6c7

[INFO] 381704 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
6c7: defining beans
[global.clientRegistry,global.serviceInvoker,global.mappingStrategy,glob
al.context,global.handler,global.scope,red5.scopeResolver]; parent:
[EMAIL PROTECTED]
25c4

[INFO] 381804 main:( org.red5.server.JettyLoader.init ) Loading jetty6
context from: classpath:/jetty.xml

[INFO] 381805 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.prepa
reRefresh ) Refreshing
[EMAIL PROTECTED]
e8: display name
[EMAIL PROTECTED]
5e8]; startup date [Mon Jun 11 16:58:09 CEST 2007]; root of context
hierarchy

[INFO] 381843 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.obtai
nFreshBeanFactory ) Bean factory for application context
[EMAIL PROTECTED]
5e8]:
[EMAIL PROTECTED]
e91

[INFO] 381848 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
e91: defining beans
[placeholderConfig,sysProps,webappRoot,httpHost,httpPort,Server]; root
of factory hierarchy

[INFO] 381896 main:( org.red5.server.JettyLoader.init ) Starting jetty
servlet engine

[INFO] 381961 main:( org.mortbay.log.invoke0 ) jetty-6.1.0

[INFO] 382155 main:( /test.invoke0 ) Set web app root system property:
'/test' = [/home/Administrator/tv/webapps/test/]

[INFO] 382156 main:( /test.invoke0 ) Initializing Log4J from
[/home/Administrator/tv/webapps/test/WEB-INF/log4j.properties]

[INFO] 382173 main:( /test.invoke0 ) Initializing Spring root
WebApplicationContext

[INFO] 382174 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 382238 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 382247 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
8785: defining beans
[placeholderConfig,web.context,web.scope,web.handler,test.service,echo.s
ervice]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 382316 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 141 ms

[INFO] 382769 main:( /SOSample.invoke0 ) Set web app root system
property: '/SOSample' = [/home/Administrator/tv/webapps/SOSample/]

[INFO] 382770 main:( /SOSample.invoke0 ) Initializing Log4J from
[/home/Administrator/tv/webapps/SOSample/WEB-INF/log4j.properties]

[INFO] 382775 main:( /SOSample.invoke0 ) Initializing Spring root
WebApplicationContext

[INFO] 382776 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 382808 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 382813 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
e04: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 382842 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 65 ms

[INFO] 383502 main:( /tutorial.invoke0 ) Set web app root system
property: '/tutorial' = [/home/Administrator/tv/webapps/tutorial/]

[INFO] 383504 main:( /tutorial.invoke0 ) Initializing Log4J from
[/home/Administrator/tv/webapps/tutorial/WEB-INF/log4j.properties]

[INFO] 383509 main:( /tutorial.invoke0 ) Initializing Spring root
WebApplicationContext

[INFO] 383510 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 383543 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 383546 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
763: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 383574 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 64 ms

[INFO] 384214 main:( /oflaDemo.invoke0 ) Set web app root system
property: '/oflaDemo' = [/home/Administrator/tv/webapps/oflaDemo/]

[INFO] 384215 main:( /oflaDemo.invoke0 ) Initializing Log4J from
[/home/Administrator/tv/webapps/oflaDemo/WEB-INF/log4j.properties]

[INFO] 384221 main:( /oflaDemo.invoke0 ) Initializing Spring root
WebApplicationContext

[INFO] 384222 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 384312 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 384336 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
8cf: defining beans
[placeholderConfig,web.context,web.scope,web.handler,demoService.service
,org.springframework.scripting.support.ScriptFactoryPostProcessor];
parent:
[EMAIL PROTECTED]
6c7

[INFO] 384378 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 155 ms

[INFO] 384704 main:( /midiDemo.invoke ) Set web app root system
property: '/midiDemo' = [/home/Administrator/tv/webapps/midiDemo/]

[INFO] 384705 main:( /midiDemo.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/midiDemo/WEB-INF/log4j.properties]

[INFO] 384710 main:( /midiDemo.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 384711 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 384741 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 384744 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
472: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 384771 main:( org.red5.demos.midi.Application.appStart ) Midi
demo app started

[INFO] 384772 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 61 ms

[INFO] 385087 main:( /admin.invoke ) Set web app root system property:
'/admin' = [/home/Administrator/tv/webapps/admin/]

[INFO] 385089 main:( /admin.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/admin/WEB-INF/log4j.properties]

[INFO] 385094 main:( /admin.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 385094 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 385127 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 385129 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
402: defining beans
[placeholderConfig,web.context,web.scope,web.handler,scopes.service];
parent:
[EMAIL PROTECTED]
6c7

[INFO] 385143 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 48 ms

[INFO] 385486 main:( /fitcDemo.invoke ) Set web app root system
property: '/fitcDemo' = [/home/Administrator/tv/webapps/fitcDemo/]

[INFO] 385487 main:( /fitcDemo.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/fitcDemo/WEB-INF/log4j.properties]

[INFO] 385492 main:( /fitcDemo.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 385493 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 385530 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 385532 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
28d: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 385556 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 62 ms

[INFO] 385889 main:( /messageRecorder.invoke ) Set web app root system
property: '/messageRecorder' =
[/home/Administrator/tv/webapps/messageRecorder/]

[INFO] 385890 main:( /messageRecorder.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/messageRecorder/WEB-INF/log4j.properties
]

[INFO] 385898 main:( /messageRecorder.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 385899 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 385947 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 385951 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
0e0a: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 385975 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 75 ms

[INFO] 386334 main:( /echo.invoke ) Set web app root system property:
'/echo' = [/home/Administrator/tv/webapps/echo/]

[INFO] 386335 main:( /echo.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/echo/WEB-INF/log4j.properties]

[INFO] 386350 main:( /echo.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 386354 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 386432 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 386440 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
611: defining beans
[placeholderConfig,web.context,web.scope,web.handler]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 386464 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 110 ms

[INFO] 386799 main:( /tv.invoke ) Set web app root system property:
'/tv' = [/home/Administrator/tv/webapps/tv/]

[INFO] 386800 main:( /tv.invoke ) Initializing Log4J from
[/home/Administrator/tv/webapps/tv/WEB-INF/log4j.properties]

[INFO] 386805 main:( /tv.invoke ) Initializing Spring root
WebApplicationContext

[INFO] 386805 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization started

[INFO] 386898 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from ServletContext resource
[/WEB-INF/red5-web.properties]

[INFO] 386904 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons ) Pre-instantiating singletons in
[EMAIL PROTECTED]
7023: defining beans
[placeholderConfig,web.context,web.scope,web.handler,org.springframework
.scripting.support.ScriptFactoryPostProcessor]; parent:
[EMAIL PROTECTED]
6c7

[INFO] 387539 main:(
org.springframework.web.context.ContextLoader.initWebApplicationContext
) Root WebApplicationContext: initialization completed in 731 ms

[INFO] 387865 main:( org.mortbay.log.invoke ) Started
SelectChannelConnector @ 0.0.0.0:5080

[INFO] 387867 main:( org.red5.server.Standalone.main ) Startup done in:
387868 ms

[WARN] 392490 btpool0-0:( org.red5.server.net.rtmp.RTMPHandler.onPing )
Unhandled ping: Ping: 3, 0, 5000, -1

00 03 00 00 00 00 00 00 13 88

 

 

 

Thank you very much

Jan Muller

 

 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to