发表于: 2020-07-06 23:00:22

1 1389


今天做了什么:

配置好Resin,Tomcat,Jetty的Access.log(不同的WEB服务器的访问日志命名有区别),列出来每一个请求的响应时间,以MS为单位

修改Resin的内存配置,给当前的WEB程序分别设置1G内存,512兆内存,32兆内存,测试最小启动的大小。

配置Nginx,配置域名指向Resin,本地配置Host,通过域名在浏览器,Postman等测试数据(配置反向代理失败)



运行成功,部署成功

运行成功,部署成功

运行成功,部署成功

运行成功,部署失败。

给web程序的运存最小不能低于64m

tomcat日志

183.13.191.130 - - [2020-07-06 19:07:09] - "POST /task2/student HTTP/1.1" 200 60 333 328

183.13.191.130 - - [2020-07-06 19:07:20] - "GET /task2/student/1 HTTP/1.1" 200 274 30 29

183.13.191.130 - - [2020-07-06 19:07:29] - "PUT /task2/student/1/2 HTTP/1.1" 200 48 3 3

183.13.191.130 - - [2020-07-06 19:10:32] - "DELETE /task2/student/1 HTTP/1.1" 200 48 4 4

jetty日志

183.13.191.130 - - [06/Jul/2020:11:08:20 +0000] "POST /task2/student HTTP/1.1" 200 49 "-" "PostmanRuntime/7.26.1" - 230

183.13.191.130 - - [06/Jul/2020:11:08:28 +0000] "GET /task2/student/1 HTTP/1.1" 200 274 "-" "PostmanRuntime/7.26.1" - 32

183.13.191.130 - - [06/Jul/2020:11:08:40 +0000] "PUT /task2/student/1/2 HTTP/1.1" 200 37 "-" "PostmanRuntime/7.26.1" - 4

183.13.191.130 - - [06/Jul/2020:11:08:47 +0000] "DELETE /task2/student/1 HTTP/1.1" 200 37 "-" "PostmanRuntime/7.26.1" - 3

resin日志

183.13.191.130 - "null-user" [06/Jul/2020:19:07:48 +0800] "POST /task2/student HTTP/1.1" 200 49 "-" "PostmanRuntime/7.26.1"310000

183.13.191.130 - "null-user" [06/Jul/2020:19:07:57 +0800] "GET /task2/student/1 HTTP/1.1" 200 274 "-" "PostmanRuntime/7.26.1"26000

183.13.191.130 - "null-user" [06/Jul/2020:19:08:04 +0800] "PUT /task2/student/1/2 HTTP/1.1" 200 37 "-" "PostmanRuntime/7.26.1"2000

183.13.191.130 - "null-user" [06/Jul/2020:19:08:10 +0800] "DELETE /task2/student/1 HTTP/1.1" 200 37 "-" "PostmanRuntime/7.26.1"4000

执行速度:jetty>resin>tomcat


明天计划的事情:

学习分页,数据校验,springmvc的异常处理 

用Spring messageSource 配置错误信息,在接口处做校验,根据错误的类型返回对应的错误信息

提交代码到SVN/Git,部署代码到服务器,用Postman测试服务器数据是否成功

配置域名指向Resin

遇到的问题:

配置域名指向Resin失败,

原因:还未理解nginx的反向代理机制。

收获:


返回列表 返回列表
评论

    分享到