Click here to Skip to main content
15,895,792 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: code for compiler design PinPopular
jeron116-Mar-10 4:26
jeron116-Mar-10 4:26 
AnswerRe: code for compiler design Pin
josda100016-Mar-10 5:44
josda100016-Mar-10 5:44 
AnswerRe: code for compiler design Pin
Maximilien16-Mar-10 5:44
Maximilien16-Mar-10 5:44 
AnswerRe: code for compiler design Pin
Rajesh R Subramanian16-Mar-10 6:31
professionalRajesh R Subramanian16-Mar-10 6:31 
QuestionOwnerdraw listview with a fixed position background image. Pin
jieleiping15-Mar-10 23:58
jieleiping15-Mar-10 23:58 
AnswerRe: Ownerdraw listview with a fixed position background image. Pin
Eugen Podsypalnikov16-Mar-10 0:26
Eugen Podsypalnikov16-Mar-10 0:26 
GeneralRe: Ownerdraw listview with a fixed position background image. Pin
jieleiping16-Mar-10 22:06
jieleiping16-Mar-10 22:06 
QuestionProblem with parallel processing on a machine Pin
Llasus15-Mar-10 23:44
Llasus15-Mar-10 23:44 
Hi!
So I have posted this question a while back but has some additional information since I am still stuck on this problem. Here is what is supposed to happen on a server:
1) SQL Server receives request from a client
2) SQL Extended procedure launches DLL
3) Launcher DLL launches Server EXE
4) Server EXE executes Server DLL attached to it to process command

Now testing this on my environment (Windows XP Service Pack 3, Core 2 DUO @2.33GHz, 2GB of RAM) and another test server (Windows Server 2003 R2 Service Pack 2, Xeon CPU @3.0GHz, 3GB of RAM) by triggering the request event (from #1) 2x simultaneously works. The request is being handled in parallel by the server. I can see that there are different instances of Server EXE (#3) being created per request.

The problem is with another server environment that we have (Windows Server 2003 R2 Service Pack 2, Xeon CPU @2.5GHz, 3GB of RAM). No matter what happens, there is always 1 Server EXE being created (checked this through Process Explorer by Sysinternals) and for the next requests received, the machine just adds a new thread on the same existing Server EXE process (checked this through logs, GetCurrentProcessId and GetCurrentThreadId APIs). This is a problem, since there is only 1 Server EXE, that means that all threads are also sharing the attached Server DLL to it. Making the requests being processed sequentially instead of in parallel.

I have read about this and it seems to be a multi-tenant behavior on the machine but I don't know why the machine behaves that way. Anyone has any idea/clue on this problem? I'm on a dead-end right now. Thanks!

Note:
As an additional information, in Launcher DLL (in #3), here is an overview of the code being executed when called:
<br />
HRESULT hr = ::CoInitialize(NULL); //initialize COM Library<br />
.<br />
.<br />
ServerEXEPtr  ptrServerEXE; //Server EXE object instance<br />
hr = ptrServerEXE.CreateInstance(__uuidof(ServerEXEPtr)); //Create instance of Server EXE<br />
.<br />
.<br />
ptrServerEXE->ExecuteServerCommand(param); //Will call Server EXE's method<br />
ptrServerEXE.Release();<br />
.<br />
.<br />
::CoUninitialize();<br />

AnswerRe: Problem with parallel processing on a machine Pin
Eugen Podsypalnikov16-Mar-10 0:54
Eugen Podsypalnikov16-Mar-10 0:54 
GeneralRe: Problem with parallel processing on a machine Pin
Llasus16-Mar-10 1:29
Llasus16-Mar-10 1:29 
GeneralRe: Problem with parallel processing on a machine Pin
Eugen Podsypalnikov16-Mar-10 1:51
Eugen Podsypalnikov16-Mar-10 1:51 
GeneralRe: Problem with parallel processing on a machine Pin
Llasus16-Mar-10 3:53
Llasus16-Mar-10 3:53 
GeneralRe: Problem with parallel processing on a machine [modified] Pin
Eugen Podsypalnikov16-Mar-10 4:10
Eugen Podsypalnikov16-Mar-10 4:10 
GeneralRe: Problem with parallel processing on a machine Pin
Llasus16-Mar-10 16:11
Llasus16-Mar-10 16:11 
QuestionHow to find frame rate Pin
gmallax15-Mar-10 23:36
gmallax15-Mar-10 23:36 
AnswerRe: How to find frame rate Pin
Iain Clarke, Warrior Programmer15-Mar-10 23:39
Iain Clarke, Warrior Programmer15-Mar-10 23:39 
GeneralRe: How to find frame rate Pin
Cool_Dev15-Mar-10 23:47
Cool_Dev15-Mar-10 23:47 
GeneralRe: How to find frame rate Pin
Iain Clarke, Warrior Programmer15-Mar-10 23:59
Iain Clarke, Warrior Programmer15-Mar-10 23:59 
QuestionUnable to query value from registry Pin
Pryabu15-Mar-10 23:14
Pryabu15-Mar-10 23:14 
AnswerRe: Unable to query value from registry Pin
«_Superman_»15-Mar-10 23:35
professional«_Superman_»15-Mar-10 23:35 
GeneralRe: Unable to query value from registry Pin
Pryabu16-Mar-10 0:49
Pryabu16-Mar-10 0:49 
GeneralRe: Unable to query value from registry Pin
Eugen Podsypalnikov16-Mar-10 3:28
Eugen Podsypalnikov16-Mar-10 3:28 
AnswerRe: Unable to query value from registry Pin
Eugen Podsypalnikov15-Mar-10 23:37
Eugen Podsypalnikov15-Mar-10 23:37 
AnswerRe: Unable to query value from registry Pin
«_Superman_»16-Mar-10 0:56
professional«_Superman_»16-Mar-10 0:56 
AnswerRe: Unable to query value from registry Pin
David Crow16-Mar-10 3:25
David Crow16-Mar-10 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.