-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling of Servlet Async API #399
Error handling of Servlet Async API #399
Conversation
379e09e
to
81dff7a
Compare
Jenkins test this please |
241c217
to
cfda77a
Compare
Codecov Report
@@ Coverage Diff @@
## master #399 +/- ##
============================================
- Coverage 72.26% 72.24% -0.02%
+ Complexity 1339 1315 -24
============================================
Files 145 143 -2
Lines 5257 5063 -194
Branches 550 518 -32
============================================
- Hits 3799 3658 -141
+ Misses 1222 1169 -53
Partials 236 236
Continue to review full report at Codecov.
|
496e414
to
f21f25d
Compare
f21f25d
to
a090f8d
Compare
|
||
int maxPooledElements = tracer.getConfigurationRegistry().getConfig(ReporterConfiguration.class).getMaxQueueSize() * 2; | ||
asyncListenerObjectPool = QueueBasedObjectPool.ofRecyclable( | ||
AtomicQueueFactory.<ApmAsyncListener>newQueue(createBoundedMpmc(maxPooledElements)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of required ApmAsyncListener
instances is independent of the size of the disruptor. It's probably dependant on the number of container threads. The default for Tomcat is 200 IIRC. I'm not sure whether there is an extra thread pool for the handling of async requests but I suppose there is not.
Maybe hard-code to 256?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right it is not the right configuration to rely on. We can start with hard code and see if it bites us.
2143199
to
8c6bc1e
Compare
Status code and error reporting
Pool ApmAsynListener objects
Extend integration tests to capturing errors and JSP transactions