java


Dropwizard request processing is deferred


Dropwizard version: 0.9.2
I have a pretty simple dropwizard rest api on live servers.
There is a nginx in front of it.
For many request nginx shows that client timed out (status 499) as our service breached the SLA (150 ms).
On examining the access log and application log, it appears that the request reached dropwizard late (around 250ms after nginx had already declared the client timeout).
On enabling the debug logs at Dropwizard side, found out that the select thread is waking up late
I have tried multiple things including:
1) Setting the selector count to 200,300,400,500. None helped.
2) Increasing the acceptor count to 32,50,etc.
3) Changing GC strategies
4) Changing versions of dropwizard from 0.9.2 to 0.9.1.
Have you tried increasing threads in your config.yaml?
server:
...
minThreads: 20
maxThreads: 400

Related Links

How do i combine multiple if (stringname.equals(“value”))?
Hibernate querying the entity after fetching its collection
Java program boolean values defaulting to false, no idea why? [duplicate]
The nested type Student cannot hide an enclosing type ? [duplicate]
JTextArea height is only 1 line when using GridBayLayout
Determining whether a file path or Url is being passed to command line argument
toUpperCase(); - exception: The method toUpperCase() is undefined for the type Pseudo
Simple proxy Apache - Tomcat
How sort a LinkedHashMap by the size of each key's value?
OCJP Dumps Thread Synchronized Method
How to shift elements in array?
Incompatible Types Error When Converting/Transferring ArrayList<String> data to String[]
How to algebraically expand a mathematical operation String
How to annotate Map<Entity,INTEGER> with JPA?
Cascade.Remove don't work for OneToOne
Given a stream of number, like 1,3,5,4,6,9, I was asked to print them like 1,3-6,9

Categories

HOME
blogger
gerrit
keras
omnet++
reflection
oracle11g
lodash
iot
bookshelf.js
google-docs
blueprintjs
enterprise-library-5
virtualization
tomcat6
hapi
quartz-scheduler
text-rendering
crystal-reports-2008
tokenize
core-text
autosys
sparse-matrix
facet
social-media
strncpy
dbclient
windows-server-2000
vision
binary-data
exuberant-ctags
protovis
overlap
vxworks
adobe-premiere
uft-api
jvm-languages
nxlog
unixodbc
python-c-api
logparser
arrow-keys
lync-client-sdk
orthogonal
angular-strap
parallel-data-warehouse
firmata
removechild
radtreelist
fody
trash
etsy
gstreamer-0.10
ready-api
essence
whois
dlna
oauth2client
natvis
eclipse-clp
intellij-14
qdialog
atk4
iis-arr
proj4js
lustre
sorl-thumbnail
gui-test-framework
winddk
markers
wp-query
htmlcleaner
monomac
jquery-mobile-dialog
limejs
enter
ohm
coredump
recent-documents
actionview
gdlib
dentrix
mozilla-prism
spec#
commodore
lzh

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App