Questions tagged [undertow]

Undertow is a high performance non-blocking webserver that is the new web server in Red Hat's WildFly.

Website: http://undertow.io/

526 questions
8
votes
1 answer

Gradle: how does order of dependencies make a difference?

I reordered my dependencies in build.gradle in alphabetical order, after which I quickly noticed that my Spring application no longer works properly (it halts with message java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader() on…
David Frank
  • 5,918
  • 8
  • 28
  • 43
8
votes
2 answers

Deploying servlets webapp in embedded undertow

Is there any easy way to deploy a servlets web application with undertow embbeded? For example, with jetty, I can deploy like this: Server server = new Server(8080); WebAppContext context = new WebAppContext(); …
Chico Sokol
  • 1,254
  • 3
  • 16
  • 24
7
votes
2 answers

OutOfMemoryError: Direct buffer memory when using websockets in WildFly

After a while on our WildFly 18 server, in production, we encountered this error: [org.xnio.listener] (default I/O-1) XNIO001007: A channel event listener threw an exception: java.lang.OutOfMemoryError: Direct buffer memory at…
Xavier Portebois
  • 3,354
  • 6
  • 33
  • 53
7
votes
1 answer

Spring boot application : Negative value of http response time

I developed a web application following the technology. Spring boot(undertow starter) : 1.4.2 Java 7 OS : Centos Servlet Filter : org.spring.web.filter.OncePerRequestFilter in step 4 the filter is used to print http request/response info log. This…
7
votes
0 answers

Chunked request to undertow server causes hanging state

I have an Undertow server and am running the defaults. I am attempting to send a chunked request and while the server to receive the chunks, the input stream server side never reaches a -1 state and hangs. I have used the defaults for the Undertow…
js758
  • 71
  • 4
6
votes
0 answers

Difference between Netty and Undertow

I am new to Netty and undertow trying to understand why we use netty instead of undertow , Performance wise which one is better to use
Anitha
  • 165
  • 2
  • 9
6
votes
2 answers

Spring Boot Keycloak - authenticates three times per request

We are using Spring Boot 2.1.8 with Undertow and are using Keycloak to authenticate. Each request needs authentication but the servlet calls Keycloak for authentication three times at different points in the Servlet pipeline or filters. I have seen…
Martin
  • 113
  • 1
  • 6
6
votes
1 answer

java.lang.ClassNotFoundException: sun.misc.Cleaner

When using Undertow 1.4.20 (as embedded Servlet engine), i get this exception when running our app under Java 9.=: java.lang.ClassNotFoundException: sun.misc.Cleaner Cause is this line in…
rmuller
  • 12,062
  • 4
  • 64
  • 92
6
votes
2 answers

HTTP Handler and Resteasy Deployment with undertow and resteasy

I am trying to run both HTTPServer and also the REST Handler. Only one works at a time not able to make it work both at same time. I need to serve html pages and also the api. here is my code. public class HttpServer { private final…
Ramesh
  • 2,295
  • 5
  • 35
  • 64
6
votes
3 answers

Compressing Undertow server responses

i have a programmatic Undertow server setup. Static content is served by Undertow as well, without a reverse proxy. Java code for Undertow startup looks like this: ResourceManager resourceManager = new FileResourceManager(new…
siphiuel
  • 3,480
  • 4
  • 31
  • 34
6
votes
1 answer

How do I handle HTTP Methods in Undertow?

So I've decided to start using Undertow, both as an experiment and due to the great results it achieved in benchmark tests. And while I think it's fantastic there's a feature which is either missing or I can't find. I want to develop a RESTful web…
gryzlaw
  • 153
  • 1
  • 8
6
votes
1 answer

Hosting multiple domains with WildFly (Undertow)

For example I have two domains (app1.com, app2.com) and two ears (app1.ear, app2.ear). Each EAR file consists of ejb.jar and web.war. Also each WAR has context root: /app1 or /app2. So if I start WildFly I will have two applications running on…
Ιναη ßαbαηιη
  • 3,410
  • 3
  • 20
  • 41
5
votes
2 answers

Direct buffer memory OutOfMemoryError after updating to wildfly 18

After updating the environment from Wildfly 13 to Wildfly 18.0.1 we experienced an A channel event listener threw an exception: java.lang.OutOfMemoryError: Direct buffer memory at java.base/java.nio.Bits.reserveMemory(Bits.java:175) at…
Lonzak
  • 9,334
  • 5
  • 57
  • 88
5
votes
3 answers

WebSocketDeploymentInfo, the default worker will be used

In my SpringBoot application logs I see the following WARNs: UT026009: XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be…
FleaLes
  • 127
  • 1
  • 10
5
votes
0 answers

Undertow setting maximum Concurrent Requests per connection by application properties

My main objective is setting max concurrent request connections limit for Undertow. I have tried to set it by configuration through the properties. But it doesn't work. application.yml undertow: worker-threads: 1 io-threads: 1 options: …
jcliment
  • 51
  • 2
1
2
3
35 36