1
Is there a setting for limiting memory usage?
Question asked by James Richards - 9/9/2014 at 6:24 AM
Answered
We recently upgraded our SmarterStats instance and now have encountered an issue where the upgrade forces a reprocessing of all our sites (80+). This was crashing the server and currently I have all sites paused and am kicking off the reprocess of the sites one site at a time. This seems to work except for that we have one very large site that is causing the SSSvc.exe to consume all available memory to the point of very poor performance. I would like to enforce a limit on how much memory this service can use. Is this possible with the software? Version 9.1
 
Currently I do NOT have this running on it's own separate server and resources are being shared by other services. The memory on this server is 12 gigs and I do not have the option to increase memory at this time. Really hoping there is a way to throttle the memory consumption back.

5 Replies

Reply to Thread
1
Steve Reid Replied
Smartermail should be running on it's own server.
 
I am not aware of any options for limiting memory usage.
0
James Richards Replied
Thank you Steve, understood.
0
Steve Reid Replied
The conversion process is very disk I/O intensive, and can take a little while to complete.
 
You can also clone your installation to another less utilized server to complete the file structure upgrade. Then just clone it back.
1
Employee Replied
Employee Post Marked As Answer
Hey James,
 
As of right now there is not a way to go about limiting memory for the SmarterStats service.  As Steve mentioned, the upgrade process does take some time and require disk I/O.  One suggestion I could make would be to take a look at the SSSvc logs and see if one site in particular is being processed for an extended amount of time.  You could pause that single site and allow the others to process as normal.
0
James Richards Replied
Thank you for your suggestions. However in looking at my logs there are some entries I am not sure about, these entries are in regard to one specific site I seem to be unable to reprocess. It seems to be stuck on one day for this site in question. I was wondering what your thoughts on the reason.
 
14:28:02 (Recalculate2_For_39)
   =================================================================================================
   System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at ICSharpCode.SharpZipLib.Zip.Compression.Streams.OutputWindow.CopyOutput(Byte[] output, Int32 offset, Int32 len)
   at ICSharpCode.SharpZipLib.Zip.Compression.Inflater.Inflate(Byte[] buffer, Int32 offset, Int32 count)
   at ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadInt32()
   at SStatSvc.LogFiles.Smarter.SessionItemRecord.Load(BinaryReader reader)
   at SStatSvc.LogFiles.Smarter.SessionFileReader.Load(DateTime day, SiteSettings details)
   =================================================================================================
   (11643 Used/77 Free)
14:28:02 (Recalculate2_For_39)
   =================================================================================================
   System.Threading.ThreadAbortException: Thread was being aborted.
   at SStatSvc.LogFiles.Smarter.SessionFileReader.Load(DateTime day, SiteSettings details)
   at SStatSvc.LogFiles.Smarter.SmarterLogFile.Open(DateTime day, FileAccess access)
   at SStatSvc.Threads.TaskThreadCalculateStats.#tid(DateTime , SiteLogFile& , DateTime )
   =================================================================================================
   (11643 Used/77 Free)
14:28:25 (Recalculate2_For_39)
   =================================================================================================
   System.Threading.ThreadAbortException: Thread was being aborted.
   at SStatSvc.Threads.TaskThreadCalculateStats.#rid()
   at SStatSvc.Threads.TaskThreadCalculateStats.DoWork()
   =================================================================================================

Reply to Thread