Uploading large files error to wildfly

后端 未结 4 666
悲哀的现实
悲哀的现实 2021-02-01 16:48

I try to upload large files(400mb+) to wildfly 8.1 and i get an IOException but i dont encounter any exception with the same conditions when using jboss 7 server:

Excep

相关标签:
4条回答
  • If your wildfly stands behind webserver, e.q. nginx, you may have to set the limit there. This helped me.

    0 讨论(0)
  • 2021-02-01 17:23

    see this link in jboss: https://issues.jboss.org/browse/UNDERTOW-185

    max-post-size in ../wildfly/stanadalone/configuration/standalone.xml will be set.

    0 讨论(0)
  • 2021-02-01 17:24

    It is not in "standalone.conf" file . It is "standalone.xml" file which is located in folder "standalone/configuration". change max-post-size :

    <http-listener name="default" socket-binding="http" redirect-socket="https" max-post-size="104857600"/>
                <host name="default-host" alias="localhost">
    
    0 讨论(0)
  • 2021-02-01 17:29

    I have found solution for this. I had this same issue and I solved it. It may help others.

    For allowing more http request header size you need to change standalone.xml file of jboss or wildfly.

    Add max-header-size attribute to default server and restart the server it will work Standalone.conf

    <subsystem xmlns="urn:jboss:domain:undertow:1.1">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="default" socket-binding="http" max-header-size="974247881"/>
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <filter-ref name="server-header"/>
                    <filter-ref name="x-powered-by-header"/>
                </host>
            </server>
    ...
    </subsystem>
    
    0 讨论(0)
提交回复
热议问题