Results 1 to 6 of 6

Thread: server core failure: java.io.IOException: Function not implemented

  1. #1
    Join Date
    Jun 2010
    Posts
    3

    Default server core failure: java.io.IOException: Function not implemented

    HI
    i am having the following problem when i start wowza

    Linux 2.6.9-023stab051.2-smp #1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 i686 i386 GNU/Linux

    INFO server server-start Wowza Media Server 2 Developer 2.1.1 build24490 -
    INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-8NK83
    INFO server comment - Maximum connections: 10
    INFO server comment - Hardware Available Processors: 4
    INFO server comment - Hardware Physical Memory: 18101MB/18245MB
    INFO server comment - Max File Descriptor Count: 20000
    INFO server comment - Open File Descriptor Count: 40
    INFO server comment - OS Name: Linux
    INFO server comment - OS Version: 2.6.9-023stab051.2-smp
    INFO server comment - OS Architecture: i386
    INFO server comment - Java Name: Java HotSpot(TM) Server VM
    INFO server comment - Java Vendor: Sun Microsystems Inc.
    INFO server comment - Java Version: 1.6.0_20
    INFO server comment - Java VM Version: 16.3-b01
    INFO server comment - Java Spec Version: 1.6
    INFO server comment - Java Home: /usr/java/jdk1.6.0_20/jre
    INFO server comment - Java Max Heap Size: 46MB
    INFO server comment - Java Architecture: 32
    INFO server comment - Java Args[0]: -Xmx48M
    INFO server comment - Java Args[1]: -Djava.net.preferIPv4Stack=true
    INFO server comment - Java Args[2]: -Dcom.sun.management.jmxremote=true
    INFO server comment - Java Args[3]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer
    INFO server comment - Java Args[4]: -Dcom.wowza.wms.ConfigURL=
    INFO server comment - Java Args[5]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer
    INFO server comment - Java GC[0]: PS Scavenge
    INFO server comment - Java GC[1]: PS MarkSweep
    INFO server comment - Server threads[h/t]: 10/10
    INFO server comment - CMDInterface now listening: [any]:8083
    ERROR server comment - server core failure: java.io.IOException: Function not implemented
    java.io.IOException: Function not implemented
    at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
    at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:69)
    at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
    at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
    at java.nio.channels.Selector.open(Selector.java:209)
    at org.apache.mina.transport.socket.nio.SocketAcceptor.startupWorker(Unknown Source)
    at org.apache.mina.transport.socket.nio.SocketAcceptor.bind(Unknown Source)
    at com.wowza.wms.server.Server.startCommandInterface(Unknown Source)
    at com.wowza.wms.server.Server.start(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:248)
    at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)
    INFO vhost vhost-start _defaultVHost_ -
    INFO server comment - _defaultVHost_ threads[h/t]:120/80 home:/usr/local/WowzaMediaServer
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)
    WARN vhost comment _defaultVHost_ Bind failed: ([any]:1935): java.io.IOException: Function not implemented
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)
    WARN vhost comment _defaultVHost_ Bind failed: ([any]:8086): java.io.IOException: Function not implemented
    INFO vhost vhost-stop _defaultVHost_ -
    INFO server server-stop - -

    thanks nick

  2. #2
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    Try changing the top line of /bin/startup.sh to:

    Code:
    set _EXECJAVA=java --enable-epoll
    Richard

  3. #3
    Join Date
    Jun 2010
    Posts
    3

    Default

    Thanks but no luck

    Unrecognized option: --enable-epoll
    Could not create the Java virtual machine.

    Nick

  4. #4
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    I'll try to look around again tomorrow. I have heard that this has come up and that there is a solution to this, something to do with some property that included a path to a class.... is what I have to go on.

    Richard

  5. #5
    Join Date
    Jun 2010
    Posts
    3

    Default

    Thank richard
    i also tryed
    JAVA_OPTS="-Xmx48M -Djava.nio.use_epoll=true"
    but it did not work.
    from what i could find it was only needed in pre 2.6 kernals but as you pointed out my problem does seem to be with epoll.

    Nick

  6. #6
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    I think I found it here:

    JAVA_OPTS="-Xmx768M -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch .PollSelectorProvider"
    You still might want to udate everything: OS, kernel, Java. That would probably be the best solution.

    Also, be sure you are setting -server flag.

    Richard

Posting Permissions

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