Results 1 to 4 of 4

Thread: Load balancer issue

  1. #1
    Join Date
    Dec 2013
    Posts
    3

    Default Load balancer issue

    Hi there,

    I am having troubles with the load balancer plugin I made sure I reconfigured the plugin several times following the readme guide, also whenever I go to IPaddress:1935/loadbalancer?serverInfoXML on the browser it only shows the wowza version and generates error on the server's SSH I googled a little bit round that error and all the replies on the forums on here were something to do with step 5 which I double checked several times too with no luck still here are the errors copied from SSH:

    INFO server comment - Wowza Media Server is started!
    WARN server comment - HTTPLoadBalancerRedirector.constructor: LoadBalancerListen
    er not found.
    ERROR server comment - HTTPRequestAdapter.service: java.lang.NullPointerExceptio
    n
    java.lang.NullPointerException
    at com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector.getRedir
    ector(Unknown Source)
    at com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector.onHTTPRe
    quest(Unknown Source)
    at com.wowza.wms.http.HTTPRequestAdapter.service(HTTPRequestAdapter.java
    :33)
    at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:641)
    at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:375)
    at com.wowza.wms.server.ServerHandler.messageReceived(ServerHandler.java
    :487)
    at com.wowza.wms.server.ServerHandlerThreaded.messageReceived(ServerHand
    lerThreaded.java:78)
    at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceive
    d(AbstractIoFilterChain.java:181)
    at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageR
    eceived(AbstractIoFilterChain.java:511)
    at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Abstr
    actIoFilterChain.java:42)
    at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:786)
    at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flus
    h(SimpleProtocolDecoderOutput.java:60)
    at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
    ocolCodecFilter.java:177)
    at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageR
    eceived(AbstractIoFilterChain.java:511)
    at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Abstr
    actIoFilterChain.java:42)
    at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:786)
    at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorF
    ilter.java:247)
    at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.
    run(ExecutorFilter.java:323)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    WARN server comment - HTTPLoadBalancerRedirector.constructor: LoadBalancerListen
    er not found.
    ERROR server comment - HTTPRequestAdapter.service: java.lang.NullPointerExceptio
    n
    java.lang.NullPointerException
    at com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector.getRedir
    ector(Unknown Source)
    at com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector.onHTTPRe
    quest(Unknown Source)
    at com.wowza.wms.http.HTTPRequestAdapter.service(HTTPRequestAdapter.java
    :33)
    at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:641)
    at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:375)
    at com.wowza.wms.server.ServerHandler.messageReceived(ServerHandler.java
    :487)
    at com.wowza.wms.server.ServerHandlerThreaded.messageReceived(ServerHand
    lerThreaded.java:78)
    at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceive
    d(AbstractIoFilterChain.java:181)
    at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageR
    eceived(AbstractIoFilterChain.java:511)
    at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Abstr
    actIoFilterChain.java:42)
    at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:786)
    at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flus
    h(SimpleProtocolDecoderOutput.java:60)
    at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
    ocolCodecFilter.java:177)
    at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageR
    eceived(AbstractIoFilterChain.java:511)
    at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Abstr
    actIoFilterChain.java:42)
    at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:786)
    at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorF
    ilter.java:247)
    at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.
    run(ExecutorFilter.java:323)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    I appreciate your help

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    Can you provider your VHost.xml so we can review the configuration for the serverInfoXML? Did you add the .jar file to your [install-dir]/lib folder?

  3. #3
    Join Date
    Dec 2013
    Posts
    3

    Default

    Quote Originally Posted by matt_y View Post
    Can you provider your VHost.xml so we can review the configuration for the serverInfoXML? Did you add the .jar file to your [install-dir]/lib folder?
    Thank you very much for your quick response here's my VHost.xml and yes I have added the .jar file to the "[install-dir]/lib"

    <Root>
    <VHost>
    <HostPortList>
    <HostPort>
    <ProcessorCount>4</ProcessorCount>
    <IpAddress>*</IpAddress>
    <!-- Separate multiple ports with commas -->
    <!-- 80: HTTP, RTMPT -->
    <!-- 554: RTSP -->
    <Port>1935</Port>
    <HTTPIdent2Response></HTTPIdent2Response>
    <SocketConfiguration>
    <ReuseAddress>true</ReuseAddress>
    <!-- suggested settings for video on demand applications -->
    <ReceiveBufferSize>65000</ReceiveBufferSize>
    <ReadBufferSize>65000</ReadBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <!-- suggest settings for low latency chat and video recording applications
    <ReceiveBufferSize>32000</ReceiveBufferSize>
    <ReadBufferSize>32000</ReadBufferSize>
    <SendBufferSize>32000</SendBufferSize>
    -->
    <KeepAlive>true</KeepAlive>
    <!-- <TrafficClass>0</TrafficClass> -->
    <!-- <OobInline>false</OobInline> -->
    <!-- <SoLingerTime>-1</SoLingerTime> -->
    <!-- <TcpNoDelay>false</TcpNoDelay> -->
    <AcceptorBackLog>100</AcceptorBackLog>
    </SocketConfiguration>
    <HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegda shstreaming</HTTPStreamerAdapterIDs>
    <HTTPProviders>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    <RequestFilters>*crossdomain.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    <RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.plugin.loadbalancer.HTTPLoadBalancerRedirector</BaseClass>
    <RequestFilters>*loadbalancer</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    <Properties>
    <Property>
    <Name>enableServerInfoXML</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    </Properties>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    <RequestFilters>*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    </HTTPProviders>
    </HostPort>

    <!-- 443 with SSL -->
    <!--
    <HostPort>
    <ProcessorCount>4</ProcessorCount>
    <IpAddress>*</IpAddress>
    <Port>443</Port>
    <HTTPIdent2Response></HTTPIdent2Response>
    <SSLConfig>
    <KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.jks</KeyStorePath>
    <KeyStorePassword>[password]</KeyStorePassword>
    <KeyStoreType>JKS</KeyStoreType>
    <SSLProtocol>TLS</SSLProtocol>
    <Algorithm>SunX509</Algorithm>
    <CipherSuites></CipherSuites>
    <Protocols></Protocols>
    </SSLConfig>
    <SocketConfiguration>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>65000</ReceiveBufferSize>
    <ReadBufferSize>65000</ReadBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <KeepAlive>true</KeepAlive>
    <AcceptorBackLog>100</AcceptorBackLog>
    </SocketConfiguration>
    <HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegda shstreaming</HTTPStreamerAdapterIDs>
    <HTTPProviders>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    <RequestFilters>*crossdomain.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    <RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    <RequestFilters>*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    </HTTPProviders>
    </HostPort>
    -->

    <!-- Admin HostPort -->
    <HostPort>
    <ProcessorCount>1</ProcessorCount>
    <IpAddress>*</IpAddress>
    <Port>8086</Port>
    <HTTPIdent2Response></HTTPIdent2Response>
    <SocketConfiguration>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>16000</ReceiveBufferSize>
    <ReadBufferSize>16000</ReadBufferSize>
    <SendBufferSize>16000</SendBufferSize>
    <KeepAlive>true</KeepAlive>
    <AcceptorBackLog>100</AcceptorBackLog>
    </SocketConfiguration>
    <HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
    <HTTPProviders>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.streammanager.HTTPStreamManager</BaseClass>
    <RequestFilters>streammanager*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
    <RequestFilters>serverinfo*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
    <RequestFilters>connectioninfo*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
    <RequestFilters>connectioncounts*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail</BaseClass>
    <RequestFilters>transcoderthumbnail*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    <RequestFilters>medialist*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.livestreamrecord.http.HTTPLiveStreamRecord</BaseClass>
    <RequestFilters>livestreamrecord*</RequestFilters>
    <AuthenticationMethod>admin-digest</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    <RequestFilters>*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    </HTTPProviders>
    </HostPort>

    </HostPortList>

    <HTTPStreamerAdapters>
    <HTTPStreamerAdapter>
    <ID>smoothstreaming</ID>
    <Name>smoothstreaming</Name>
    <Properties>
    </Properties>
    </HTTPStreamerAdapter>
    <HTTPStreamerAdapter>
    <ID>cupertinostreaming</ID>
    <Name>cupertinostreaming</Name>
    <Properties>
    </Properties>
    </HTTPStreamerAdapter>
    <HTTPStreamerAdapter>
    <ID>sanjosestreaming</ID>
    <Name>sanjosestreaming</Name>
    <Properties>
    </Properties>
    </HTTPStreamerAdapter>
    <HTTPStreamerAdapter>
    <ID>dvrchunkstreaming</ID>
    <Name>dvrchunkstreaming</Name>
    <Properties>
    </Properties>
    </HTTPStreamerAdapter>
    <HTTPStreamerAdapter>
    <ID>mpegdashstreaming</ID>
    <Name>mpegdashstreaming</Name>
    <Properties>
    </Properties>
    </HTTPStreamerAdapter>
    </HTTPStreamerAdapters>

    <HandlerThreadPool>
    <PoolSize>120</PoolSize>
    </HandlerThreadPool>
    <TransportThreadPool>
    <PoolSize>80</PoolSize>
    </TransportThreadPool>
    <IdleWorkers>
    <WorkerCount>4</WorkerCount>
    <CheckFrequency>50</CheckFrequency>
    <MinimumWaitTime>5</MinimumWaitTime>
    </IdleWorkers>
    <NetConnections>
    <ProcessorCount>4</ProcessorCount>
    <IdleFrequency>250</IdleFrequency>
    <SocketConfiguration>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>65000</ReceiveBufferSize>
    <ReadBufferSize>65000</ReadBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <KeepAlive>true</KeepAlive>
    <!-- <TrafficClass>0</TrafficClass> -->
    <!-- <OobInline>false</OobInline> -->
    <!-- <SoLingerTime>-1</SoLingerTime> -->
    <!-- <TcpNoDelay>false</TcpNoDelay> -->
    <AcceptorBackLog>100</AcceptorBackLog>
    </SocketConfiguration>
    </NetConnections>
    <HTTPTunnel>
    <KeepAliveTimeout>2000</KeepAliveTimeout>
    </HTTPTunnel>
    <Client>
    <ClientTimeout>90000</ClientTimeout>
    <IdleFrequency>250</IdleFrequency>
    </Client>
    <!-- RTP/Authentication/Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    <RTP>
    <IdleFrequency>75</IdleFrequency>
    <DatagramConfiguration>
    <Incoming>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>1024000</ReceiveBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
    <!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
    <!-- <TrafficClass>0</TrafficClass> -->
    <MulticastTimeout>50</MulticastTimeout>
    <DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
    </Incoming>
    <Outgoing>
    <ReuseAddress>true</ReuseAddress>
    <ReceiveBufferSize>65000</ReceiveBufferSize>
    <SendBufferSize>65000</SendBufferSize>
    <!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
    <!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
    <!-- <TrafficClass>0</TrafficClass> -->
    <MulticastTimeout>50</MulticastTimeout>
    <DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
    </Outgoing>
    </DatagramConfiguration>
    <UnicastIncoming>
    <ProcessorCount>4</ProcessorCount>
    </UnicastIncoming>
    <UnicastOutgoing>
    <ProcessorCount>8</ProcessorCount>
    </UnicastOutgoing>
    <MulticastIncoming>
    <ProcessorCount>4</ProcessorCount>
    </MulticastIncoming>
    <MulticastOutgoing>
    <ProcessorCount>4</ProcessorCount>
    </MulticastOutgoing>
    </RTP>
    <Application>
    <ApplicationTimeout>60000</ApplicationTimeout>
    <PingTimeout>12000</PingTimeout>
    <UnidentifiedSessionTimeout>30000</UnidentifiedSessionTimeout>
    <ValidationFrequency>20000</ValidationFrequency>
    <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    <MaximumSetBufferTime>60000</MaximumSetBufferTime>
    </Application>
    <StartStartupStreams>true</StartStartupStreams>
    <!-- Properties defined here will be added to the IVHost.getProperties() collection -->
    <Properties>
    </Properties>
    </VHost>
    </Root>

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    Please zip up your [install-dir]/conf and [install-dir]/logs on your load balancer listener Wowza instance and send it into support@wowza.com with reference to this thread for further review.

Similar Threads

  1. How load balancer works? Unbalanced load situation
    By gavram in forum Wowza Streaming Server Java API
    Replies: 2
    Last Post: 06-25-2014, 06:49 AM
  2. Using ec2 load balancer vs wowza load balancer and the best instances for me.
    By cham24 in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 4
    Last Post: 11-04-2013, 02:18 PM
  3. Load Balancing using Kemp Load Balancer
    By deanomeara in forum General Forum
    Replies: 0
    Last Post: 05-14-2013, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •