Bailey Kessing

Memory issues

8 posts in this topic

I am running a server script periodically (every hour lets say) which does some database maintenance, uploads some files, etc. I do this on a number of Filemaker Servers (latest server version running on Windows machines) without problems…except for one server. On this server I use scriptmaster to up load some large files into containers as they are generated from scientific instruments. The problem is that the server runs seems to run out of RAM memory after a "few" days. I think this is the only thing that this server does differently than the other 4 servers and feel that this is the problem. My question is…is there a way to "flush" memory used by the plugin or by the FM server. Has anyone else experienced something similar or am I barking up the wrong tree? Thanks. 

Share this post


Link to post
Share on other sites

Well, if you load an image to memory, you may need to free it explicitly. Else more and more images will fill memory.

At least for MBS Plugin, you need to call the free methods on each image to remove it from memory.

1 person likes this

Share this post


Link to post
Share on other sites

Should I reset the plugin occasionally with smreset?

Share this post


Link to post
Share on other sites

What is smreset?

I just want you to check what functions you use, check the documentation, if they require a call of a cleanup function and call that as needed.

Share this post


Link to post
Share on other sites

Bailey,

Restarting the FileMaker Script engine may serve as a "flush".  You can do this by using the command "fmsadmin restart fmse -y" in powershell. SMReset will clear any loaded jars, variables, and registered functions that have been stored in memory. This may free up some memory for you but you will need to reload the jars, re-register the functions if/when you need them

Edited by ryan360Works

Share this post


Link to post
Share on other sites

Hmmmm. OK, Maybe I will see if restarting the script engine is needed or does the trick if SMReset doesn't. I am trying that tonight. Will report back. Thanks

And darn. I just noticed I posted this in the wrong forum. Sorry!!! Should be in the Scriptmaster forum. 

Share this post


Link to post
Share on other sites

So far so good…the SMReset seems to solve the memory issues I was having. A few more days of testing on the server will confirm it hopefully. 

Share this post


Link to post
Share on other sites

Everything seems OK. Thanks for input. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • By JeromeMaeckelbergh
      I am working already a few months on my file "DTW-new.fmp12" via the FM-server 15 on my MacBook Pro without problem and suddenly today this file can't be found anymore, although it is still on the server. But it shows that the status is "Closed", so I probably should change this to "Normal" or something else. Sorry for my ignorance, but I can't figure out how to do this. I tried with "open" and "open all", but this doesn't help me.
      Thanks for any help,
      Jerome

    • By sal88
      Hi all
      We have a web based tickets portal which creates new messages in our filemaker database - this is for customers' use. It does this using the PHP API (the website was developed by a third party). We would like the owners of tickets to be notified when the customer has added a message to one of the tickets that they are in charge of.
      Is there a way for filemaker/filemaker server to trigger a 'send email' script when a new record is created via the web portal? Or would it be simpler for this action to occur on the web side?
      Many thanks
    • By capsprojectos
      Hello,

      I have more than 10k executable files, each EXE export data to a single table, inside of an unique MySQL.

      I created a FM database to manage all data (ODBC), but I didn’t solve how to trigger a script from an external EXE, without looping for new data each minute.

       
      Questions:
      #01: There is way to trigger a script in an open database, without looping ?

      #02: Runtime solutions can be used with parameters?
      My best idea, at this time, is to create a runtime solution and a relationship, and call it from the EXE.  I do think is a "stupid idea" and there must be clever solutions out there.
       
      Thanks for all


       
      INFO: I am using windows 10 | FM Pro 15
    • By mcsebot
      I suspect this has been answered before but my searches aren't finding what I need.
      I have two databases and I'm linking fields from DB2 to the interface in DB1. I have external authentication going. When user connects to DB1 their asked for authentication for DB2. I don't what them to have access to DB2 and I don't want them to see DB2 as would happen if I were to even give them read only.
      I've setup the External Data Source between the two FileMaker databases. What might I be missing? I should be able to display data from other databases without giving the user read access to all the databases. 
      I hope you understand what I'm trying to say and thank you for any help.
      Where's my Boot-Camp,
      ~MCSEBOT
    • By Oyseka
      Hi all, I know this should be easy but I am not getting it right.

      The mail gets sent but no attachment