2012-10-01 3 views
0

내 VPS에 새 Red5 서버가 설치되어 있고 CentOS 5.7 X64가 실행 중이며 Webmin이 설치되어 있습니다. 768MB의 RAM과 2 개의 IP 주소가 있습니다.몇 초 동안 사용하지 않으면 Red5가 닫히는 이유는 무엇입니까?

Java 6, 'ant prepare'및 'ant dist'로 컴파일됩니다.

내가 자작 웹 응용 프로그램의 유무에 관계없이 Red5를 실행하면 몇 초 동안 사용하지 않으면 특별한 메시지없이 서버가 닫힙니다. (5 ~ 2 분)

어떻게 Red5 서버를 온라인 상태로 유지할 수 있습니까?

전체 로그보기;

Running on Linux 
Starting Red5 
Red5 root: /usr/local/red5/dist 
Configuation root: /usr/local/red5/dist/conf 
Root: /usr/local/red5/dist 
Deploy type: bootstrap 
Logback selector: org.red5.logging.LoggingContextSelector 

...

Setting default logging context: default 
[INFO] [main] org.red5.server.Launcher - Red5 Server 0.9.1 $Rev: 4059 $ (http://code.google.com/p/red5/) 
Red5 Server 0.9.1 $Rev: 4059 $ (http://code.google.com/p/red5/) 
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.[email protected]7f70888e: startup date [Mon Oct 01 03:16:36 GMT 2012]; root of context hierarchy 
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties] 
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]554d7745: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy 
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.[email protected]4934ce4a: startup date [Mon Oct 01 03:16:37 GMT 2012]; root of context hierarchy 
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties] 
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]54c01e99: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,bandwidthFilter,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy 
[WARN] [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'enableRmiAdapter' being accessed! Ambiguous write methods found next to actually used [public void org.red5.server.jmx.JMXAgent.setEnableRmiAdapter(java.lang.String)]: [public void org.red5.server.jmx.JMXAgent.setEnableRmiAdapter(boolean)] 
[WARN] [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'enableSsl' being accessed! Ambiguous write methods found next to actually used [public void org.red5.server.jmx.JMXAgent.setEnableSsl(java.lang.String)]: [public void org.red5.server.jmx.JMXAgent.setEnableSsl(boolean)] 
[WARN] [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'enableMinaMonitor' being accessed! Ambiguous write methods found next to actually used [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(java.lang.String)]: [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(boolean)] 
[INFO] [main] org.red5.server.service.WarDeployer - War deployer service created 
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.[email protected]7b6ee3ec: startup date [Mon Oct 01 03:16:37 GMT 2012]; parent: ApplicationContext 'red5.common' 
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties] 
[WARN] [main] org.springframework.beans.factory.config.CustomEditorConfigurer - Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [java.net.SocketAddress; offending editor instance: [email protected]7d 
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]77a9f87c: defining beans [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection,rtmpsMinaIoHandler,rtmpsTransport]; parent: org.s[email protected]54c01e99 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:1935 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Connection Threads: 4 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - I/O Threads: 16 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - TCP No Delay: true 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:8443 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Connection Threads: 4 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - I/O Threads: 16 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - TCP No Delay: true 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536 
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360 
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.[email protected]673dd208: startup date [Mon Oct 01 03:16:37 GMT 2012]; parent: ApplicationContext 'red5.common' 
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]32771eb1: defining beans [global.clientRegistry,global.serviceInvoker,global.mappingStrategy,global.context,global.handler,global.scope,red5.scopeResolver]; parent: org.s[email protected]54c01e99 
[INFO] [main] org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0:5080 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat context 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: /usr/local/red5/dist 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: /usr/local/red5/dist/conf 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: /usr/local/red5/dist/webapps 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine 
[INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server 
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0.24 
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-0.0.0.0-5080 
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-0.0.0.0-5080 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT server configuration was not specified 
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPS server configuration was not specified 
Bootstrap complete 
[INFO] [Launcher:/installer] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/vod] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/live] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/chatroulette] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/vod] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]521c5cd7: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]2d9f90e3: defining beans [placeholderConfig,web.context,web.scope]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/installer] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]4453d3cf: defining beans [placeholderConfig,web.context,web.scope,web.handler,installer.service]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/chatroulette] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]495a2dc4: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/live] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]bba92db: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/chat] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties] 
[INFO] [Launcher:/chat] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]677210a5: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.s[email protected]32771eb1 
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created 

답변

0

멈추는 이유는 VPS의 품질이 좋지 않기 때문입니다. 나는 다른 VPS에 모두 같은 것을 다시 설치했고 모두 잘 돌아갔다.

+0

이러한 VPS 제공 업체 중 일부는 "작은 글씨"에 대해 나쁜 점이 있습니다. 조심해야 할 또 다른 사항은 모든 서버 인스턴스간에 "공유 대역폭"입니다. –

0

이 전혀 발생하지 않아야합니다.

red5-highpref.sh를 사용하여 서버를 시작할 수 있습니다. 로그 디렉토리에 jvmstd.out이라는 파일이 생성됩니다.이 파일에는 모든 System.out 호출이 포함되거나 결국 로그에 표시되지 않는 예외가 포함됩니다.

+0

내 VPS가 768MB로 제한되어 있기 때문에 highpref를 사용할 수 없습니다. 실행하면 Red5는 800MB 이상의 메모리를 사용합니다 ... – levelKro

+0

스크립트의 Xms 및 Xmx 값을 더 낮은 값으로 구성하십시오. 그런 다음 그것을 사용할 수 있습니다. –

+0

나는 첫 번째 포스트의 로그와 정확히 같은 로그를 가지고있다. – levelKro

관련 문제