473,795 Members | 2,805 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....someti mes
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 6950
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.co m
"Vai2000" <no****@microso ft.com> wrote in message
news:ey******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....someti mes
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.c om> wrote in
message news:ux******** *****@TK2MSFTNG P11.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.co m
"Vai2000" <no****@microso ft.com> wrote in message
news:ey******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....someti mes
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.c om> wrote in
message news:ux******** *****@TK2MSFTNG P11.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.co m
"Vai2000" <no****@microso ft.com> wrote in message
news:ey******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....someti mes
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.co m

"Vai2000" <no****@microso ft.com> wrote in message
news:OM******** ******@TK2MSFTN GP09.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.c om> wrote in message news:ux******** *****@TK2MSFTNG P11.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.co m
"Vai2000" <no****@microso ft.com> wrote in message
news:ey******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi All, I have a Websvc which exposes a method for validation. The
validation string coming in is significantly large at times....someti mes 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
1639
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 compress the tream when transferring?
7
5406
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 filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
26
6282
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 the shared_buffers setting. I invite any corrective or confirming feedback. I realize there are many other hugely important performance factors outside this scope. One key aspect of pgsql performance tuning is to adjust the memory ...
0
3456
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? Or can the string be of an unlimited length, and is then simply divided up into packets? Is there a danger of loosing data if the string being passed in a parameter
5
6467
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 __db.002 __db.003 files where
3
5625
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 produce a large amount of page caches. This could use a lot of memory and impact other websites running on the same machine. My question is: how can I limit the memory size (e.g. to 100MB) used by the cache? I can set the following in web.config:
4
8268
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 default value of 100. I wanted to know what other effects it will have on the database? Like, will the performance reduce, if the locklist size is 200 and 120 locks are on it as compared to when the locklist size is 130 and 120
4
8062
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 potentially dangerous Request.Form value was detected from the client (myparam="<root><blah...."). --- The fix used for ASPX pages is to include the @Page directive with
2
2117
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 inserting large amounts of data
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10443
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2921
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.