How do I find the culprit? Rogue processes

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

How do I find the culprit? Rogue processes

Postby totallyobjects » Sat Jul 17, 2010 12:38 pm

I have a web connection package running and just recently it has started to play up. I have resolved most of the issues - mainly to do with the fact that I forgot to close a socket!

Anyway, things have been fine with the memory being maintained within a 3mb margin for sometimes hours on end with the processor activity - as shown by the task manager flicking between 0 to 1 - 2%. The total processor time grows at about 3 - 4 minutes an hour. All seems fairly normal. Then all of a sudden, the processor activity for the VAST program climbs to 50% and the processor usage time grows in real time. All web activity ceases so the customers can't get any response.

What I could do with knowing, if anyone can help, is how do I find out what is happening and what is taking the processor power. When I invoke the Debugger and look at the processes there, nothing seems to be much different from the startup situation.

Anyone have any thoughts how I can track down what is taking the power?

Thanks in advance.

David
totallyobjects
[|]
 
Posts: 27
Joined: Wed May 27, 2009 12:57 am

Re: How do I find the culprit? Rogue processes

Postby waynej » Sun Jul 18, 2010 5:31 am

Years ago one installation of our product was suddenly pegging the CPU. It turned out it was because we were taking a string that came into the system and sending #abtAsNumber to it. Try this for example:
'1E123456' abtAsNumber

But the question is how did we find it. Luckily the product was running as a Windows service. And it's very hard for a service to not notice a request to stop. We had code in the shutdown method to dump stacks of all processes to a file if a certain file was in place. When we got the stack we saw some innocent code down in #abtAsNumber on a stack but realized given the above string it essentially locks up the image.
waynej
 
Posts: 32
Joined: Wed Apr 18, 2007 9:18 am

Re: How do I find the culprit? Rogue processes

Postby totallyobjects » Thu Aug 05, 2010 4:48 am

We have worked out a bit what is going on but still can't understand why or why it should suddenly be aproblem when ther system has been running in this form for 4 years.

It seems that the abtwsac.exe that manages the interaction with the use starts but then freezes. Hence, when we look at the Task manager, we see processor usage climb to 50% and then a list of abtwsac programs all running. The only way out is to kill VAST and to restart the program. This is happening sometimes up to 5 times a day.

I have thought about using ISAPPI but can't get that to work.

Any ideas?

david
totallyobjects
[|]
 
Posts: 27
Joined: Wed May 27, 2009 12:57 am

Re: How do I find the culprit? Rogue processes

Postby waynej » Thu Aug 05, 2010 4:52 am

It's pegging the CPU, running some code. You have to figure out what code it is running. So it's not a Windows Service, so my suggested trick can't be used?
waynej
 
Posts: 32
Joined: Wed Apr 18, 2007 9:18 am

Re: How do I find the culprit? Rogue processes

Postby wembley » Thu Aug 05, 2010 8:31 am

I've just posted AbxProcessPeek to VAStGoodies -- it might help you find the culprit.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest