tomcat
你好龙卷风!!!
如你所愿
展开
-
tomcat8.5配置高并发
最近部署的tomcat应用,有一天压测的时候,测试一致反馈下载不了,结果才发现如下错误:才惊醒这个tomcat根本知识解压就使用的,配置都没动过,肯定不能支持高并发了。所以这里给出一个高并发的配置。也会发现很多类似的配置文章,经本人亲测,特别是压力测试下是没问题的;开始修改tomcat的server.xml文件:<Executor name="tomcatThreadPool" # 配置TOMCAT共享线程池,NAME为名称。转载 2024-01-16 16:17:50 · 175 阅读 · 0 评论 -
apache-tomcat-9.0.75 参数丢失问题排查解决
修改server.xml中的maxParameterCount参数为10000就可以了。先排查前台参数1992个 ,参数没有在前台丢失,在后台打印,参数丢失了。maxParameterCount最多能传几个参数值。再看配置1000个,我的1992个当然丢失了。原创 2023-05-22 19:11:16 · 481 阅读 · 0 评论 -
linux系统tomcat隐藏版本
修改配置文件:org/apache/catalina/util/ServerInfo.properties。找到catalina.jar,解压catalina.jar。原创 2023-03-05 17:31:31 · 862 阅读 · 0 评论 -
linux tomcat8.5.75配置https
1.先把证书文件放到系统2.配置tomcat server.xml中引入以下配置3.重启访问即可原创 2022-06-07 16:20:58 · 272 阅读 · 1 评论 -
linux tomcat定时重启服务
1.创建重启脚本1.编辑脚本cd /homevim tomcatRestart.shSHUTDOWN=$tomcat_home/bin/shutdown.shSTARTTOMCAT=$tomcat_home/bin/startup.shecho "停tomcat$tomcat_home"$SHUTDOWNps -ef |grep tomcat |grep $tomcat_home |grep -v 'grep'|awk '{print $2}' | xargs kill -9原创 2022-01-13 14:46:39 · 1390 阅读 · 0 评论 -
tomcat修改服务器响应头 Server:Apache-Coyote/1.1
原问题:可用curl -v [url]测试Server:Apache-Coyote/1.1只知道Apache-Coyote是tomcat处理socket链接信息,包装request、response等底层信息的一套机制,Server:Apache-Coyote/1.1是泄露了当前容器的类型所以可以选择如下修改<Connector port="8080" protocol="HTTP/1.1" connecti...原创 2021-08-06 09:49:05 · 1449 阅读 · 0 评论 -
Nginx HTTP Status 400 – 错误的请求
做负载均衡访问网页时报错:HTTP Status 400 – 错误的请求Type 异常报告消息 The character [_] is never valid in a domain name.描述 The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid req原创 2021-03-04 11:59:44 · 2062 阅读 · 2 评论 -
Tomcat访问管理页面localhost出现:403 Access Denied
403 Access DeniedYou are not authorized to view this page.If you have already configured the Manager application to allow access and you have used your browsers back button, used a saved book-mark or similar then you may have triggered the cross-site r转载 2020-09-21 20:33:16 · 821 阅读 · 0 评论 -
Nginx 414 Request-URI Too Large
报错信息:开发反馈富文本内容太多,发送post请求,Nginx会返回如下报错<html> <head> <title>414 Request-URI Too Large</title> </head> <body bgcolor="white"> <c...转载 2020-01-06 10:59:55 · 2227 阅读 · 0 评论 -
request.getParameter() 中文乱码解决方法
今天测试服务器突然有个页面的jsp发生乱码,经排查是request.getParameter()获取参数时发生乱码,解决后特记录此笔记原因:Http请求传输时将url以ISO-8859-1编码,服务器收到字节流后默认会以ISO-8859-1编码来解码成字符流(造成中文乱码)解决办法:我们需要把request.getParameter(“参数名”)获取到的字符串先用ISO-8859-1...转载 2019-12-19 19:23:30 · 561 阅读 · 0 评论 -
关于tomcat的内存参数优化——如何配置catalina.sh的JAVA_OPTS?
以下是物理内存为16G的建议配置:export JAVA_OPTS="-server -Xms4096m -Xmx4096m -Xss256k -XX:PermSize=256m -XX:MaxPermSize=4096m -XX:NewSize=512m -XX:MaxNewSize=2048m -XX:+DisableExplicitGC -XX:+AggressiveOpts -X...原创 2018-08-28 09:56:08 · 8449 阅读 · 1 评论