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