Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OutOfMemory and StringBuilder
Message
From
13/01/2013 19:18:51
 
 
To
13/01/2013 17:46:11
General information
Forum:
ASP.NET
Category:
Troubleshooting
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01562245
Message ID:
01562405
Views:
29
>Funnily enough I just came across an article which may be of some interest regarding this problem:
>
>http://www.codeproject.com/Articles/24790/Faster-String-Building

Thanks for the reference

To obtain the highest performance, StringBuilder as is is still the fastest way. At least, this is what this article talks about. But, to be more secure, in regards to memory issue, his class is something to consider.

In my case, it is not something that is done on a very large string nor in a very large loop. I have a string with about 400 characters that I am calling my StrTran() method a few times to adjust, if necessary, certain words. But, due to the fact that the CPU was crowded, on that specific IIS worker process, it failed pretty much everywhere on several hits, including that location.

Now, as to know if this could have been the initial trigger. Probably not, but we never know until we can find and simulate the same situation again. My main concern is to make sure that the StrTran() method I am using is not accumulating something in memory. To my knowledge, I do not think it is.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform