ActiveMQ via REST: High throughput Jetty configuration

我只是一个虾纸丫 提交于 2019-12-14 03:14:07

问题


i want to send Messages to ActiveMQ via HTTP Requests. I created my own Servlet (the default servlet isn't that good). Unfortunately my Server only handles 400 Requests per second.

Is there a configuration i have to do so jetty can handle more?

I'm running on an 8 core maschine so more requests should not be a problem.


回答1:


Two suggestions: Did you configure the jetty thread pool high enough to concurrently handle your requests?

Or is the CPU utilization of the JVM at 100% at runtime? If yes, you might want to run some Java profiler and find out where most of the time is being spent.



来源:https://stackoverflow.com/questions/5487851/activemq-via-rest-high-throughput-jetty-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!