Jump to content

Recommended Posts

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.

  • Like 1

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

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 JMart
      Hi gurus,
      I am sure I’m missing something simple, but for the life of me I can’t figure this out. I have a database with tickets. What I want is when a new ticket is created I want to see a popover (see attached) then I want the user to type in the top box and as they type I want to filter the list below (a portal) and once they client is shown they would select it and a ticker is created for the client. I sound a script and modified to fit my needs but can’t get it to work. Can someone stretch a helping hand?
      BTW the filtering is working but its not reflecting in the popover its reflecting on the layout.


    • By GisMo
      I think there was some instructions somewhere, but I cannot find them .
      I have a created local file and server file. Both contain the exact same data. I want to deploy this solution, but I want to avoid a massive first-time sync.
       
      How can I avoid a massive first-time sync?
    • By Hoytopher
      Hi all,
      I'm an FM novice who has a functioning database, and I'm trying to add layers of functionality to it. One feature I'm trying to design is a script to search through a Gmail outbox with certain keywords.
      In URLs, "%" translates to "%25". Filemaker appears to do this automatically - In Gmail syntax, you need to write "in%3Asent" to have the Gmail search bar contain "in:sent" which searches my outbox. Here's my current code for Go to URL:
      This "%" bit translates to "%25". I've tried "\%", I've tried creating a string, x, then having it open x, but no matter what I cannot get "%" to show up as-is, it always translates to "%25". Is there any way around this? I've tried subtracting text, but I just can't seem to get it to work. Any bright ideas? I can't find an answer to this specific question of disabling URL string substitution.
    • By Carlo Oldani
      I have the need to setup a mirrosync so to keep updated a duplicate db of a 4D served application so to further send out some data to a mysql application, someone have already made some experience in keep synched 4D and FMS? I'm truly newbie in this ... thanks in advance and sorry for bad english. BR Sincerely
       
      Carlo
    • By Milerfake
      IMPORTANT - I am currently installing Filemaker Server 16 on a desktop PC running Windows 7 Pro. I know that it is not ideal, but I havent been given clearance on using the Windows 12 server computer..
       
      After the files have been installed for Filemaker 16 Server,
      I am given a 1920 Error from Windows stating that I might not have the correct privileges to start the services.
      This cause the installer to cancel and rollback.
      I have updated bonjour, updated Java to the latest version, I have made sure that all the windows updates have been installed. I disables the DEP and I start using the setup.exe file found in the file folder of the Filemaker Setup folder.
      If anyone has encounter this issue before and knows or has any suggestions on what course of actions to try next, I will be very appreciative on thier help.
      I will also append to this if i find the solution.
       
      Currently in the process of uninstalling bonjour, java and the C++ files, restarting the PC and reinstalling the server files again.
      kind regards
×

Important Information

By using this site, you agree to our Terms of Use.