Re: Something like "ping" for windows messages.






"Peter Smithson" <Peter_Smithson@xxxxxxxxxxx> wrote in message
news:1165588630.886368.129140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Ajay Kalra wrote:

...
Alternatively, if its
busy doing some task (some long computation), it will receive the
message
until the task is complete.
OP
That's the point of my test. Is it busy?

SendMessgeTimeoput is best suited for this. This is how task manager
determines if a process is hung or not.



I am not aware of a tool which does this as I dont know what exactly you
achieve by doing this.

I'll explain a bit more.

It's a server process normally dealing with comunications to a few
clients (MFC apps on other PC's) and building HVAC controllers. There
is also a simple webserver built in. The webserver is going to be used
a bit more and I want to know what effect it will have on the response
time to the other services it provides (listening on other sockets).

I have a test web client that will constantly hit the port dealing with
http requests. As a guide to how responsive the server is going to be
for it's other tasks, I thought I'd see how quickly it could respond to
a windows message. If the webserver part is sending a large file,
will it block until the file is sent or is there code in there to pass
it out in chunks so it can still do it's other tasks? That's the kind
of thing I'd like to find out. Looking at the code will give me an
idea but I'd rather get some sort of measurement.

If it turns out that the sending a large file via http causes the
server to hang for long periods then I need to look at putting it on
another thread perhaps.

If you are doing all this in one thread, you will need to have a new thread
to even respond. I dont know how your setup is but typically a server will
not a window associated with it. So I am not sure what you mean by sending
it a window message.


I'd like to do other tests where the webserver is sending out a series
of small files. What effect will this have on the repsonsiveness of
the server? I need a good way of measuring it.

I dont know. I am not clear about your server setup. Does it have sockets to
communicate with client?


--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx



.



Relevant Pages

  • Re: Help files as CHM
    ... exceptions encountered by CDN apps. ... Unfortunately the 'Server Too ... Busy' exception is provided by the ASP.NET runtime, ... Why not bypass the .NET scipting and let the webserver handle large ...
    (borland.public.delphi.non-technical)
  • Re: Running profiler on busy 8-cpu Sql Server
    ... I also regularly use it on VERY busy servers nearly always without ... I think it's also worth saying that you should introduce Profiler gradually ... SQL Server MVP ... > SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: How to customize "server too busy" error page?
    ... or implement a redirect into that page - no matter where in the ... without any options to customze / hide it. ... .Net Framework 1.1 also delivers the "server too busy" message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Running profiler on busy 8-cpu Sql Server
    ... * I regularly run Profiler on VERy busy servers. ... where customers have told me 'theres no way to run Profiler, our server is ... SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: Something like "ping" for windows messages.
    ... busy doing some task, ... It's a server process normally dealing with comunications to a few ... is also a simple webserver built in. ... idea but I'd rather get some sort of measurement. ...
    (microsoft.public.vc.mfc)