EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08124
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Server timeouts - MySQL Problems
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "James Kerwin" <jkerwin2101@gmail.com>
- Subject: Re: [EP-tech] Server timeouts - MySQL Problems
- From: "Newman D.R." <drn@ecs.soton.ac.uk>
- Date: Thu, 5 Mar 2020 13:37:27 +0000
Hi James,
Several suggestions:
1. Try install atop [1], this creates log files similar to what you get from running the top command. This will allow you to look back later to see what was going on at the times when the server was not responding. By default it takes a snapshot every 10 minutes. It might be worth swaping this to every minute or couple of minutes.
2. Edit MySQL's configuration to introduce a log file for slow running queries [2].
3. I use something called pt-kill to kill very long running queries that may be blocking other queries [3].
Regards
David Newman
[1]
https://linux.die.net/man/1/atop
[2] https://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html
[3] https://www.percona.com/doc/percona-toolkit/LATEST/pt-kill.html
Hi All,
This isn't necessarily directly EPrints related, but its about a server running EPrints.
I've noticed a problem this week with the repository. In the early hours of the morning the number of users drops to zero for several hours between 2am and 6am (according to Google Analytics). Due to having a cold I've been up between these times and can confirm that the repository website times out when I try to connect from home.
I don't get any memory or CPU warnings from our monitoring software. My gut instinct is that it's an issue with MySQL connections not closing in a timely manner. We do have cron jobs that run at 1:30, 2:30 and 3:30 which I'm aware fall right within the problem zone, but these have been running at the same time for years and have never caused an issue.
Has anybody experienced anything similar to this or have suggestions as to how I could chase it down?
It's a Ubuntu server with MySQL running EPrints 3.3.14. I don't think it's an EPrints issue, but there is nothing in the log files to suggest what's happening. The apache error log is blank for the hours that the server won't connect.
Thanks,James
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] Server timeouts - MySQL Problems
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Server timeouts - MySQL Problems
- Prev by Date: [EP-tech] Server timeouts - MySQL Problems
- Next by Date: Re: [EP-tech] Server timeouts - MySQL Problems
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):