Solved

DCOM Server Hangs

Posted on 2001-08-14
16
433 Views
Last Modified: 2007-12-19
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
0
Comment
Question by:mh_14
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 2
  • +1
16 Comments
 
LVL 3

Expert Comment

by:Diveblue
ID: 6385365
Are you sure you've eliminated circular references??
0
 

Expert Comment

by:ratantata
ID: 6385910
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
 

Expert Comment

by:ratantata
ID: 6385914
you can kill the DCOM process thru the task manager.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:rkot2000
ID: 6388445
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
 
LVL 5

Expert Comment

by:rkot2000
ID: 6388464
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
 

Author Comment

by:mh_14
ID: 6389279
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
 
LVL 5

Expert Comment

by:rkot2000
ID: 6389290
Can you explain for the ?dead request??
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 6389308
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
 

Author Comment

by:mh_14
ID: 6389481
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
 
LVL 5

Expert Comment

by:rkot2000
ID: 6389521
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
 
LVL 5

Expert Comment

by:rkot2000
ID: 6389527
You are not using global multi use ?
0
 

Author Comment

by:mh_14
ID: 6389621
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
 

Author Comment

by:mh_14
ID: 6389628
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
 
LVL 5

Expert Comment

by:rkot2000
ID: 6389636
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
 
LVL 5

Accepted Solution

by:
rkot2000 earned 100 total points
ID: 6389808
0
 

Author Comment

by:mh_14
ID: 6472651
It Works Now.Sorry For Late Response.I'm really apologize for that.
Thanks rkot200.I really appreciate your response.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question