• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Heap size

 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using VC++ client to get the data from servlet. When i am trying to get the data from VC++ client its showing like you have received 8KB only where as i am trying to get 20KB.
I think if I set the Heap size of the server appropriately then this problem would be solved. Just need to know how to set the Heap size of the server.

regards
Prashanth
Thanks in advance
 
Henry Wong
author
Marshal
Pie
Posts: 21427
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the heap size of the web server have anything to so with the amount of data that a servlet (running in the server) sends? Is the web server running out of memory, and exiting before the servlet can send the full 20k?

Henry
 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


Actually the problem is I am getting 20kb of data as whole.But I am getting it in the 8KB slots. I want it to be happen in a 20kb slot.

regards
Prashanth
Thanks in advance
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you can control the amount of data you receive from a socket. What you get is a cumulation of the various network layers.
 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Generally the TCP/IP packet size is 8 KB, is there any possibilyt that we can change the TCP/IP packet size to somewhere around 20KB, If this is possible where do i need to configure this on the server or in the program.

regards
Prashanth
Thanks in advance
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prashanth Chandra:
Hi
Generally the TCP/IP packet size is 8 KB


It is substantially less than that:
a TCP/IP node can send small amounts of data (typically less than 1500 bytes) with no difficulty, but transmission attempts with larger amounts of data hang, then time out.

Adjusting IP MTU - Cisco.com
There is no way to change packet size programmatically. Even if there were, other network layers can chop up the packet they are handling as needed.
Why is this a problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic