aspose file tools*
The moose likes Servlets and the fly likes size of post data? ways of sending large data? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "size of post data? ways of sending large data? " Watch "size of post data? ways of sending large data? " New topic
Author

size of post data? ways of sending large data?

krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
what's the maximum size of post data. because i send a bunch of data, for example, from an 100*30 grid. only a maximum of 50-60 rows can be sent to my Action, above which the java stops execution at ActionServlet, throws OutOfMemoryException, and my Action never gets called. so i chose another way, formed an xml string and sent it to my struts Action. but xml parsing, i think, is a performance overhead. is there any other way by which large amount of data can be sent...Ajax? but still my primary question is what's the size of post data. very urgent, please

have a nice day.
krishna prasad g


have a great day,
krishna prasad
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Originally posted by krisp prasad:
very urgent, please

Please read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

If you are running out of memory, changing the data format isn't going to solve anything. You need to give more memory to the JVM.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
What happens to the data after your application gets it? Does it all need to be in memory at one time or can you process it line by line.

The "Action" approach is really designed for form data processing where the memory requirements for keeping the entire POST is not a problem.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: size of post data? ways of sending large data?