Questions tagged [jetty-8]

Version 8 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets and SPDY protocols.

Version 8 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets and SPDY protocols.

122 questions
2
votes
0 answers

Problematic Cookie class binding with Jetty 8

I'm trying to upgrade Jetty version from 7.4 to one compliant with servlet 3.0 specification like 8.1.4, as well as GWT from 2.3 to 2.5. While doing so, I found that jetty's Response.addCookie(Cookie) method calls for a method in Cookie class that…
2
votes
1 answer

Too many TIME_WAIT connections with Jetty

I am running an API on 10 different servers, all of them are behind a firewall. I am using jetty 8 to serve all the http requests. The use case for this API is short lived connections. A few month ago I started to get random Too many open file…
MichelT
  • 31
  • 4
2
votes
1 answer

How do I suppress Jetty 8's default ErrorHandler?

Jetty is helping my application too much. Whenever some unhandled Exception leaks out the top, Jetty takes it upon itself to build a very verbose response and spam it onto my clients HTTP/1.1 500 com.mongodb.MongoException: No replica set members…
Bob Kuhar
  • 10,838
  • 11
  • 62
  • 115
2
votes
0 answers

Solr OutOfMemory

I have Solr 4.2.1 running on Jetty 8.1.8 under Windows Server 2008 with x64 Java (JRE 7) and 2GB heap size. Solr index contains about 300-400k documents. About 3-5k new docs are added per day (mostly small, not more than 1-2kb). After about 1-2 days…
lorond
  • 3,856
  • 2
  • 37
  • 52
2
votes
1 answer

How can I find out the websocket-protocol version in a Browser using javascript?

I would like to use websockets with a Jetty-Server (Version 8.1.9) only if the websocket-version is 13 aka RFC 6455 is available. If its not available a http-fallback-solution will be used. [random Browser Javascript] <--websocket v13 only-->…
2
votes
1 answer

In Jetty, how do I record when persistent HTTP connections open and close?

I'm using Jetty 8.1.8. I'd like to be able to record when a new persistent connection is opened, how many requests/responses are sent over the persistent connection, and when the persistent connection is closed. In other words, how can I determine…
sanity
  • 35,347
  • 40
  • 135
  • 226
2
votes
1 answer

Password protecting url / folder with Jetty

I'd like to password protect a limited portion of a JSP based website running on Jetty 8.1. So for the url www.mywebsite.com/protected I want the browser to pop up a user/password entry window, whereas www.mywebsite.com is accessible to everyone. I…
toby88
  • 105
  • 2
  • 5
1
vote
0 answers

Jetty 8 blocking IO with slow clients

My understanding so far is Jetty 8(server) is based on servlet 3.0 which supports asynchronous processing but the socket IO is still blocking. So if there is a slow client processing a large response 10s of MB of size then its possible that the…
Bukhtawar
  • 85
  • 10
1
vote
1 answer

How to restrict IPs in a clustered Solr environment using IPAccessHandler?

We have a clustered system of Solr (two instances running in two servers) where the quorum is being maintained using zookeeper. We can access Solr by either hitting the direct server URLs or a blanket load balancer URL. We need to whitelist a few…
Swagoto
  • 11
  • 4
1
vote
1 answer

Not able to retrieve form data from jetty post request

I am trying to add Azure AD authentication support to an existing jetty application. I am redirected to my application post authentication with Azure AD and the request looks like this Dump of my request object looks…
banjara
  • 3,800
  • 3
  • 38
  • 61
1
vote
1 answer

Jetty http2 to open multiple connections to same destination

I'm using jetty client to make http2 connections with servers which are http2 enabled. I can see jetty opening conections as per need and utilise to exchange data between the endpoints. my snippet is as follows for creating http2…
Zyber
  • 428
  • 4
  • 21
1
vote
1 answer

How to add thread pool in Jetty 9.2.24 HttpClient?

In Jetty 9 the setThreadPool method of HttpClient has been removed. Can anyone suggest an alternative way of doing it in Jetty 9? This is how I used to do in previous versions of Jetty's HttpClient: QueuedThreadPool queuedThreadpool= new…
Dipankar Dey
  • 105
  • 1
  • 8
1
vote
1 answer

Out of Memory : Metaspace with java 8

My product has 256 MB of RAM. I have upgrade java 6 to java 8. Then I started facing memory related issue with java 8. memory consumption is incresing by the time with Java 8 With same code, memory consumption is stable with java 6 I have explored…
Smash
  • 63
  • 3
  • 9
1
vote
2 answers

How to gracefully cancel deadlocked WEB request in embedded Jetty

I use embedded Jetty to host a WEB server. Requests are forwarded (by my internal implementation) to code from dynamically loaded JARs. At some time I need to hot-update in-memory JARs and for that purpose I wait for requests to complete, but it may…
Xtra Coder
  • 3,389
  • 4
  • 40
  • 59
1
vote
1 answer

Embedded Jetty web server not working, handler not invoked

I'm trying to embed Jetty 8 (8.1.18.v20150929) into a Java (jdk1.7.0_67) application. I have the following code: public static final String HTTP_PATH = "/session"; public static final int HTTP_PORT = 9995; // Open the HTTP server for…
Mike Stoddart
  • 488
  • 7
  • 21
1 2
3
8 9