Java Web traffic detection and solutions

Source: Internet
Author: User

1. Preparation

Download Charles Software, http://www.charlesproxy.com/download/

Download cracked jar package, http://download.csdn.net/download/chun799/8882253

2. Installation

Common Software Installation method, after installation, into the installation directory under the Lib folder, with the cracked version of the Charles.jar replace the original jar package

3. Configuration

(1) Open Firefox browser, Options---Advanced settings

Settings as shown:(Agent Auto-ignores localhost,127.0.0.1, developers need to be aware)

(2) Charles set, open the Charles Software, if the proxy port is not 8888, you need to modify,

4. After the configuration is complete, you can monitor the upstream and downstream of the traffic is exceeded, the specific operation is not to repeat.

(provides a shortcut that can be quickly removed by using ctrl+a,delete because of the number of Web pages that have been detected)

5. The next step is to provide a solution to traffic exceeding the standard, Tomcat since 5.0 provides a compression mechanism for the output content, enabling this feature can be a good solution to the problem of excessive traffic.

6.tomcat configuration:

To modify a node in%tomcat_home%/conf/server.xml:

<connector connectiontimeout= "20000" port= "8088" protocol= "http/1.1" redirectport= "8443"

Compression= "On"

Compressionminsize= "2048"

Compressablemimetype= "Text/html,text/xml,text/javascript,text/css,text/plain"/>

Description: compression= "On"//on enable compression, off for not enabled, force to compress all data

Compressionminsize= "2048"//when the minimum data size is exceeded for compression, set here to 2K, if not set to 2K by default

Compressablemimetype= "Text/html,text/xml,text/javascript,text/css,text/plain"//Configure the data class to be compressed, the default type is text/html,text/ XML, Text/plain

Other configurations:

nocompressionuseragents= "Gozilla,traviata"///which client requests are not compressed, default is no limit

Java Web traffic detection and solutions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.