服務器:redhat as 4 2.6.9-22.ELsmp
Intel(R) Pentium(R) D CPU 2.80GHz
2G記憶體
160G SATA
客戶機:WINXP SP2
Intel(R) Pentium(r) 4 CPU 2.93GHz
1G記憶體
80G IDE硬碟
測試軟體:Load Runner 7.8
並發用戶數: 500
測試代碼:
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HashMap m = new HashMap();
for(int i=0;i<10000;i++)
m.put(i,i);
m.clear();
m = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP `test.jsp` starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is my JSP page. <%=basePath%><br>
</body>
</html>
測試結果:
jetty 6.1.5
 | 分析摘要 | 周期: 30-09-2007 10:20:45 - 30-09-2007 10:21:09 |
| 方案名: | Scenario1 |
|---|
| 会话的结果文件: | e:\Temp\res\res.lrr |
|---|
| 持续时间: | 24秒. |
|---|
| | | | | | | | |
| index | 0.634 | 2.209 | 3.847 | 0.856 | 3.283 | 500 | 0 | 0 |
| | | | | | | | |
| | | | | | | | |
Resin pro 3.0.23
 | 分析摘要 | 周期: 30-09-2007 10:23:44 - 30-09-2007 10:24:15 |
| 方案名: | Scenario1 |
|---|
| 会话的结果文件: | e:\Temp\res\res.lrr |
|---|
| 持续时间: | 31秒. |
|---|
| | | | | | | | |
| index | 0.652 | 6.722 | 11.39 | 4.065 | 10.882 | 500 | 0 | 0 |
| | | | | | | | |
| | | | | | | | |
總結:
雖然這次測試比較簡單.但也應該可以體現出jetty性能比resin好一點.而且resin還購買了正版的licenses,沒有把tomcat加入測試.有時間再測試一個tomcat吧