| NowSMS high CPU usage |
|
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ |
◄ ► |
| Author | Message | |||
| Acette Support Frequent Contributor Username: Mathewm Post Number: 181 Registered: 04-2011 |
Hi, We have a situation where NowSMS is having high CPU usage. The environment is running Windows Server 2022 and NowSMS version v2024.02.16. Despite increasing the server cores from 8 to 16, the "smsgws" process continues to utilize nearly 50% of the CPU during idle conditions when there are no messages in the queue. We understand that low queue depth can occasionally affect performance. Currently, we have five users with separate queues and a defined queue depth of 20. No users are assigned to a priority queue. The application is also configured with two SMPP connections. Could you please provide suggestions on what may be causing this or what specific settings we should investigate? | |||
| Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8613 Registered: 10-2002 |
Hi, I’d suggest scanning the NowSMS directory structure looking for any build up of files. One ssue that comes to my mind is if the system is primarily send only and not actively processing inbound messages, the SMS-IN directory can fill up with files and produce unexpected high CPU. If you don’t see any build up of files under the NowSMS directory, what happens if you restart the service? Does the high cpu load return? Immediately or does it take some time to return to high CPU? Regards, Bryce | |||
| Acette Support Frequent Contributor Username: Mathewm Post Number: 182 Registered: 04-2011 |
Hello Bryce, We had a look at the NowSMS directory as you suggested. We see almost 950 folders which are old and have files with ".bad" extension inside them. These also keep adding. Otherwise the folder looks normal with no build-up. All inbound messages are processed. The CPU load immediately returns as soon as the service is restarted. Is it safe to delete these files without stopping the services? Also is there any mechanism to prevent the buildup of BAD files or periodically remove them? Thanks. | |||
| Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8614 Registered: 10-2002 |
Hi Mathew, It is safe to delete these ".BAD" files. They are inbound messages where the HTTP 2-way command to process the message returned an error response. The 2-way command is not retried. because it is possible that the message as processed. I'm not confident that deleting these files will reduce the CPU load significantly, but I do find this file build up suspicious and a possible culprit. Regards, Bryce | |||
| Acette Support Frequent Contributor Username: Mathewm Post Number: 183 Registered: 04-2011 |
Hi Bryce, The ".BAD" files indeed were the culprits. We deleted these files and the CPU usage was back to normal. Thanks for suggesting this. Regards, Mathew | |||
| Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8617 Registered: 10-2002 |
Thanks for the follow-up Mathew. Our team is investigating why this causes high CPU usage so that this problem can be avoided with future updates. Regards, Bryce | |||

