In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1. Configuration file: vi / usr/local/tomcat7/conf/server.xml
two。 Launch: cd / usr/local/tomcat7/bin sh startup.sh
3. Log: cd / usr/local/tomcat7/logs tail-f catalina.out
4. View the log while starting:
/ usr/local/tomcat7/bin/startup.sh & tail-f / usr/local/tomcat7/logs/catalina.out
5. Kill the process: ps-ef | grep java kill-9 pid
6. Monitor and control
Cd / usr/local/tomcat7/conf vi tomcat-users.xml
Complete configuration, save, restart tomcat
Then visit the tomcat page
Enter the configured user name and password to enter the page
7. Parameter optimization
Basically, which resource types need to be compressed in vi / usr/local/tomcat7/conf/server.xml?
Adjust the maximum number of concurrent connections in tomcat (focus)
Error message: org.apache.tomcat.util.threads.ThreadPool logFull SERVER: ALL threads (250) are currently busy,waiting. Increase maxThreads (250) or check the servlet status
MaxThreads: for more information on how big the setting is, you can refer to Current thread count in the tomcat page / server status page, which is at least larger than this.
AcceptCount: when the number of requests is large, some requests that cannot be processed in time will be crammed into acceptCount. When acceptCount is full, the request will be discarded and the connection rejected error will be reported. If it is Nginx, it will report 502error. These two linkage configurations. Reference https://my.oschina.net/weiweiblog/blog/3040849
8. What are the aspects of tuning tomcat
Hardware
Operation mode
Parameters (including tomcat parameters, JVM parameters)
JDK version
Deployment mode (with other combinations, learning from each other's strengths to offset their weaknesses)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.