ActiveMQ via REST: High throughput Jetty configura

2019-08-21 02:48发布

问题:

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.