Server takes 20 min to restart!

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

Server takes 20 min to restart!

Postby juan.cristobo » Tue Jun 17, 2014 4:00 pm

Hi all:

Servoy Server takes more than 20 min. to restart!

I suppose that Servoy has to scan all databases (in log I can see many warnings about "Table name XXX from server xxx is too long (>30 chars) -- this is not supported by all databases"), but what can I do to reduce that (very very) long wait?

Regards,
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby Harjo » Tue Jun 17, 2014 4:18 pm

What version of Servoy is this?

In older versions you really had to wait, for Servoy to scan all those database's & tables (especially with LARGE database's with MANY tables)
There is property, for that that you have to put into servoy-properties file.

I believe in newer versions, this was not necessary anymore.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Server takes 20 min to restart!

Postby juan.cristobo » Tue Jun 17, 2014 4:57 pm

It's v7.4.0
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby mboegem » Tue Jun 17, 2014 5:26 pm

juan.cristobo wrote:Servoy Server takes more than 20 min. to restart!


I've seen this due to lack of indexing on the repository database.
Please check your backend database for any slow queries.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Server takes 20 min to restart!

Postby juan.cristobo » Tue Jun 17, 2014 5:55 pm

:shock:

Repository Database is created by Servoy Server, so I've never worried about it. What do I have to check?
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby mboegem » Tue Jun 17, 2014 9:51 pm

juan.cristobo wrote:Repository Database is created by Servoy Server, so I've never worried about it. What do I have to check?


Not everything that's being created is always right :-)

Like I wrote: I've seen cases where configurations would fail because of slow queries in the repository database.
I don't know which database you are using, but there are plenty tools out there to track slow queries.
And you probably can find those statistics in the system tables of your database too.

You should start tracking as soon as your application server starts.
If you see any slow queries you'll need to reproduce them and scan them with a query planner.
That will give you inside information about which indexes should be added to solve it.

Again: I've seen this before, so it's worth checking, but maybe there's another likely cause in your configuration...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Server takes 20 min to restart!

Postby grahamg » Tue Jun 17, 2014 11:42 pm

I've never seen 20mins for a Server restart - usually < 2mins - so it does indicate something pretty unusual.

If you have big systems with LOTS of releases then the Repository DB will grow quickly so may be worthwhile dropping/recreating.
Graham Greensall
Worxinfo Ltd
www.worxinfo.com
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Re: Server takes 20 min to restart!

Postby juan.cristobo » Wed Jun 18, 2014 9:42 am

The Repository DB is small (about 85MB) and the server is a fresh install.

In the Repository DB slow query log I see many slow queries in "servoy_columninfo" table. These slow queries are when Servoy reads info about an specific connection (MS Dynamics NAV backend DB). This DB has almost 6.000 tables and the name of many of them is long (>30 chars), so Servoy writes many warnings in the log.

Perhaps I could say Servoy not to scan db's and tables at restarting...
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby Peter de Groot » Wed Jun 18, 2014 10:54 am

juan.cristobo wrote:The Repository DB is small (about 85MB) and the server is a fresh install.

In the Repository DB slow query log I see many slow queries in "servoy_columninfo" table. These slow queries are when Servoy reads info about an specific connection (MS Dynamics NAV backend DB). This DB has almost 6.000 tables and the name of many of them is long (>30 chars), so Servoy writes many warnings in the log.

Perhaps I could say Servoy not to scan db's and tables at restarting...


Wow 6000, we have a DB that has 3700+ tables, (re)starting takes around 5 minutes, but servoy keeps scanning in the background for about 15minutes, but whilst scanning users can connect and start applications.

*edit
This is on servoy 6.1.5

Regards,

Peter
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Server takes 20 min to restart!

Postby juan.cristobo » Wed Jun 18, 2014 11:21 am

Peter de Groot wrote: (re)starting takes around 5 minutes, but servoy keeps scanning in the background for about 15minutes, but whilst scanning users can connect and start applications.


Not my server :cry: :cry:

As I said, it takes 20 min to restart, then users can connect, but server keeps scanning in the backgroud for hours :!:

If I delete the connection to MS NAV DB, servoy takes a few minutes to restart, so I think that the problem is in that connection, but what can I do?
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby Harjo » Wed Jun 18, 2014 12:01 pm

try this property in you servoy.properties file:

servoy.server.fastStartup=true

Another solution is, to create a special connection user, that ONLY 'sees' the tables you actually use!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Server takes 20 min to restart!

Postby juan.cristobo » Wed Jun 18, 2014 1:40 pm

I put that property in file, unsuccessfully (server took 25 min to restart :cry: :cry: :cry: )
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: Server takes 20 min to restart!

Postby Harjo » Wed Jun 18, 2014 2:00 pm

I just found an old email from Servoy, that this line was only for Servoy 5.2 and from Servoy 6 and up, it should do that automatically!
Please file a case..
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Server takes 20 min to restart!

Postby mboegem » Wed Jun 18, 2014 3:02 pm

juan.cristobo wrote:In the Repository DB slow query log I see many slow queries in "servoy_columninfo" table


Try to make them faster by analysing the query and adding the correct index...

I looked up an old issue and just give it a try by indexing 'columninfo_id' in this table...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 9 guests