zoukankan      html  css  js  c++  java
  • tomcat nginx默许的post大小限制

    tomcat nginx默认的post大小限制
    执行大文件上传,或者,大数据量提交时,当提交的数据大小超过一定限制时,发现后台从request取值的代码request.getParameter("message")返回值为null,原因是因为服务器对于提交的post请求的大小有一定的限制

    tomcat:默认大小2097152,当maxPostSize=0时,不限制;maxPostSize=20971520时,为20M
    nginx:默认的最大请求body大小为8m,修改设置client_max_body_size=100m;
    resin:没有发现默认限制请求大小的地方!

    tomcat:maxPostSize


    The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).


    Nginx的"413 request entiry too large"

    tomcat返回400

    tomcat请求端口都加上maxPostSize="0"

  • 相关阅读:
    一、第一个小程序
    Golang学习笔记
    第四章 自上而下分析
    个人vim配置
    第三章 词法分析
    3.7 TCP拥塞控制
    3.6 拥塞控制原理
    3.5 面向连接的运输:TCP
    3.4可靠数据传输的原理
    3.3 无连接运输:UDP
  • 原文地址:https://www.cnblogs.com/interdrp/p/4939023.html
Copyright © 2011-2022 走看看