Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1
  • 2

TOPIC: Performance

Performance 1 week 4 days ago #1

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
I have webtrees running on my hosts server - all functioning correctly, but it is very, very slow. Are there any pointers you can give me to figure out why?

Please Log in or Create an account to join the conversation.

Performance 1 week 4 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
I've written about a couple of things here:

webtrees.net/admin/performance/
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Performance 1 week 4 days ago #3

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Are you saying that having lots of records like this

1 DEAT
2 DATE DEC 1998
2 PLAC Bristol, England

may cause a performance issue and that the DEAT line should have a Y on the end?

Please Log in or Create an account to join the conversation.

Performance 1 week 4 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
Absolutely not.

I am saying that if you have a person who is known to be dead, but has no death record, then add an empty death record,

e.g. if you only have this,

1 BIRT
2 DATE 1600

then you know the person is dead, so add a death record

1 BIRT
2 DATE 1600
1 DEAT Y

Now, webtrees can see instantly that the person is dead without doing any date calculations - or having to find other relatives and check their dates.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Performance 1 week 4 days ago #5

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Thanks, I thought that would be the case but wasn't sure from reading the page you linked which could be read that all dead individuals should have the Y.

I have loaded a demo/test tree which has only 104 individuals and that is really slow. Selecting an individual comes up really quickly but charts are typically taking 30 seconds or more.

Please Log in or Create an account to join the conversation.

Performance 1 week 4 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
Can you post the URL so I can take a look?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Performance 1 week 3 days ago #7

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
I've emailed you the details - sorry for the delay - been out for our daily exercise!

John

Please Log in or Create an account to join the conversation.

Performance 1 week 3 days ago #8

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
The installation I'm using on the server is maintained by Softaculous - have you pushed the update to 2.0.4 out to there yet?

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Performance 1 week 3 days ago #9

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
I've been looking at webtrees.net/faq/thumbnails/

memory_limit is 512M

Imagemagick looks OK - see attached

Is there a way to tell if it is actually using Imagemagick as the performance hit seems to be of the order of magnitude suggested on that page?
Attachments:

Please Log in or Create an account to join the conversation.

Performance 1 week 3 days ago #10

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24

Elvin wrote: The installation I'm using on the server is maintained by Softaculous - have you pushed the update to 2.0.4 out to there yet?


I've seen this is coming through now.

Please Log in or Create an account to join the conversation.

Performance 1 week 2 days ago #11

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24

Elvin wrote: I've been looking at webtrees.net/faq/thumbnails/

memory_limit is 512M

Imagemagick looks OK - see attached

Is there a way to tell if it is actually using Imagemagick as the performance hit seems to be of the order of magnitude suggested on that page?


I think I've ruled out Imagemagick by loading a gedcom with no images at all - it's still as slow.

Please Log in or Create an account to join the conversation.

Performance 1 week 2 days ago #12

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
My host has been taking a look. The server I'm running on is a shared server with plenty of the resources. Most of the cores are running at less than 10% loading, and it has plenty of memory (swap file not being touched). It is running CentOS 6. He also has a test server running CentOS 7 and it runs properly on that. Any suggestions at what differences might be significant?

Please Log in or Create an account to join the conversation.

Performance 1 week 2 days ago #13

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Original server has now been updated to 2.0.4 and is just as slow.

@fisharebest Did you receive my email, have you had a look?

Please Log in or Create an account to join the conversation.

Performance 1 week 2 days ago #14

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
> @fisharebest Did you receive my email, have you had a look?

I did receive it, but I have not yet had time.

(Full time job, deadlines, etc.).
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Performance 1 week 2 days ago #15

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Thanks - if you could take a look when you have time I'd be most grateful.

I've attached some diagnostic graphs my hosting provider captured when using the live server and the test server. On the live server there is a massive 15 second gap where it appears nothing is happening, but on the test server it flies straight through. Can you tell what is happening at that point?
Attachments:

Please Log in or Create an account to join the conversation.

Performance 5 days 7 hours ago #16

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Still trying to get to the bottom of this. On the problem server 1.17 runs perfectly well so the issue is specific to latest versions (2.0.3 and 2.0.4).

This is a commercial server running a significant number of sites none of which have any issues. I also have other applications running on the server without any issues. This is something very specific to webtrees where it is doing something different.

Please Log in or Create an account to join the conversation.

Last edit: by Elvin.

Performance 4 days 22 hours ago #17

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Have the minimum requirements for 2.0 changed from that shown in the wiki?

wiki.webtrees.net/en/System_requirements

Please Log in or Create an account to join the conversation.

Performance 4 days 19 hours ago #18

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 12929
I have been trying to look at this for most of the day, but my home internet connection is having serious problems.

I'm seeing 10-30 second delays just to fetch a CSS file from your site - and I can't tell if it is your site or my internet connection...

Also, the URL "/ping" is giving an empty response from your site. I would expect it to return "OK", "WARNING" or "ERROR".

Since you aren't using pretty URLs, and you installed in a subfolder, you'll want to use
"/index.php?route=/webtrees/ping"

Do you have any security/filtering type of software on your server that might be blocking this?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Performance 4 days 5 hours ago #19

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
To rule out it being anything to do with the subfolder we've tried creating a subdomain wt2 - that behaves exactly the same and /ping gives the same blank reply.

We've also installed on a different server which is not normally used for hosting (and hence does not have security/filtering related to hosting) but otherwise is running CentOS 6 and everything else the same as the normal server. That exhibits exactly the same stalls while pages load.

I've emailed you a copy of the server information from the normal installation that I gave you the information for.

It's likely to be an unexpected consequence of something very trivial which after a simple tweak everything will burst in to life. If only this would do a hard failure it would probably be easier to diagnose, but 'sort of works' issues are always a lot harder to get to the bottom of!

Please Log in or Create an account to join the conversation.

Performance 4 days 3 hours ago #20

  • Elvin
  • Elvin's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 24
Just found something that may possibly shed some light.

If I paste https://<mydomain>/webtrees/index.php?route=%2Fwebtrees%2Ftree%2Fdemo%2Ftree-page-block&block_id=93 in to the browser it comes back with all the data instantly but it then takes 15 seconds for the page load to complete. The same happens with blocks 98 and 99 and other blocks I've tried. Debugging in Firefox shows that in all cases the GET of the URL take 200-300ms over 15 seconds. It doesn't attempt to load any CSS (just the URL itself and favicon.ico). I'd hazard a guess that something isn't closing off properly and there's a 15 second timeout.

Please Log in or Create an account to join the conversation.

Last edit: by Elvin.
  • Page:
  • 1
  • 2
Powered by Kunena Forum