A
A
Avvero2014-04-30 12:05:52
Angular
Avvero, 2014-04-30 12:05:52

Spring MVC - how to solve large file upload problem?

I use:
- ubuntu
- Tomcat (-Xmx10240m -XX:PermSize=1024m, maxThreads="500")
- SpringMVC
- package org.apache.commons.fileupload in dispatcher to accept file
- angular [$upload] ( https://github .com/danialfarid/angular-file-upload) I
write the file to the server like this:

FileItem item = (парсю реквест HttpServletRequest и получаю файл);
File uploadedFile = new File(filePath, item.getName());
item.write(uploadedFile);

Actions:
Try to upload 16 500mb files at the same time asynchronously.
Received result:
Files are loaded without problems, but the server slows down terribly, even forms are not loaded in another tab of the browser.
Expected result:
Normal operation of the application in other tabs, for other clients.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question