English 中文(简体)
性能: com.sun.net.httpserver.HttpServer vs. jetty
原标题:Performance: com.sun.net.httpserver.HttpServer vs. jetty
  • 时间:2011-11-01 18:51:21
  •  标签:
  • java
  • jetty


i m working on a java web application which will sends and receives JSON strings. The JSON is generated through jersey and maps to a jaxb anotated pojo.

申请本身很复杂,但需要在交通繁忙的情况下工作。 我尝试了两种办法。 首先使用喷气机作为集装箱,其次为与矿石HttpServer类别(通过“HttpServerFactory.create(.)”使用喷气机。

我对这两种版本都进行了细微镜的测试。 提出10 000项请求,要求同意100项。 令我惊讶的是,光顾申请需要相当少的时间才能作出回应,而且转让率更高。 我预计会有相反的结果。

在小型应用的效绩圈中,平原是否是一个更好的解决办法? 感谢。

问题回答

如果没有更多的信息,就几乎无法说明为何你的青.素应用比杰特服务器更快。

我预计,喷气式喷气式喷气式喷气式喷气式机能比喷气式服务器更快地运行,因为喷气式喷气式喷气式喷气式机能脱掉(在这种应用中)需要的服饰器部件,从而减少间接费用。 我预计这一差异不会很大。

But:在像你所做的那样的小基准中,我更可能怀疑组合问题(无论是服务器还是基准)正在产生结果差异。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签