• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Setting Heap size

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23958
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
eat bricks! HA! And here's another one! And a tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic