473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebService Parameter Size Limit and Impact!

Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....sometimes
close to 20MB. Due to this my aspnet_wp.exe is hogging memory
exorbitantly...
aspnet_wp.exe mem usage goes to 500MB sometimes...on the server.
I am a bit worried about this....Can you guys suggest some design paradigms
or other tips for resolving this issue...
1. Is it OK to pass 20MB data in string object...(don't know other way to
pass data to WebSvc)?
2. How to free the string? (Had it been VC++ I would have deleted the mem
allocated but no clue here)
TIA
Nov 16 '05 #1
4 6933
Vai,

I think that 20MB for input into a method is a little excessive. What
is it that you are trying to do exactly? If it is an attachment of some
sort then you might want to look into using MTOM as the mechanism for
transporting such large pieces of data (the string is most likely encoded so
in a manner which will inflate what is uploaded). I believe (I am not
sure), that the WSE package supports this to some degree.

Also, you might want to consider writing a method which will take chunks
of data at a time, and then put them all together in a more efficient manner
on the server.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.com> wrote in message
news:ey****************@TK2MSFTNGP10.phx.gbl...
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....sometimes
close to 20MB. Due to this my aspnet_wp.exe is hogging memory
exorbitantly...
aspnet_wp.exe mem usage goes to 500MB sometimes...on the server.
I am a bit worried about this....Can you guys suggest some design paradigms or other tips for resolving this issue...
1. Is it OK to pass 20MB data in string object...(don't know other way to
pass data to WebSvc)?
2. How to free the string? (Had it been VC++ I would have deleted the mem
allocated but no clue here)
TIA

Nov 16 '05 #2
Thanks Nic.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ux*************@TK2MSFTNGP11.phx.gbl...
Vai,

I think that 20MB for input into a method is a little excessive. What
is it that you are trying to do exactly? If it is an attachment of some
sort then you might want to look into using MTOM as the mechanism for
transporting such large pieces of data (the string is most likely encoded so in a manner which will inflate what is uploaded). I believe (I am not
sure), that the WSE package supports this to some degree.

Also, you might want to consider writing a method which will take chunks of data at a time, and then put them all together in a more efficient manner on the server.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.com> wrote in message
news:ey****************@TK2MSFTNGP10.phx.gbl...
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....sometimes
close to 20MB. Due to this my aspnet_wp.exe is hogging memory
exorbitantly...
aspnet_wp.exe mem usage goes to 500MB sometimes...on the server.
I am a bit worried about this....Can you guys suggest some design

paradigms
or other tips for resolving this issue...
1. Is it OK to pass 20MB data in string object...(don't know other way to pass data to WebSvc)?
2. How to free the string? (Had it been VC++ I would have deleted the mem allocated but no clue here)
TIA


Nov 16 '05 #3
1 more question. If I use DIME technically I don't send the blob inside the
SOAP rather send a reference to the DIME Message, so anyway I do a heavy R/T
with my data over the wire- so DIME won't buy much to my case.
Problem is some folks are uploading large files >25MB into the system and we
have to validate these files using a WS. Right now File is read in a string
and validated with the WS (quick & easy solution)

Please advice.

TIA
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ux*************@TK2MSFTNGP11.phx.gbl...
Vai,

I think that 20MB for input into a method is a little excessive. What
is it that you are trying to do exactly? If it is an attachment of some
sort then you might want to look into using MTOM as the mechanism for
transporting such large pieces of data (the string is most likely encoded so in a manner which will inflate what is uploaded). I believe (I am not
sure), that the WSE package supports this to some degree.

Also, you might want to consider writing a method which will take chunks of data at a time, and then put them all together in a more efficient manner on the server.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.com> wrote in message
news:ey****************@TK2MSFTNGP10.phx.gbl...
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....sometimes
close to 20MB. Due to this my aspnet_wp.exe is hogging memory
exorbitantly...
aspnet_wp.exe mem usage goes to 500MB sometimes...on the server.
I am a bit worried about this....Can you guys suggest some design

paradigms
or other tips for resolving this issue...
1. Is it OK to pass 20MB data in string object...(don't know other way to pass data to WebSvc)?
2. How to free the string? (Had it been VC++ I would have deleted the mem allocated but no clue here)
TIA


Nov 16 '05 #4
Vai2000,

If the file size is too large, then I would break up the calls to the
web serivce among multiple calls, and then process the chunks as needed,
perhaps in a process outside of the ASP space, when all the chunks have been
uploaded.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Vai2000" <no****@microsoft.com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
1 more question. If I use DIME technically I don't send the blob inside the SOAP rather send a reference to the DIME Message, so anyway I do a heavy R/T with my data over the wire- so DIME won't buy much to my case.
Problem is some folks are uploading large files >25MB into the system and we have to validate these files using a WS. Right now File is read in a string and validated with the WS (quick & easy solution)

Please advice.

TIA
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ux*************@TK2MSFTNGP11.phx.gbl...
Vai,

I think that 20MB for input into a method is a little excessive. What
is it that you are trying to do exactly? If it is an attachment of some
sort then you might want to look into using MTOM as the mechanism for
transporting such large pieces of data (the string is most likely
encoded so
in a manner which will inflate what is uploaded). I believe (I am not
sure), that the WSE package supports this to some degree.

Also, you might want to consider writing a method which will take

chunks
of data at a time, and then put them all together in a more efficient

manner
on the server.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.com> wrote in message
news:ey****************@TK2MSFTNGP10.phx.gbl...
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....sometimes close to 20MB. Due to this my aspnet_wp.exe is hogging memory
exorbitantly...
aspnet_wp.exe mem usage goes to 500MB sometimes...on the server.
I am a bit worried about this....Can you guys suggest some design

paradigms
or other tips for resolving this issue...
1. Is it OK to pass 20MB data in string object...(don't know other way

to pass data to WebSvc)?
2. How to free the string? (Had it been VC++ I would have deleted the mem allocated but no clue here)
TIA



Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1610
by: ad | last post by:
I want to use WebServer to receive a DataSet from Client with internet. The DataSet is some bigger, there are 50 fields and about 50000 rows in it. Is it OK to do so? Will DotFrameWork or IIS...
7
5365
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
26
6209
by: Ed L. | last post by:
Here's some of my current notions on pgsql performance tuning strictly as it relates to pgsql tuning parameters in the context of a dedicated linux or hpux server. I'm particularly focusing on...
0
3443
by: Burton Wilkins | last post by:
Dear Authorities: I realize that in communicating with a Web Service, one is essentially passing a string as a parameter. Is there a limit over the Internet how long a parameter string can be?...
5
6446
by: Claudio Grondi | last post by:
I have just started to play around with the bsddb3 module interfacing the Berkeley Database. Beside the intended database file databaseFile.bdb I see in same directory also the __db.001...
3
5605
by: ningjun.wang | last post by:
I set outputcache to 30 minutes for all .aspx pages on my asp.net 2.0 websites. If a search engine (such as Google) crawl my site, it can hit thousands of pages within a few minutes and thus...
4
8254
by: Rahul B | last post by:
Hi, I was getting the error: sqlcode: -911 sqlstate: 40001 , which is "The maximum number of lock requests has been reached for the database." So i increased the locklist size to 200 from the...
4
8022
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
2
2107
by: Ian | last post by:
brunoalsantos wrote: DB2 (the engine) supports a 2MB statement size; however unfortunately the CLP does not. Sure, do it via an application. However, if your goal is truly just...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.