Jump to content
McKay Development
Sign in to follow this  
dlclvlupbot

trade-offer-manager cookies memory leak?

Recommended Posts

sorry for taking too long to reply

so, I deleted everything from the directory and the directory itself

it is still running around 1.5-1.8gb ram eventhough there's literally no tradable items in the said account compared to the new account where I transferred all of the items, running the same script with just 300-500mb of ram(the buggy account is only run until saving trade-offer-manager cookies)

 

Share this post


Link to post
Share on other sites

is there a way to clear them up?

btw: here's my instance of tradeoffermanger

steamtrademanager = new TradeOfferManager({
 'steam': steam,
 'language': 'en',
 'pollInterval': 5 * 1 * 1000,
 'cancelTime': 1000 * 60 * settings.canceltime,// has value of 30
 'pendingCancelTime': 1000 * 60 * settings.pendingcanceltime // has value of 1
});

 

Share this post


Link to post
Share on other sites

Removing the language from the constructor will certainly reduce memory usage if that's a huge concern for you, but of course you'll lose item description data. If all you really need is the items' asset IDs, then that will work.

Edited by Dr. McKay

Share this post


Link to post
Share on other sites

is it possible to get item descriptions without specifying language in the constructor?

edit: 

Quote

Removing the language from the constructor will certainly reduce memory usage if that's a huge concern for you, but of course you'll lose item description data. If all you really need is the items' asset IDs, then that will work.

forgot about this

On 7/2/2020 at 8:36 AM, Dr. McKay said:

Keeping data about item descriptions in memory is going to use memory.

You can try lowering assetCacheMaxItems.

if I set it to 0 and i set a directory in dataDirectory, will it save me memory usage or 0 and 500 does not have much difference?

Edited by dlclvlupbot

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...