In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Cause description:
Due to business requirements, customers need to do customer mining analysis on previous customers in stages, including customer consumption records, consumption content, customer basic information and other behavior operations. The front-end behavior analysis method required by customers is to show as much data as possible on a page. Due to the browser capacity problem, the final negotiation with the customer shows 2000 lines of records and 40 fields on one page. And the displayed field content has problem feedback and other text descriptive content, and then the content is updated and submitted to the server, and then check the update result. Due to the large data capacity of the submitted and displayed page, the relevant information can not be displayed, resulting in the page report: 413 Request Entity Too Large error message.
, as follows:
The syntax for intercepting SQL in the corresponding part is as follows:
This problem will not occur in our test environment, because our local test environment accesses tomcat directly, while the production environment accesses different tomcat through nginx and cluster distribution, then the problem is the nginx configuration problem.
Problem analysis:
Because the business client request uses the post method of HTTP to submit data, and the submission request data nginx has a limit on the client request body size, "content-length". If the set value is exceeded, the client will receive an error of 413 Request Entity Too Large, resulting in the front-end browser cannot display the data normally.
Since we show a maximum of 2000 entries and 40 fields at the front end, we set the following size to solve the problem:
Client_max_body_size 20m
Note: client_max_body_size defaults to 1m. Setting the size to 0 means that checking the body size of the client request will be disabled and the size will be set according to the actual business requirements.
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.