Jump to content

custom heap-size settings do not work


This topic is 4014 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I need some more heap-space (espacially for Scriptmaster, but I think its a general problem of the plugins).

I tried the method described here: http://docs.360works.com/index.php/Heapspace_Out_of_Memory_Error but unfortunally it doesn't work. The heap stays on 96M.

With a short look in the plugin-logfiles it seems to me, that the custom value is overwritten by the plugin:

 

 

(C++ Thu Jan 17 14:57:39 2013)  *** INIT for 360Works FTPeek_FMAdvanced at Thu Jan 17 14:57:39 2013, headless mode 0, appTypeShort 0
(C++ Thu Jan 17 14:57:39 2013) Found JVM dll at C:Program FilesJavajre6binclientjvm.dll
(C++ Thu Jan 17 14:57:39 2013) No existing JVM found; creating one.
(C++ Thu Jan 17 14:57:39 2013) Found custom memory file, -Xmx256m
(C++ Thu Jan 17 14:57:39 2013) 0: -Xmx256m <--- he uses the file's parameter
(C++ Thu Jan 17 14:57:39 2013) 1: -Djava.class.path=noclasspath
(C++ Thu Jan 17 14:57:39 2013) 2: vfprintf
(C++ Thu Jan 17 14:57:39 2013) 3: -Xbootclasspath/a:C:Program FilesJavajre6libdeploy.jar;C:Program FilesJavajre6libplugin.jar;C:Program FilesJavajre6libjavaws.jar
(C++ Thu Jan 17 14:57:39 2013) 4: -Djava.ext.dirs=C:Program FilesJavajre6libext;C:Program FilesJavajre6lib;C:Program FilesJavajre6libdeploy;C:WINDOWSSunJavalibext;
(C++ Thu Jan 17 14:57:39 2013) 5: -Xmx96m <--- seems like it overwrites my value..
(C++ Thu Jan 17 14:57:39 2013) JVM started successfully - jvm references is..

 

 

In this example, the JVM was created by FTPeek and with Scriptmaster it looks the same (tested this by disabling FTPeek).

 

To me this looks like a general bug... does anybody know if there is a fix or a workaround??

Link to comment
Share on other sites

  • 2 weeks later...

Paja,

 

Which version of Windows are you using? Do you have the most recent versions of the plugins? Is this FileMaker Server or FileMaker Pro?

 

I was unable to recreate this issue on my mac; however, I'm still waiting to test on windows server 2008 R2. In the mean time, you should officially report this as a bug so we can get your entire log file.

 

After you encounter the problem, go to FileMaker preferences -> plugins tab -> highlight one of the 360Works plugins, and click on 'configure' Then you can click the 'report a bug' button. Fill out the information, and the bug will be submitted to our internal bug tracking system. This will allow us to investigate a little further and keep you updated with any progress we make.

 

Cheers!

Link to comment
Share on other sites

Paja,

I dug around in our plugin code where the JVM is created, and I found out that an older version of most all of our plugins were doing what you're describing now. This has been fixed, and a freshly downloaded copy from 360works.com should solve all your problems. In fact, I suggest using the 360Works AutoUpdater to update all of your plugins to make sure this doesn't happen again.

 

Cheers

Link to comment
Share on other sites

  • 1 month later...

Hi Will,

 

thank you for the hint. With the newest version of FTPeek it worked like a charme (and I think it will do with the other plugins too).

 

 

Regards,

Patrick

 

 

PS: Sorry for the late reply, much to do here....

Link to comment
Share on other sites

  • 2 months later...
  • Newbies

Hi,

first of all: Thank you for this great ScriptMaster-PlugIn!

Unfortunately it still doesn't work on my new System (FM12-Server, FM12-Client on 64bit Windows 7, ScriptMaster 4.134)

if the program has to handle bigger images.

The "memorysize"-file seems to be read but ignored.

Without a "memorysize"-file i get the same error.

 

I had no problems on my old System (FM10-Server, FM10-Client on 32bit Windows XP, ScriptMaster 4.132) without a "memorysize"-file.

 

Here is the log:

(C++ Tue May 21 11:02:59 2013) INIT - Creating new log file
(C++ Tue May 21 11:02:59 2013)  *** INIT for 360Works ScriptMaster_FMPro at Tue May 21 11:02:59 2013, headless mode 0, appTypeShort 1
(C++ Tue May 21 11:02:59 2013) Found JVM dll at C:Program FilesJavajre7binclientjvm.dll
(C++ Tue May 21 11:02:59 2013) No existing JVM found; creating one.
(C++ Tue May 21 11:02:59 2013) Found custom memory file, -Xmx1024m
(C++ Tue May 21 11:02:59 2013) 0: -Xmx1024m
(C++ Tue May 21 11:02:59 2013) 1: -Djava.class.path=noclasspath
(C++ Tue May 21 11:02:59 2013) 2: -Djava.net.preferIPv4Stack=true
(C++ Tue May 21 11:02:59 2013) 3: vfprintf
(C++ Tue May 21 11:02:59 2013) 4: -Xbootclasspath/a:C:Program FilesJavajre7libdeploy.jar;C:Program FilesJavajre7libplugin.jar;C:Program FilesJavajre7libjavaws.jar
(C++ Tue May 21 11:02:59 2013) 5: -Djava.ext.dirs=C:Program FilesJavajre7libext;C:Program FilesJavajre7lib;C:Program FilesJavajre7libdeploy;C:WINDOWSSunJavalibext;
(C++ Tue May 21 11:02:59 2013) 6: -Xmx96m
(C++ Tue May 21 11:02:59 2013) JVM started successfully - jvm references is 1609609368
(C++ Tue May 21 11:02:59 2013) Call finished
(C++ Tue May 21 11:02:59 2013) URL to load plugin from is file:///C:/Users/powl/AppData/Local/FileMaker/FileMaker Pro/12.0/Extensions/360Works_ScriptMaster.fmx
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge initLogging
CONFIG: Will write normal log file to C:Userspowl360Works360Plugins_FMPro.log
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge initWindows
CONFIG: Loading dynamic library at C:UserspowlAppDataLocalFileMakerFileMaker Pro12.0Extensions360Works_ScriptMaster.fmx
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge initWindows
CONFIG: Loading plugin jar at C:UserspowlAppDataLocalFileMakerFileMaker Pro12.0Extensions360Works_ScriptMaster.fmx
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge getPluginClassNameForPluginJar
CONFIG: Loading Plugin class named com.prosc.beanshell.BeanShellPlugin
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge <init>
INFO: 360Works custom SecurityManager has been installed
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge loadVersion8Lib
CONFIG: version 8 lib is null, will not load
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge fmxInit
INFO: Creating shared PluginBridge instance / plugin bridge version 1.66
bundlePath: C:UserspowlAppDataLocalFileMakerFileMaker Pro12.0Extensions360Works_ScriptMaster.fmx
jvm version: 23.5-b02 from C:Program FilesJavajre7 - JAVA_JVM_VERSION is null
Operating system info: Windows 7 6.1 running on x86 architecture
Temp directory: C:UserspowlAppDataLocalTemp
Mai 21, 2013 11:02:59 AM com.prosc.fmkit.PluginBridge fmxInit
CONFIG: Initialize 360Works ScriptMaster
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.Plugin init
CONFIG: Created new plugin instance: com.prosc.beanshell.BeanShellPlugin named 360Works ScriptMaster; version: 4.134
Mai 21, 2013 11:03:00 AM com.prosc.license.client.Registration checkLicense
INFO: Registered successfully with demo license; will run for two hours after launch.
Mai 21, 2013 11:03:00 AM com.prosc.license.client.Registration checkLicense
INFO: Expiration date Tue May 21 13:03:00 CEST 2013
Mai 21, 2013 11:03:00 AM com.prosc.beanshell.BeanShellPlugin init
INFO: Registered with hard-coded license key
Mai 21, 2013 11:03:00 AM com.prosc.beanshell.BeanShellPlugin customizeFunction
INFO: Function PluginFunction{name='EvaluateGroovy', functionID=28121, minArgs=null, maxArgs=1} runs in swing
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMLoadJar', functionID=-32667, minArgs=null, maxArgs=1}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMReset', functionID=29931, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMGetRegisteredModules', functionID=-16535, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMVersion', functionID=-12574, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMLastError', functionID=26664, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='EvaluateGroovy', functionID=28121, minArgs=null, maxArgs=1}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMSetVariable', functionID=-3516, minArgs=null, maxArgs=2}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMGetVariable', functionID=-28360, minArgs=null, maxArgs=1}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMLastStackTrace', functionID=-4147, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='RegisterGroovy', functionID=6991, minArgs=2, maxArgs=-1}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMGetLoadedJars', functionID=-15591, minArgs=null, maxArgs=0}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge registerFunction
INFO: PluginBridge{instanceID=55312384} registering PluginFunction{name='SMCreatePlugin', functionID=-2359, minArgs=null, maxArgs=7}
Mai 21, 2013 11:03:00 AM com.prosc.fmkit.PluginBridge fmxInit
CONFIG: Return VERSION_CURRENT: 51
(C++ Tue May 21 11:03:00 2013)  *** INIT finished with result 51
Mai 21, 2013 11:03:38 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMLoadJar on thread main ===
Mai 21, 2013 11:03:38 AM com.prosc.beanshell.BeanShellPlugin loadClassesAndRegisterModules
INFO: Loaded modules lib at file:/C:/Users/powl/AppData/Local/Temp/ScriptMaster_powl/ScriptMaster6738240180023436820itextpdf-5.1.1.jar
Mai 21, 2013 11:03:39 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMLoadJar on thread main ===
Mai 21, 2013 11:03:39 AM com.prosc.beanshell.BeanShellPlugin loadClassesAndRegisterModules
INFO: Loaded modules lib at file:/C:/Users/powl/AppData/Local/Temp/ScriptMaster_powl/ScriptMaster515368463291242800bcmail-jdk16-146.jar
Mai 21, 2013 11:03:39 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMLoadJar on thread main ===
Mai 21, 2013 11:03:39 AM com.prosc.beanshell.BeanShellPlugin loadClassesAndRegisterModules
INFO: Loaded modules lib at file:/C:/Users/powl/AppData/Local/Temp/ScriptMaster_powl/ScriptMaster1429885401281004705bcprov-jdk16-146.jar
Mai 21, 2013 11:03:39 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMLoadJar on thread main ===
Mai 21, 2013 11:03:40 AM com.prosc.beanshell.BeanShellPlugin loadClassesAndRegisterModules
INFO: Loaded modules lib at file:/C:/Users/powl/AppData/Local/Temp/ScriptMaster_powl/ScriptMaster5810136843829586462FMJavaFunctions.jar
Mai 21, 2013 11:03:40 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMSetVariable on thread main ===
Mai 21, 2013 11:03:40 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMSetVariable on thread main ===
Mai 21, 2013 11:03:40 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMSetVariable on thread main ===
Mai 21, 2013 11:03:40 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMSetVariable on thread main ===
Mai 21, 2013 11:03:40 AM com.prosc.fmkit.PluginBridge initAwt
INFO: Initialized AWT successfully from Thread[main,5,main]
Mai 21, 2013 11:03:41 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function EvaluateGroovy on thread AWT-EventQueue-0 ===
Mai 21, 2013 11:03:50 AM com.prosc.fmkit.PluginContext evaluateExpression
WARNING: evaluateExpression called from non-FileMaker thread: Thread[AWT-EventQueue-0,6,main]
Mai 21, 2013 11:04:00 AM com.prosc.fmkit.Plugin setLastError
SEVERE: PluginFunction PluginFunction{name='EvaluateGroovy', functionID=28121, minArgs=null, maxArgs=1} got an error with converted args [  import org.cci.filemaker.pdf.ReportCreator;  ReportCreator rc = new ReportCreator();  rc.createPDFReport(outFile, fmpro.getContainerStream( fieldName ), vals, pass,  true);  ]
java.lang.OutOfMemoryError: Java heap space
	at com.itextpdf.text.Image.getInstance(Image.java:729)
	at com.itextpdf.text.Image.getInstance(Image.java:788)
	at org.cci.filemaker.pdf.ReportCreator.insertImage(ReportCreator.java:163)
	at org.cci.filemaker.pdf.ReportCreator.createPDFReport(ReportCreator.java:56)
	at org.cci.filemaker.pdf.ReportCreator$createPDFReport.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at Script1.run(Script1.groovy:1)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
	at com.prosc.beanshell.BeanShellModel.evaluateGroovy(BeanShellModel.java:163)
	at com.prosc.beanshell.BeanShellPlugin.EvaluateGroovy(BeanShellPlugin.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.prosc.fmkit.StaticFunction.invoke(StaticFunction.java:231)
	at com.prosc.fmkit.Plugin.invokeFunction(Plugin.java:333)
	at com.prosc.fmkit.RegisterablePlugin.invokeFunction(RegisterablePlugin.java:77)
	at com.prosc.fmkit.Plugin.invokeFunctionNoErrors(Plugin.java:314)
	at com.prosc.fmkit.PluginBridge$3.run(PluginBridge.java:1067)
	at com.prosc.fmkit.PluginBridge$5.run(PluginBridge.java:1163)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

Mai 21, 2013 11:04:00 AM com.prosc.beanshell.BeanShellPlugin setLastError
SEVERE: ScriptMaster bound variables: Parameters:
{ ... }
Mai 21, 2013 11:04:00 AM com.prosc.fmkit.PluginBridge$3 run
CONFIG: === Executing plugin function SMLastError on thread main ===
(C++ Tue May 21 11:04:23 2013) *** DO PREFS ***
Mai 21, 2013 11:04:23 AM com.prosc.fmkit.PluginBridge$2 run
CONFIG: Configuring com.prosc.beanshell.BeanShellPlugin@168e0e7

Please help.

Thanks and Regards,

Paul

Link to comment
Share on other sites

This topic is 4014 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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