Question
High Resource Usage
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
• Physical Memory - retained at 1 GB
• CPU - Tempo increased from 100% to 200%
• I/O - Tempo increased from 1 MB/s to 3MB/s
• Entry Processes - Tempo increased from 10 to 20
• NPROC - Tempo increased from 30 to 40
I'm sorry I don't have more info but does this seem normal?
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Away
- Administrator
-
It could be that robots are making many requests to your site.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
I'm also behind Cloudflare's firewall where I'm filtering many things.
Please Log in or Create an account to join the conversation.
- RBaker
-
- Offline
- New Member
-
I had to update nameservers and IP on Cloudflare control panel when I changed servers.
ibm-pc.org/family is my webtrees
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
I was just curious if webtrees should be using as much resources as my hosting says it is. As mentioned before, I havn't had this problem until they migrated my site to a new server.
Here is a screenshot of the usage they sent me.
[url] prnt.sc/SN1__hz64MpF [/url]
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
Can you tell me the typical server requirements for Webtrees? I see these, webtrees.net/install/requirements/ which I'm covered there. What my hosting is asking are the resources needed, memory, etc.
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Away
- Administrator
-
> Since then I've been dealing with resource issues.
This is quite vague.
How do you know you have resource issues?
Do you have error messages saying "out of memory", "time limit exceeded", etc.?
> I've checked the webtrees website logs for anything odd and nothing is listed that shows anything out of the ordinary.
It's not clear what you are saying.
I asked about your webserver (apache/nginx/etc.) logs - not your webtrees logs.
If you are getting 502 responses, I would expect to see them in the apache/nginx logs.
> I was just curious if webtrees should be using as much resources as my hosting says it is
I don't understand what that screenshot is showing.
I haven't seen anything like that before.
What are "A", "L" and "F"? What do the various columns mean?
> What my hosting is asking are the resources needed, memory, etc.
The major things that affect this are:
1) Size of your site - i.e. number of individuals.
2) The number of concurrent users/visitors/robots etc.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
• Physical Memory - retained at 1 GB
• CPU - Tempo increased from 100% to 200%
• I/O - Tempo increased from 1 MB/s to 3MB/s
• Entry Processes - Tempo increased from 10 to 20
• NPROC - Tempo increased from 30 to 40
Since I'm using Cloudflare (free) as a security/firewall it shows their 502 Gateway error when the above resources are not in play. I'm blocking bad bots and countries. Cloudflare was setup and I've been using it prior to the issue.
There is nothing in the webtrees log that would indicate an issue. No errors or warnings, etc.
Here is a snippet of the server raw log file. The "*******" is when I got a 502 error.
The screenshot... I too have no idea what it means. I was hoping someone else might know. It's just what they sent to show the usage.
I would consider my tree to be on the small size: 11,628 Individuals, 2,947 media objects, 30 users (only 1 is active other than me).
Attachment not found
Attachment not found
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
L = Limit.
I saw in the table you posted some days ago that traffic was easy, and then got busy in the last hour. Not super busy, just 1/8th of the limit they put. I looked for that in column "IO".
I personally would not worry too much since your usage of their resources is within the limits they have set. Maybe it is more than the average WordPress/Joomla site they host.
I suspect you got visited by a bot, spider, whatever is scraping content and fetching page after page. Your access log should give more details. Ask them for help, where is the most traffic coming from? Worth blocking?
Or do this test: directly as you wake up, go at your webtrees site and make continuous edits for an hour long. Then look at the hosting usage metrics, compare with an hour before or same hour a day earlier.
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Away
- Administrator
-
The access log (which you showed us), and an error log.
The error log could be useful. Do you have these logs?
They could tell us whether PHP didn't respond within a time limit, or responded with an error, etc.
Your access logs show lots of robot requests for the individual/family lists. These lists require a lot of resources, and are the most resource-intensive pages that robots can access.
If you change the access level for these from visitor to member (temporarily), does it make a difference?
I note that you have a lot of third-party modules installed.
If you disable them (temporarily), does it make a difference?
Another thing you could investigate is the database. You could set up another site (in a subfolder?) with the same data/modules/etc., but using SQLite. SQLite is pretty fast for reading, but slow for writes, especially concurrent writes. So if the site is much faster (for a single user), then MySQL might be the culprit.
But overall, the general "feel" of your site is that the server is simply underpowered, requests are being blocked/queued, etc.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Franz Frese
-
- Offline
- Platinum Member
-
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
That page gives 403, and not found, redirects to thebestgenealogy.com/403-page-forbidden/dist/index.htmlI get
"Too many redirects"
for
www.thebestgenealogy.com
which is a bit awkward. The main page of a domain should always respond, no matter what.
Try this link, from his signature.
www.thebestgenealogy.com/tree
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
"requests for the individual/family lists"
Where is this setting? I assume in the Control Panel > Manage tree > Privacy.
I currently have: show family tree & deceased to visitors & members.
I only have two third-party modules running/installed, Fancy Trees & Vesta.
"Too many redirects"
This might be coming from a country block I had installed on my Wordpress, I just removed it. The Webtree is simply linked from the Wordpress site. However, Cloudflare is filtering countries too.
Please Log in or Create an account to join the conversation.
- dust2k
-
- Offline
- New Member
-
- Posts: 19
jiazu.ausmis.com runs on Webtree 2.2.1
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Away
- Administrator
-
These are modules. Set the access in the modules/lists section
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
They’ve recommended a few things, which I’ve already done—leveraging browser cache, enabling gzip compression, adding the 7G firewall code to my htaccess file, and blocking bad bots with additional rules. They also provided some stats, showing the top IP hits (mine is highest at 2,148, followed by my hosting at 1,235), and the most accessed content, which are the calendar views (day: 19,155, month: 11,283, year: 3,916).
The top bot hits include Bingbot (38,801 hits in a week!) and Googlebot (1,791), with everything else much lower. They keep saying the issue is due to I/O resource limits being hit, which is currently set at just 1MB. The errors I’m running into are 502 & 503, which happen when those limits are exceeded. There’s no real pattern—sometimes just visiting the site triggers an error, and other times it happens while working within the tree.
Interestingly, my main site, thebestgenealogy.com, which runs on WordPress, doesn’t have these issues at all. The problems only affect Webtrees, which is housed in a subfolder (/tree).
Anyway, here are the stats they sent over in case they help figure out what’s going on! I masked my IP for security purposed, just in case. 😊
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
Check your robots.txt.
www.thebestgenealogy.com/tree/robots.txt
It lists a calendar link, but this is not where these pages really are, so bots go wild anyway.
You also have an old webtrees 1.7 robots.txt here:
www.thebestgenealogy.com/tree/robots.txt
If you remove it, then webtrees will serve a generated one (from memory, not from disk)
Fetch with a browser, and merge that with the robots.txt in your domain root.
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
It’s frustrating because, after all these years of using Webtrees, this is the first time I’ve run into this issue. The blame has been placed on my previous hosting companies for not managing limits properly. But with this new host, it seems like they actually enforce strict limits. Whether that’s true or not, I can’t say—that’s just what I’ve been told.
In the past, I was always on an "unlimited" shared hosting package, but now it feels like I’ve been moved to a more restricted server. I just wish I could get a clear answer on what’s really going on! 🤷♂️
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
Also there is a challenge with the sitemap. I don't think you can have it merged from Joomla and webtrees.
Maybe you can make a subdomain tree.yourdomain.net, then it stands on its own.
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- vdrumsroland
-
Topic Author
- Offline
- New Member
-
Right now, my data folder path is written in full. Would I just need to change that to a relative path since it’s staying within the same site? I just want to make sure I don’t mess anything up! 😅
Please Log in or Create an account to join the conversation.