Profiling a Web Service

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
MikeB
Posts: 7
Joined: Wed Dec 05, 2007 6:43 pm

Profiling a Web Service

Post by MikeB » Thu Sep 04, 2008 5:23 pm

So I'm trying to figure out what the best way is to profile a web service. I am quite sure I have identified a leak, but I don't know which way to go about checking on it. It's a Web Service (not a web app) running in IIS. I get different results when I profile it as an asp process than I do when I profile it as a regular process that I attach to. Is there another thread(s) on this subject? Is garbage collection in a web service different than in a regular .net process? I found stuff in the manual that talks about profiling a windows service, but not a web service.

Thoughts?

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Fri Sep 05, 2008 3:01 pm

If the Webservice in running is IIS you should start ASP.NET profiling using IIS. Then you will need to activate the ASP.NET and the Webservice somehow, e.g. by invoking Webservice methods.

Now you should be able to profile the process as usual, e.g. collect snapshots and make comparisons to identifity possible memory leaks.

Even though the GC works a bit differently in a server process compared to a normal application, the result of a GC should not differ (i.e. all unreachable instances will be collected when a full GC is performed). In what way do you get different results?

One thing that should be noted is that slightly different data will be presented when collecting a snapshot from an attached process compared to when doing normal profiling. When attaching, no GC is performed before the snapshot, so there might be additional instances in the snapshot (e.g. instances that should be finalized).
Best regards,

Andreas Suurkuusk
SciTech Software AB

Eagedewaype
Posts: 1
Joined: Sat May 30, 2009 7:56 pm

Profiling a Web Service

Post by Eagedewaype » Wed Jun 03, 2009 5:02 pm

Hello
Im new in As400 and Im trying to develop a small program to invoke an web service that is another machine.
How can I do this using java? What libraries do I need to have? Any documentation?
Do you know if I can do it using RPG or another AS400 language?
Thanks a lot,
Rui

порно бесплатное

секс клип

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests