RESOLVED:Servoy container restart under Apache out of memory

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

RESOLVED:Servoy container restart under Apache out of memory

Postby joe26 » Mon Oct 12, 2020 9:01 pm

Hello,

Apache cannot be restarted without an outofmemory error, when .WAR is loaded. Restarting the Apache service without stopping Servoy hangs the restart with an OutOfMemoryError: Java heap space, and a LifecycleExpception: A child container failed during stop.

Does Servoy need to be stopped and started from within Apache Manager or is this a memory issue?

Stopping Servoy and restarting Apache does work, but the restart of Apache should be sufficient.

If memory is the issue, how are memory settings adjusted within Servoy? Attempted to use setenv.bat for main Apache startup; it doesn't seem to take. The error indicates the container doesn't have enough memory. There is no restart under servoy-admin, only 'Enter Maintenance Mode.' Likely because it is run as a container under Apache, but wanted to see how the actual production use is practiced.

thanks,
--Joe.
Last edited by joe26 on Tue Oct 13, 2020 10:24 pm, edited 1 time in total.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Re: Servoy container restart under Apache out of memory erro

Postby jcompagner » Tue Oct 13, 2020 8:54 am

A container restart (so keeping tomcat running) is always a bit tricky there are stuff (depending on how you deploy and what you use) that keeps hanging around
We try to keep cleaning it as much as possible

But i am not sure what you are really doing, just restarting tomcat as a whole shouldn't result in out of memory, that should just be a kill and a completely fresh start

I don't see the different between "stopping servoy" (i guess that is stopping the context right) and then restarting tomcat is any different then just restarting tomcat, because the first thing tomcat does is stopping the different context (so what you do by hand is done automatically)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy container restart under Apache out of memory erro

Postby joe26 » Tue Oct 13, 2020 10:22 pm

Resolved this issue. The Apache Tomcat, when running as a service, does not use setenv.bat as most online help indicates.

It is the .\Tomcat 7.0\bin\Tpomcat7w.exe dialog that must manage the memory settings. Strange that is isn't more widely discussed.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm


Return to Servoy Server

Who is online

Users browsing this forum: Google [Bot] and 9 guests