Servoy 7.4.4 -error executing event -out of memory exception

Forum to discuss the Web client version of Servoy.

Servoy 7.4.4 -error executing event -out of memory exception

Postby sovanm » Thu May 21, 2015 2:56 pm

Hello,

Today I have updated servoy server from 7.4.3 to 7.4.4. It is up and running for 6 hours. Now in server log I saw an entry
Code: Select all
ERROR [http-80-20] com.servoy.j2db.util.Debug - error executing event [email protected]2e7dd45


I am not sure what is this error is about. This solution was running fine in 7.4.3 and even previous version as well. Someone can guide me please what leads to this exception.

Please see the complete log below.
Code: Select all
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Unknown Source)
   at java.lang.String.<init>(Unknown Source)
   at java.lang.StringBuilder.toString(Unknown Source)
   at org.mozilla.javascript.CharSequenceBuffer.append(CharSequenceBuffer.java:36)
   at org.mozilla.javascript.Interpreter.do_add(Interpreter.java:3132)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1325)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:824)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1277)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1144)
   at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:1056)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:284)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:250)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:244)
   at com.servoy.j2db.ui.BaseEventExecutor.fireChangeCommand(BaseEventExecutor.java:174)
   at com.servoy.j2db.server.headlessclient.dataui.WebDataComboBox$3.run(WebDataComboBox.java:453)
   at com.servoy.j2db.server.headlessclient.EventsRunnable.run(EventsRunnable.java:58)
   at com.servoy.j2db.server.headlessclient.WebClient.executeEvents(WebClient.java:566)
   at com.servoy.j2db.server.headlessclient.dataui.WebEventExecutor.handleEvent(WebEventExecutor.java:446)
   at com.servoy.j2db.server.headlessclient.dataui.WebEventExecutor.onEvent(WebEventExecutor.java:427)
   at com.servoy.j2db.server.headlessclient.dataui.WebEventExecutor.onEvent(WebEventExecutor.java:400)
   at com.servoy.j2db.server.headlessclient.dataui.WebEventExecutor.onEvent(WebEventExecutor.java:395)
   at com.servoy.j2db.server.headlessclient.dataui.ServoyFormComponentUpdatingBehavior.onUpdate(ServoyFormComponentUpdatingBehavior.java:67)
   at org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:158)
   at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
   at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:312)
   at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)


Server Configurations :
Code: Select all
JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.8.0_40
java.vm.info=mixed mode
java.vm.vendor=Oracle Corporation

Operating System Information
os.name=Windows Server 2012 R2
os.version=6.3
os.arch=amd64

System Information
Heap Space Memory: allocated=4360704K, used=2858365K, max=4660736K
Non-Heap Space Memory: allocated=178880K, used=175603K, max=0K
Number of Processors: 4

Thanks in advance.
sovanm
 
Posts: 99
Joined: Fri Oct 28, 2011 1:55 pm
Location: Bhubaneswar, India

Re: Servoy 7.4.4 -error executing event -out of memory excep

Postby sovanm » Fri May 22, 2015 10:14 pm

Hi All,
Any suggestion here please. This has been happening in our live server. Today also we have seen this log in server logs. Yesterday, the server restart itself after being maxed out of heap size in spite of having 4GB heap allocated. This has never happen in previous version.

Please suggest... :?:

Thanks
Sovan
sovanm
 
Posts: 99
Joined: Fri Oct 28, 2011 1:55 pm
Location: Bhubaneswar, India

Re: Servoy 7.4.4 -error executing event -out of memory excep

Postby jcompagner » Wed May 27, 2015 1:42 pm

somehow your solution is consuming that amount of memory, you can only really profile this by looking with profile tools to the live memory or the memory dump that is created when out of mem happens (there is a setting for that)
or create it when it is still running but it is getting really full

Are there reports running or something on that server? (like jasper)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7974
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests