java - Tomcat request.getParameter("_xmldata") takes 25second for 30MB data -



java - Tomcat request.getParameter("_xmldata") takes 25second for 30MB data -

i have clients need post 30mb of xml data. info in binary form , heavily encrypted. client nail servlet running on tomcat, info via servlet request.getparameter("_xmldata");

the problem is, takes around 25seconds move 30mb info string variable. in head, there 2 questions:

1) why case?

2) there anyway can improve this? (apart getting user send via ftp / ssh)

server environment:-

cpu: quad core xeon 5540 server memory: 4gb tomcat heap: 2gb harddisk : 500gb

i'm going wager guess getparameter method still waiting on necessary info within request received. confirm monitoring server wireshark.

all required http request headers have been received, plenty server start processing request. 1 time phone call getparameter, still waiting entire "field" received. check bandwidth between client , server. highly uncertainty it's cpu issue (nothing you'd need quad core for).

you confirm placing little test text fields both before , after _xmldata field in request. read these fields around _xmldata. i'm guessing attempting read lastly encounter same delay you've been observing.

(i'd cautious how you're receiving binary info through request parameter - , furthermore, moving string variable. i'm hoping it's encoded base64 encoding...)

java tomcat getparameter

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -