Syringe.Net.Nz
Irregular Injection of Opinion
RSS 2.0|Atom 1.0|CDF

 Monday, May 10, 2004
When XML goes bad......

Now I've always been a bit of a fan of XML......

I've written books on it...
Spoken @ Universities and other tech tiki tours around it...
...hell.... I've even got the number plate....

But there are some things that just should not be dne with XML..... one of these things is using it for writing bloody log files....

Nick (Kognition Senior Dev type guy) and I sat down this afternoon with one goal in mind..... find out why the %$^&$ our elegant and superbly architected Web Services layer was causing the ASPNET_WP process to consumer hundereds of megabytes of memory on most of the development team PCs.

The culprit was WSE. Some developer, somewhere in the evil empire, had decided that it would be a good idea to have the WSE implementation of WS-Security write to an XML log file every time something happens- this is great for debugging thought we, so it was duly turned on. Of course this developer didn't do it the elegant way as suggested by Dare, oh no... they commited the ultimate sin.... loading the whole bloody log file into a DOM (read in memory tree structure) simply to append a line... and doing it on each request of course.

The result is performance on par with a G.W. Bush press conference and a MASSIVE memory footprint. So, Mr Evil Empire dev..... do the nice thing and change the way logging works...

OK... so to recap for Google searchers who need to know about this problem in the future.

WSE has an XML based logging function. It causes the ASP.NET worker process to consume large amounts of memory. This also causes the Web Service request to be extremely slow. So.. don't enable logging.....

.NET|Monday, May 10, 2004 4:09:20 AM UTC|Comments [18]|    
Wednesday, February 15, 2006 4:31:46 PM UTC
1
Wednesday, February 15, 2006 4:43:57 PM UTC
2
Friday, June 23, 2006 6:05:25 AM UTC
mortgage
Saturday, July 15, 2006 7:27:51 AM UTC
home equity loan
Wednesday, July 19, 2006 5:06:22 AM UTC
http://hoodia-gordonii-np.blogspot.com/ http://hoodiasideeffects-np.blogspot.com/ http://hoodiadietpill-np.blogspot.com/
Martha
Thursday, July 20, 2006 5:08:43 PM UTC
hello! http://nissan-sentra-np.blogspot.com/ http://nissan-xterra-np.blogspot.com/ http://nissan-altima-np.blogspot.com/ http://nissan-350z-np.blogspot.com/
Dorothee
Friday, July 21, 2006 4:37:17 AM UTC
home equity loans
Saturday, July 22, 2006 8:59:25 AM UTC
home equity line of credit
Tuesday, July 25, 2006 8:44:18 AM UTC
debt consolidation
Saturday, August 05, 2006 7:50:48 AM UTC
refinance
Tuesday, August 08, 2006 8:17:02 AM UTC
home equity loans
Saturday, August 12, 2006 8:42:33 PM UTC
refinance
Sunday, August 13, 2006 8:26:33 AM UTC
home mortgages
Sunday, August 13, 2006 8:57:24 AM UTC
home loans
Sunday, August 13, 2006 9:31:37 AM UTC
debt consolidation
Friday, August 18, 2006 7:26:14 PM UTC
home equity line of credit
Sunday, August 20, 2006 8:39:50 AM UTC
refinance
Tuesday, August 22, 2006 5:33:40 AM UTC
home equity loans
Comments are closed.