NowSMS loading cpu at 30-40% with no messages

NowSMS loading cpu at 30-40% with no messages SearchSearch
Author Message
Don Rosen
New member
Username: Dr10

Post Number: 8
Registered: 10-2008
Posted on Saturday, December 05, 2009 - 04:06 pm:   

I'm running v2008.06.03 on a Win 2003 3 Ghz CPU with 2 GB memory. smsgws.exe has started showing constantly high cpu loads even when no messages are being queued. Not using Norton.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1500
Registered: 08-2008
Posted on Monday, December 07, 2009 - 09:02 pm:   

Hi Don,

Are you sure there are no messages at all queued?

It does sound like NowSMS is trying to process something.

What can you tell me about your configuration?

Historically, we've seen more of this type of issue with MMSC.EXE, so I don't have any real good guesses here.

My suspicion would be that there is a message file that has somehow become stuck ... manually look at the "Q" directory beneath the NowSMS directory for files that may be stuck.

Similarly the "SMS-IN" directory is a place to look.

Are there any files in those two directories?

--
Des
NowSMS Support
Don Rosen
New member
Username: Dr10

Post Number: 9
Registered: 10-2008
Posted on Monday, December 07, 2009 - 10:02 pm:   

Hi Des,

There are files in both those directories, but I don't know what you mean by stuck. In each case the most recent file is from yesterday afternoon, but smsgws.exe is currently running at up to 60% cpu load and there are definitely no messages queued. This is an intermittent problem as there were times yesterday and Saturday when the loading was much lower. However smsgws.exe is always showing significant load even when there are no messages queued. I'd expect something for keep-alive with the SMSC we're connected to, but certainly not this.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1506
Registered: 08-2008
Posted on Monday, December 07, 2009 - 10:24 pm:   

Hi Don,

I'm not sure what I mean by stuck either ... a corrupt file or something.

Open a command prompt window and change directories into the Program Files\NowSMS\Q directory. Issue this command:

dir /s > ..\dirq.txt

Then do the same thing from the Program Files\NowSMS\SMS-IN directory, just change dirq.txt to a different name like dirin.txt.

The output from those commands will create files in the Program Files\NowSMS directory. Attach those files in reply here, and hopefully that will give me a clue.

From the CPU utilisation, it sounds like NowSMS is repeatedly trying to process something. These directories are scanned frequently, so I'm hoping this will point to a solution.

--
Des
NowSMS Support
Don Rosen
New member
Username: Dr10

Post Number: 10
Registered: 10-2008
Posted on Tuesday, December 08, 2009 - 05:54 pm:   

Hi Des,

there were close to 100k files in the SMS-In directory dating back a year. I deleted most of them and the problem went away. Any way of preventing this?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1523
Registered: 08-2008
Posted on Wednesday, December 09, 2009 - 04:23 pm:   

That would explain it Don.

The only way to avoid this is to either disable NowSMS from receiving messages for the connection.

Or configure a 2-way command that processes the messages. (NowSMS deletes the message after it has been processed by a 2-way command.)

--
Des
NowSMS Support