Looks like a bug with DelayQ

Looks like a bug with DelayQ SearchSearch
Author Message
Alexandre
Frequent Contributor
Username: Alexd

Post Number: 153
Registered: 01-2008
Posted on Saturday, April 02, 2011 - 06:53 pm:   

Hello support!

I tested the pending messages. I have created more than 500 thousand message DelayQ. When it comes time to send a message system (Windows 2003) and the NowSMS completely hangs. Rebooting the system helps in part, only if you delete messages from Q.

I tried the test with an empty Q and Q when there were more than 100,000 messages. The same result. I think there is some kind of exception handling DelayQ, which leads to collapse.

I think you should carry out two tests.
1. When the DelayQ more than 300-400 thousand messages.
2. When the Q more than 200,000 messages (since I noticed that a large number of messages in Q, NowSMS and the system begins to behave is not stable, there is a lot of timeout `s)

Are there any recommendations on the number of files in DelayQ?
Might be worth to provide a restriction on the number of files in one folder in DealyQ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3077
Registered: 08-2008
Posted on Monday, April 04, 2011 - 10:47 pm:   

Hi Alexandre,

Do you have "Separate outbound message queues for each user" enabled on the "SMS Users" page?

If you do not, then problems most definitely will occur with a large number of queued messages. (Windows does not like a large number of files in a directory, and the operating system will become non-responsive.)

That said, there may be an issue specific to the DelayQ directory where if you queue up many messages all for release at the same time, separate directories are not properly created, and all messages will be put in a single directory. I'm investigating this.

--
Des
NowSMS Support
Alexandre
Frequent Contributor
Username: Alexd

Post Number: 154
Registered: 01-2008
Posted on Tuesday, April 05, 2011 - 11:48 am:   

Yes this function "Separate outbound message queues for each user" was enabled. Value is 20

Yes i know what Windows does not like a large number of files in directory, but what if many of them for example? Maybe there is some protective mechanism to break into several folders of files if more than 50 thousand?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3105
Registered: 08-2008
Posted on Friday, April 15, 2011 - 04:12 pm:   

As long as "Separate outbound user queues" is enabled, there is logic to create multiple directories for every 10000 messages submitted by a user account.

However, this logic is only triggered if the current outbound message queue (excluding delayed messages) exceeds 10000 messages (so as to prevent unnecessary directory creation).

The problem is that the delayed message queue size is not taken into consideration. So if a user submits a large batch of messages with the same release date/time, and the outbound queue is not busy, this triggers a directory size problem.

NowSMS has been updated to always use the extra directory logic for the DelayQ. An update has been posted to http://www.nowsms.com/download/nowsms20110411.zip.

--
Des
NowSMS Support