I have clients that need to post 30MB of xml data. The data is in binary form and is heavily encrypted. The client hit to my servlet running on tomcat, then i get the data via
Servlet request.getParameter("_xmldata");
The problem is, it takes around 25seconds just to move the 30MB data to a String variable. So in my head, there are two questions:
1) Why is it the case?
2) Is there anyway i can improve this? (apart from getting the user to send via FTP / SSH)
Server Environment:-
- CPU: Quad Core Xeon 5540
- Server Memory: 4GB
- Tomcat Heap: 2GB
- Harddisk : 500GB