• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

size of post data? ways of sending large data?

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by krisp prasad:
very urgent, please

Please read this.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic