July 3, 201510 yr Newbies I'm using a custom Plugin made with ScriptMaster 4 Advanced in Server-side scripti on FileMaker Server 13/14. The Plugin logs the record in "360Plugins_ServerScripting64.log" file on every event, not only registration function but also all functions. So the size of the log gets huge. Is there any way to keep this file small or to stop logging?
April 4, 20169 yr I'm also wondering about this, it got to 7gb and has grown to 50mb over a few hours. (it is called every minute however) Edited April 4, 20169 yr by sal88
April 5, 20169 yr Are you registering the plugin each time you call the server script?? This is the root of your problem afaik. There is no need as the JVM is bound to the Server. If gets reset when the script engine is restarted, and only then do you need to re-register any functions..
April 5, 20169 yr Ah yes that is correct, have disabled that script step. So would that mean I would have to register the plugin if the server/filemaker service is restarted? If so how?
April 5, 20169 yr Author Newbies http://docs.360works.com/index.php/Plugin_registration Note:When executing scripts via FileMaker server or in Web Publishing, it is best practice to have your registration function calls at the beginning of every script that is going to run plugin functions. This will ensure that the instance of the plugin that is instantiated for that script is registered.
April 7, 20169 yr No, I think ( and have reported several l times ) that the SMgetregisteredModules bit of code only works the first time you call it after resetting the plugin, thereafter it returns nothing, so we have taken to creating a function SMisLoaded to be called and if it is then do not bother to go through re-loading everything. I suggest the same approach here with built plug-in too. If your function is in registered then you do not need to redo the register steps. Even if this reduces down to needed to be refreshed once an hour, this is a 60fold decrease in teh need to wirte to your log file. Woudl be really helpful to get a 360works answer here, as mine are purely anecdotal. When you close FileMaker it is then closed.. If you run a scirpt in teh server,filemaker doesnt close, but it does run the startup script each time you open a new session with a perform script on server. but as you can have two of these runnign simultaneously, then it makes no sense that the JVM required is some how multiplied, or trashed on completion.... john
April 14, 20169 yr After a restart of the server I enabled the register script step in the start up script for the initial scheduled run. After that I disabled it. Now the log file is 140mb - that's over the space of 2.5 hours. So even without the registration step the log file is growing very quickly.
May 5, 20169 yr This is causing headaches now. The following log files have grown to 7gb over just a couple of weeks: C:\Program Files\FileMaker\FileMaker Server\Logs\360Plugins_ServerScripting64.log C:\Windows\Temp\360out1193738757296079708.log There have been more than one in the Windows\Temp folder, but they were able to be deleted. Both files are locked also. The register script step has been disabled. My other server plugin does not cause this problem. Any ideas?
May 5, 20169 yr I disabled all Java logging (http://docs.360works.com/index.php/Plugin_log_files) So far so good!
Create an account or sign in to comment