Problem
When I attempt to start Wowza Pro on Linux I get an error message that looks like this:
Error starting: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.wowza.wms.bootstrap.Bootstrap.startServer(Unkn own Source)
at com.wowza.wms.bootstrap.Bootstrap.main(Unknown Source)
Caused by: java.lang.InternalError: unable to get address of epoll functions, pre-2.6 kernel?
at sun.nio.ch.EPollArrayWrapper.init(Native Method)
at sun.nio.ch.EPollArrayWrapper.<clinit>(Unknown Source)
at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
at sun.nio.ch.EPollSelectorProvider.openSelector(Unkn own Source)
at java.nio.channels.Selector.open(Unknown Source)
at org.apache.mina.transport.socket.nio.SocketAccepto r.startupWorker(Unknown Source)
at org.apache.mina.transport.socket.nio.SocketAccepto r.bind(Unknown Source)
at com.wowza.wms.server.Server.startCommandInterface( Unknown Source)
at com.wowza.wms.server.Server.start(Unknown Source)
This is a know issue with certain versions of the Linux kernel.
Solution
To fix this problem, edit the following two files:
/usr/local/WowzaMediaServerPro/bin/setenv.sh
and change the following line in both files:
from:
JAVA_OPTS="-Xmx768M"
to:
JAVA_OPTS="-Xmx768M -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"
Charlie