Problem with Queue in 2009rc

Problem with Queue in 2009rc SearchSearch
Author Message
Alexandre
Posted on Thursday, May 14, 2009 - 12:40 pm:   

Hello! We have probs in NowSMS 2009.03.17
When Queue is more then 55000 messages, NowSMS restarting every 3 minutes and luging... How resolve this prob ? Coz now must archiving paths when Queue is more then 50 or 55k...
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 794
Registered: 08-2008
Posted on Thursday, May 14, 2009 - 03:08 pm:   

Update to 2009.05.08 at the same URL link ... http://www.nowsms.com/download/nowsms2009rc.zip.

There was a restart problem that we found which involved a problem processing unresolvable delivery receipts. That may be the issue that you are facing.

If that does not resolve your problem, as a temporary fix, please try downgrading to NowSMS 2008.

--
Des
NowSMS Support
Alex Kaiser
New member
Username: Alex_k

Post Number: 14
Registered: 07-2006
Posted on Thursday, May 14, 2009 - 03:55 pm:   

Hello!

We also faced such problem in all NowSMS releases. If queue exceed of about 50 000 messages and you don't have fast enough outbound SMSC links - NowSMS starts rapidly reboots. I'm not sure that it caused unresolvabled delivery receipts. Some errors in software logic.

Regards,
Alex K
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 797
Registered: 08-2008
Posted on Friday, May 15, 2009 - 12:26 pm:   

That's the first I've heard of this issue.

There is a configuration parameter that might provide a work-around. Under the [SMSGW] header of SMSGW.INI, add OldRoutingLogic=Yes.

This will have a negative performance impact, but it disables some caching of message queue information ... and this cache is the only part of the software that would care how many messages are in the queue.

--
Des
NowSMS Support
Alex Kaiser
New member
Username: Alex_k

Post Number: 15
Registered: 07-2006
Posted on Monday, May 18, 2009 - 01:30 pm:   

Hello again!

I think we have found some issue, if you set up routing like that:
[SMPP - XXX:YYY]
RoutePrefOnly=Yes
Route1=+???????*
Route2=!+44????*
AllowedUserOnly=Yes
AllowedUser1=test_user1
AllowedUser2=test_user2

[SMPP - XXX:YYY#2]
RoutePrefOnly=Yes
Route1=+???????*
Route2=+44????*
AllowedUserOnly=Yes
AllowedUser1=test_user1
AllowedUser2=test_user2

If users submit messages to UK (+44) and we have restrict access to UK on 1st connection (Route2=!+44????*) seems it has very strange influnce on performance, speed decreased X4 on 1st connection and after q reached 50k NowSMS starts reboots rapidly. Could you please check that issue? When we have changed routing - situation normalized.

Regards,
Alex K.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 815
Registered: 08-2008
Posted on Tuesday, May 19, 2009 - 01:59 pm:   

Hi Alex,

I'm seeing the performance issue, but I'm not seeing the restarts with a large queue.

I'm trying different configurations to look for clues, but there must be something still that I am missing.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 816
Registered: 08-2008
Posted on Tuesday, May 19, 2009 - 02:07 pm:   

I take that back ... I did just have the problem occur ... now to find the pattern.
Alex Kaiser
New member
Username: Alex_k

Post Number: 16
Registered: 07-2006
Posted on Tuesday, May 19, 2009 - 04:41 pm:   

Hello

Could you confirm that issue connected with restricted route(Route2=!+44????*)? or it is general performance issue?

Regards,
Alex K.
Alexandre
New member
Username: Alexd

Post Number: 3
Registered: 01-2008
Posted on Thursday, May 21, 2009 - 07:41 am:   

Any news ?
Bipin Chandra
New member
Username: Xbipin

Post Number: 3
Registered: 05-2009
Posted on Thursday, May 21, 2009 - 10:43 am:   

nowsms doesnt start as service under winxp
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 817
Registered: 08-2008
Posted on Thursday, May 21, 2009 - 02:38 pm:   


quote:

nowsms doesnt start as service under winxp




I need more details on this ... any error messages?

I suggest you create a new thread with more details on the specific problem that you are experiencing.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 818
Registered: 08-2008
Posted on Thursday, May 21, 2009 - 03:08 pm:   

After many hours, I finally do have some updated information on this.

As expected, the OldRoutingLogic=Yes parameter did provide a work-around, but at a very severe performance penalty.

The best way to recreate this problem is to connect to an SMPP server that has a very low enquire link timeout requirement.

It is possible to trigger the problem in scenarios with higher timeouts, depending on computer speed, hard disk speed, and overall message queue size.

But I had the best success replicating the problem by connecting to SMPP servers with low enquire link timeouts.

The problem is not necessarily related to the "!" routes. But when there are more routing conditions defined, it does take longer to evaluate them.

The problem occurs when there are a large number of messages queued, but one or more connections are ineligible to process any (or very few) of the messages.

After establishing an SMPP connection, NowSMS begins scanning for messages that are eligible for routing via that connection. During that scan, no enquire link timeouts are sent.

If the SMPP connection drops before either NowSMS finds a message to send or the scan is complete, a logic error triggers the restart.

We're in the process of fixing the logic error that triggers the restart, and the error that prevents the enquire link from being sent.

There are a few more tests to run, but I should be able to post an update within the next 24 hours, maybe 12 hours. The fix appears to have minimal impact on internal logic, so at this point we're not expecting it to introduce any new problems.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 819
Registered: 08-2008
Posted on Thursday, May 21, 2009 - 06:50 pm:   

Update on this issue.

I've gone ahead and updated the download at the following link with an update to address this issue:

http://www.nowsms.com/download/nowsms2009rc.zip

If the installer reports a date earlier than May 21, 2009 ... then you may need to clear the cache in your browser in order to get a fresh download.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 4
Registered: 01-2008
Posted on Friday, May 22, 2009 - 09:36 pm:   

Big Thanks! We testing now...seems all good :-)
Alex Kaiser
New member
Username: Alex_k

Post Number: 24
Registered: 07-2006
Posted on Friday, July 03, 2009 - 10:50 am:   

Hello,

Seems that issue is not fixed completely, if queue exceeds 100k, nowsms doesn't reboot but freezes for 3-5 rapidly. CPU load goes from 95-99% to 3% and we see that statistics doesn't updates for that period. We test 20090630 realize. Please advise where could be a problem.

Regards,
Alex K.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7823
Registered: 10-2002
Posted on Friday, July 03, 2009 - 04:44 pm:   

Hi Alex,

Hmm....

I think you might be facing a different issue.

Edit SMSGW.INI, and under the [SMSGW] header, add CacheQSize=Yes

This setting has no effect on the server itself .. . it affects the front end configuration interface.

The configuration interface does a periodic scan of the message queue. When the queue is very large, this scan can cause problems ... the scan seems to eat up Windows resources which severely slows down file i/o from the server process.

This setting disables the configuration interface from performing this scan. Instead, it reads information from the server process.

I'm not sure why we haven't made this setting a default.

-bn