通过REST的ActiveMQ:高吞吐量Jetty配置 [英] ActiveMQ via REST: High throughput Jetty configuration

查看:223
本文介绍了通过REST的ActiveMQ:高吞吐量Jetty配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过HTTP请求将消息发送到ActiveMQ.我创建了自己的Servlet(默认Servlet不太好).不幸的是,我的服务器每秒只能处理400个请求.

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?

我在8核机器上运行,因此更多请求应该不是问题.

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

推荐答案

两个建议: 您是否配置了足够高的码头线程池以同时处理您的请求?

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

还是在运行时JVM的CPU利用率为100%?如果是,则可能要运行一些Java Profiler并找出大部分时间都花在了哪里.

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.

这篇关于通过REST的ActiveMQ:高吞吐量Jetty配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆