DCOM Server Hangs

Hi!We were using DCOM  on WinNT 4.0(SP 6.0).I installed through normal procedure like dcomcnfg.By Some Reason One request from Client hangs & didn't respond back.Client shut down application but DCOM Still stays there & using 50 % Memoery usage.
I have two question
How to Kill that DCOM Process without Reboot NT BOX??
I can't reboot as Application runs 24/7.
Why it happent?(Is it Application Problem or Server Problem??)I found one Possible reason(I'm Sure)that All Client Using Same Sign On all Four PC Which may cause due to some Concurrency Problem.May Be.

Any Idea??
Thanks
mh_14Asked:
Who is Participating?
 
DiveblueCommented:
Are you sure you've eliminated circular references??
0
 
ratantataCommented:
One reason why the DCOM server hangs could be that it still thinks that the client is holding references to it, directly or indirectly.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
ratantataCommented:
you can kill the DCOM process thru the task manager.
0
 
rkot2000Commented:
i think you have circular references,because dcom is 'very smart' it pings client form a server every ## seconds and if 3 pings are lost - client  -is dead time to unload server process.
0
 
rkot2000Commented:
check your code for resume. I saw this before. developer forgot to remove resume in the error hand so it was like this

sub xyz

dim x
on error goto Error_



exit sub
Error_
 resume
Exit sub
0
 
mh_14Author Commented:
I tried to kill from task manager.Access Denied.
I already eliminated circular ref.
How to Kill Dead request??It still using 50% Memory usage.
thanks
0
 
rkot2000Commented:
Can you explain for the ?dead request??
0
 
rkot2000Commented:
you can use  kill.exe to kill any process.

H:\>kill /?
Microsoft (R) Windows NT (TM) Version 3.5 KILL
Copyright (C) 1994 Microsoft Corp. All rights reserved

usage: KILL [options] <<pid> | <pattern>>

           [options]:
               -f     Force process kill

           <pid>
              This is the process id for the task
               to be killed.  Use TLIST to get a
               valid pid

           <pattern>
              The pattern can be a complete task
              name or a regular expression pattern
              to use as a match.  Kill matches the
              supplied pattern against the task names
              and the window titles.

H:\>
0
 
mh_14Author Commented:
I'm Sorry but I should write as Request Send By Client hangs on server(Not a Dead Request).Is it User Related Problem?
Thanks rkot2000
I will try to Kill it.
0
 
rkot2000Commented:
you can add some code to post messages to a file from server.
like :
starting function a ...
calling function b ...
exeting function b ....

this may help to locate a problem.

do you have this problem with every request ?
did you check loop statements?

usually if you have circular references or forgot to unload a form cpu ~ 0% ,since you have ~ 50 % it's doing something you shoud test your code.

can you start two vb applications on your pc and debug it?



0
 
rkot2000Commented:
You are not using global multi use ?
0
 
mh_14Author Commented:
I'm using Global Multi use.I also Debug with Two VB Application & Work Fine.I dont have any Form in DCOM.I dont have problem with ever request.Since Its working 24/7 Clien send request frequently & it work.But within last seven days I saw One Request was Ideal for 22 Hours & Use 50 % Usage.We are still using it right now but By Some Reason One request didn't respond correctly & hang that request.I also checked my Code I have Default Connection Time Out.
0
 
mh_14Author Commented:
I'm using Global Multi use.I also Debug with Two VB Application & Work Fine.I dont have any Form in DCOM.I dont have problem with ever request.Since Its working 24/7 Clien send request frequently & it work.But within last seven days I saw One Request was Ideal for 22 Hours & Use 50 % Usage.We are still using it right now but By Some Reason One request didn't respond correctly & hang that request.I also checked my Code I have Default Connection Time Out.
0
 
rkot2000Commented:
1. Global Multi use is very very bad idea. you can't control your objects.

2. check this :

GlobalMultiUse Class Does Not Terminate in Multithreaded Environment

http://support.microsoft.com/support/kb/articles/q300/8/50.ASP?LN=EN-US&SD=gn&FR=0&qry=activex%20exe&rnk=1&src=DHCS_MSPSS_gn_SRCH&SPR=VBB



0
 
mh_14Author Commented:
It Works Now.Sorry For Late Response.I'm really apologize for that.
Thanks rkot200.I really appreciate your response.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.