High CPU from high amount of LCK files

High CPU from high amount of LCK files SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through August 22, 2012 » High CPU from high amount of LCK files « Previous || Next »
Author Message
Chris
Frequent Contributor
Username: Chrisc

Post Number: 61
Registered: 12-2008
Posted on Thursday, February 16, 2012 - 01:39 pm:   

Hi guys

We've been noticing lately that our CPU usage gradually increases during the course of the day. Today for example, we're running at an average of 50% for each of our SMS Servers, which we believe is attributable to a high amount of LCK files.

Usually when we see this type of behaviour, our sending rates are hitting its maximum throughput rate so it's completely understandable that a high CPU will be observed under these conditions.

From what we're seeing, approximately 80% of all the LCK files are from one of our SMPP users. The others haven't done much activity today, but we believe the high CPU and high amount of LCK files are related.

We have begun to notice the high CPU since the last version change of NowSMS (version 2012.02.03), but our last version (version 2011.09.22) did not exhibit this behaviour.

We're unable to comment on whether or not a high amount of LCK files were present on the older version, but the CPU was near on idling levels so I'm presuming not.

Is there any way you guys can help us out with this and reduce the CPU usage?

Thank you

Regards
Chris
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3792
Registered: 08-2008
Posted on Thursday, February 16, 2012 - 09:01 pm:   

Hi Chris,

We are investigating. I am seeing a similar problem with a large buildup of LCK files on a test system.

Nothing is supposed to have changed about how these files are handled. (They are used to ensure all parts of a multipart message get routed through the same SMSC connection.)

I expected to have some more information by now, but I don't yet.

All I can say right now is that this is a priority for us to resolve and/or explain.

--
Des
NowSMS Support
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8015
Registered: 10-2002
Posted on Thursday, February 16, 2012 - 11:27 pm:   

Hi Chris,

Sorry, this is a bug. We changed the order of processing to tweak some extra speed for async SMPP connections.

However, this broke the more immediate cleanup of these .LCK files. When they are no longer relevant, they should remain on the system no longer than 15 seconds (slight delay to allow for slight delays in transmission from client submissions).

There was a backup process that would remove them after approximately 4 hours, however that would leave far too many present on a busy system.

I have posted an update at http://www.nowsms.com/download/nowsms20120216.zip.

I have also replaced recent downloads with this version to try to minimize impact of people downloading affected versions.

-bn

Login Login / Register Logout Logout Search Last 30 Days Topics Topics