linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem
martinko
gamato at users.sf.net
Sun Mar 18 00:08:22 UTC 2007
Jung-uk Kim wrote:
> On Friday 09 March 2007 05:23 am, Divacky Roman wrote:
>>>> 3. Running ftpserver (java application) displays a GUI window
>>>> but terminates abruptly when the server is started (syscall
>>>> epoll_create not implemented).
>>> epoll* is not implemented. So this is expected (and gives more
>>> priority to epoll).
>> I dont understand why it should use epoll only with 2.6. Epoll has
>> been around for some 5 years now...
>
> I guess Sun didn't think so. Check out:
>
> http://java.sun.com/javase/6/docs/technotes/guides/io/enhancements.html#6
>
> 'A new java.nio.channels.SelectorProvider implementation that is based
> on the Linux epoll event notification facility is included. The epoll
> facility is available in the Linux 2.6, and newer, kernels. The new
> epoll-based SelectorProvider implementation is more scalable than
> the traditional poll-based SelectorProvider implementation when there
> are thousands of SelectableChannels registered with a Selector. The
> new SelectorProvider implementation will be used by default when the
> 2.6 kernel is detected. The poll-based SelectorProvider will be used
> when a pre-2.6 kernel is detected.'
>
> BTW, it was backported to 1.5 and available from Update 10:
>
> http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_10
>
> So, you will notice the same problem from 1.5.0_10, which is already
> in ports tree for almost three months.
>
just a note:
"The epoll-based implementation of SelectorProvider is not selected by
default. To select it, specify a property value from the command line as
follows:
java
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider
... "
More information about the freebsd-emulation
mailing list