Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Base64 Convert and BinaryWrite

Status
Not open for further replies.

nicklieb

Programmer
Oct 17, 2002
383
GB
Hi all,

I have a curious problem. I have written an application that in classic ASP, that books an item into a database, there is an interaction between the application and UPS to get a shipping label.

The label is returned via XML as a 46k Base64 character string.

What then happens is that this then convert on the fly to show on the next page.

Within the asp i use an img tag with the src pointing to the .NET app ( using c#).

What happens then is the CPU usage maxes out ( process w3wp.exe), when the string is converted and the using BinaryWrite to output.

The has a whole impact the whole server.
I'm scratching my head and have done a few searches trying to find out what can cause the CPU to max out. as of yet I do not know..

Could it be that the base64 string is very large and takes alot to do the number crunch? or is it the BinaryWrite that has the impact?

 
Have you tried debugging the app as this should show you where you are having problems (i.e. you should be able to see which function is taking the longest to execute).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
yes debugged it using the Visual Studio.

The strange thing is, that I do not get this on my dev machine XP sp2, only on the production 2003 server..
 
Have you tried adding tracing to the page to see how long it takes on the production server (you can use Trace.Warn before and after each function call to add your own message to the trace)?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
You can use Windows PerfMon (start | run | perfmon.exe) to see if you have unusually high garbage collections (it's one of the counters under the .net section).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top