linux apache+tomcat集群

qq_31711795 2016-07-30 03:13:52
apache+tomcat+jk集群环境搭好后,启动tomcat没有问题,写了测试demo测试。通过localhost/test/test.jsp。tomcat报错了:信息如下:

org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

我去查阅了资料说要设置server.xml里面 添加属性maxHttpHeaderSize="8192" 我这样设置了之后。重启,再次访问还是不行。如果换成localhost:8080/test/test.jsp。又可以正常访问。而且再次开启tomcat时信息不对

如下:
[root@localhost ~]# cd /usr/local/tomcat1/bin
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat1
Using CATALINA_HOME: /usr/local/tomcat1
Using CATALINA_TMPDIR: /usr/local/tomcat1/temp
Using JRE_HOME: /usr/local/jdk1.7.0_76
Using CLASSPATH: /usr/local/tomcat1/bin/bootstrap.jar:/usr/local/tomcat1/bin/tomcat-juli.jar
Tomcat started.
[root@localhost bin]# cd /usr/local/tomcat1/logs
[root@localhost logs]# tail -f catalina.out
Jul 30, 2016 3:07:17 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jul 30, 2016 3:07:17 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jul 30, 2016 3:07:17 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jul 30, 2016 3:07:17 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jul 30, 2016 3:07:17 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
怎么解决啊?
...全文
23 点赞 收藏 回复
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复

还没有回复,快来抢沙发~

相关推荐
发帖
Web开发应用服务器
创建于2007-09-28

5581

社区成员

Web开发应用服务器相关讨论专区
申请成为版主
帖子事件
创建了帖子
2016-07-30 03:13
社区公告
暂无公告