Error server memory wildfly

0

I tried to import a 66 megabyte file, and gave this error in wildfly : Caused by: java.lang.OutOfMemoryError: Java heap space

In addition to including this setting in spring.

  

@Bean public MultipartResolver multipartResolver () {     CommonsMultipartResolver multipartResolver = new   CommonsMultipartResolver ();     multipartResolver.setMaxUploadSizePerFile (524288000);     multipartResolver.setMaxUploadSize (524288070);     multipartResolver.setDefaultEncoding ("UTF-8"); return   multipartResolver; }

I modified the file size on the server, as shown:

Understandthattheserverislowonmemory.

Iwenttothestandalone.conffileoftheserverandmodifieditfrom:

JAVA_OPTS="- Xms64m -Xmx512m -XX: MaxPermSize = 256m -Djava.net.preferIPv4Stack = true"    JAVA_OPTS="$ JAVA_OPTS -Djboss.modules.system.pkgs = $ JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless = true"

To:

JAVA_OPTS="- Xms1024m -Xmx2056m -XX: MaxPermSize = 2056m -Djava.net.preferIPv4Stack = true"    JAVA_OPTS="$ JAVA_OPTS -Djboss.modules.system.pkgs = $ JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless = true"

Do I still have the same error?

What can it be?

Server image.

    
asked by anonymous 11.04.2018 / 13:22

0 answers