Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] SDPY client gets overwhelmed when subscribing to high volume incoming messages

Hi,
Thank you for the immediate response. I changed the npn boot jar to the version you recommended i.e. 1.1.1.v20121030 ..
Though I didn't get the NoSuchMethodError I got the error below. The  VM args I am using and  attached the screen shot of the build path of the project in case it helps.

-Xbootclasspath/p://Users/abhinavsunderrajan/Desktop/npn-boot-1.1.1.v20121030.jar
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KQueueSelectorProvider


Thank you so  much,
Abhinav



**************** Error log *******************************

147 [main] INFO org.eclipse.jetty.server.Server - jetty-9.0.0.M5
732 [main] INFO org.eclipse.jetty.spdy.server.SPDYServerConnector - Started SPDYServerConnector@3624332f{SSL-npn}{localhost:8181}
7769 [qtp445922089-15] WARN org.eclipse.jetty.util.thread.QueuedThreadPool -
java.lang.NoClassDefFoundError: javax/servlet/AsyncContext
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.eclipse.jetty.server.HttpChannel.<init>(HttpChannel.java:102)
    at org.eclipse.jetty.server.HttpConnection$HttpChannelOverHttp.<init>(HttpConnection.java:632)
    at org.eclipse.jetty.server.HttpConnection.<init>(HttpConnection.java:96)
    at org.eclipse.jetty.server.HttpConnectionFactory.newConnection(HttpConnectionFactory.java:54)
    at org.eclipse.jetty.spdy.server.NextProtoNegoServerConnection.onFillable(NextProtoNegoServerConnection.java:89)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: javax.servlet.AsyncContext
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 21 more

On Wed, Feb 6, 2013 at 12:39 AM, Jesse McConnell <jesse.mcconnell@xxxxxxxxx> wrote:
use version 1.1.1.v20121030

the timestamp on that one is newer then when it was mistakeningly released with a version of jetty

jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx


On Tue, Feb 5, 2013 at 10:18 AM, Abhinav Rajan <abhinav.rajan0@xxxxxxxxx> wrote:
Hello,

As per Thomas Becker's suggestion I shifted to Jetty 9 and the test ran fine.. We were able to send 400 million messages in two hours without any problems.
(We had to saturate the network with such a high rate of messages since we expect to get real-time data from several sources simultaneously)..

But when I am implemented the same with SSL.. I got the following error.

java.lang.NoSuchMethodError: org.eclipse.jetty.npn.NextProtoNego.remove(Ljavax/net/ssl/SSLEngine;)Lorg/eclipse/jetty/npn/NextProtoNego$Provider;

Kindly note that we are using npn boot jar version 8.1.2.v20120308..

Also as per the information  in the link below and I quote

"We're not quite out of the woods, it looks like the latest SPDY library requires an updated NPN library since periodically you'll see these non-critical errors...
java.lang.NoSuchMethodError
org.eclipse.jetty.npn.NextProtoNego.remove(Ljavax/net/ssl/SSLEngine;)

Which suggests we need to find a newer version of the NPN library when/if its been published."

http://wiki.netkernel.org/wink/wiki/NetKernel/News/3/32/July_20th_2012

Thank you so very much for the advice.

Regards,
Abhinav


On Thu, Jan 31, 2013 at 4:09 AM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Wed, Jan 30, 2013 at 3:04 AM, Abhinav Rajan <abhinav.rajan0@xxxxxxxxx> wrote:
> Hello,
> We are implementing a real time data stream processing platform. So for the
> sake of this discussion please assume the "Publisher" to be a source of
> real-time data input. This is the reason I am sending data at the rate of
> 10^5 microseconds is to test that our stream processing platform is able to
> scale up to high volumes of input(s) .
>
> Likewise the subscriber here can be thought of as our stream processing
> platform receiving the data streams from several inputs.
>
> Hope this clarifies.

Not really, but I recommend you to look at why your subscriber fails.
Most likely it's not Jetty's fault, nor SPDY.
You probably saturate the network before, or saturate CPU, or a number
of other issues if you insist sending messages every microsecond,
provided you actually can do that (unlikely).
In a word, your test is flawed.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev



_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev


Attachment: Screen Shot 2013-02-06 at 10.14.12 AM.png
Description: PNG image


Back to the top