Application Server Freezes when importing solutions

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

Application Server Freezes when importing solutions

Postby francisco.garcia » Tue Jan 09, 2018 4:00 pm

We are running server version 8.2.2 release 3107 with Apache Tomcat/7.0.76 and JVM 1.8.0_51-b16, everything running on Centos 7.
The issue happens when importing solutions. With no apparent cause the server freezes when we try to import solutions.
This happens with big production servers (from 80 to 160 clients connected) and with small testing servers. It happens more often with the larger solutions.
Basicly, the solution starts to import and at one point it freezes. No more clients can connect to the server and the clients that are connected can not use the system whatever solution they are working on. We can access the Servoy Application Server, but only the Servoy Server Home (not Clients), and we also can access the Apache Tomcat Admin Page.
First we thougth that it was an out of memory problem but the issue happens also in big servers with a huge ammount of memory available.
We are kind of lost with this, so we would appreciate any suggestions.
For more information please tell.
francisco.garcia
 
Posts: 16
Joined: Tue Jan 09, 2018 3:40 pm

Re: Application Server Freezes when importing solutions

Postby patrick » Tue Jan 09, 2018 4:44 pm

It sounds very much like a DB deadlock. What database is holding the repository? SQL Server (seen that there a few times). Maybe you could check the DB using an admin tool to see if a request is blocked when that occurs? For SQL server it could help to set "Allow snapshot isolation" and "Is Read Committed Snapshot On" on the repository database to true.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Application Server Freezes when importing solutions

Postby francisco.garcia » Tue Jan 09, 2018 5:36 pm

Hi Patrick. We are using Oracle MySQL. So you say that it can be a request to the servoy_repository that blocks the uploading?
francisco.garcia
 
Posts: 16
Joined: Tue Jan 09, 2018 3:40 pm

Re: Application Server Freezes when importing solutions

Postby patrick » Tue Jan 09, 2018 6:57 pm

I have seen one query blocking another, but never used mySQL. I'm not familiar with mySQL, so I cannot tell you how / where you can see blocking requests, but maybe you know or can figure that out.

You say you can still access servoy-admin when it hangs. Can you try to produce a stackdump from there (Click on "Dump the current stack/systeminfo")? You can copy all the text in there in a text file and attach it here, then someone can have a look and maybe see what's hanging.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Application Server Freezes when importing solutions

Postby francisco.garcia » Tue Jan 09, 2018 7:15 pm

i attach the stackdump at the moment of freezing of a testing server that we have.
Attachments
stackdump.txt
(70.23 KiB) Downloaded 224 times
francisco.garcia
 
Posts: 16
Joined: Tue Jan 09, 2018 3:40 pm

Re: Application Server Freezes when importing solutions

Postby jcompagner » Wed Jan 10, 2018 11:28 am

a deadlock seems to happen between ngclient startups and a import if those are happening at the same time
For now put your server in maintenance mode before doing an import.

i created a case: https://support.servoy.com/browse/SVY-12029
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Application Server Freezes when importing solutions

Postby francisco.garcia » Wed Jan 10, 2018 1:17 pm

Thank you Johan.
francisco.garcia
 
Posts: 16
Joined: Tue Jan 09, 2018 3:40 pm

Re: Application Server Freezes when importing solutions

Postby francisco.garcia » Wed Jan 10, 2018 10:18 pm

Just to clarify, we try to do the import in manteinance mode and it still hangs the server.
francisco.garcia
 
Posts: 16
Joined: Tue Jan 09, 2018 3:40 pm

Re: Application Server Freezes when importing solutions

Postby jcompagner » Thu Jan 11, 2018 11:18 am

yes i see now it happens way before the check for maintenance mode.
the first hit to the index.html of a ngclient solution can already cause this
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 8 guests

cron